---
title: "Get push mirror of the repository by remoteName"
method: GET
path: "/repos/{owner}/{repo}/push_mirrors/{name}"
tags: ["repository"]
---

# Get push mirror of the repository by remoteName

`GET /repos/{owner}/{repo}/push_mirrors/{name}`

## Request

- Base URL: `https://demo.gitea.com/api/v1`
- URL: `https://demo.gitea.com/api/v1/repos/{owner}/{repo}/push_mirrors/{name}`
- Auth: one of:
  - HTTP basic
  - API key in query parameter `token`
  - API key in query parameter `access_token`
  - API key in header `Authorization`
  - API key in query parameter `sudo`
  - API key in header `Sudo`
  - API key in header `X-GITEA-OTP`
- TypeScript: <https://skmtc.dev/gitea/apis/gitea-api/docs/repos/:owner/:repo/push_mirrors/:name/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `owner` string, required
- `repo` string, required
- `name` string, required

## Response `200`

PushMirror

- PushMirror: PushMirror represents information of a push mirror
  - `created` string, date-time
  - `interval` string: The sync interval for automatic updates
  - `last_error` string: The last error message encountered during sync
  - `last_update` string, date-time
  - `remote_address` string: The remote repository URL being mirrored to
  - `remote_name` string: The name of the remote in the git configuration
  - `repo_name` string: The name of the source repository
  - `sync_on_commit` boolean: Whether to sync on every commit

## Other responses

- `default`: APIError is error format response

## Changes

- **2026-10-28** `7ef50c4c527f`: 3 info
  - removed the non-success response with the status `400`
  - removed the non-success response with the status `403`
  - removed the non-success response with the status `404`

[Operation history](https://skmtc.dev/gitea/apis/gitea-api/changes/repos/:owner/:repo/push_mirrors/:name/get.md)

---

[API](https://skmtc.dev/gitea/apis/gitea-api.md) - [All operations](https://skmtc.dev/gitea/apis/gitea-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gitea/apis/gitea-api/revisions/7ef50c4c527f?raw)
