# Gitee Repositories API

> Public Gitee repositories: repo details with stars and forks, releases, and the latest commits

- Vendor: `giteerepositoriesapi` · version 1.0 · category Developer Tools · tags gitee api, chinese git hosting api, repository api, git commits api, open source releases api, openharmony api
- Datasource: custom HTTP routes
- Marketplace page: https://apiclay.com/api/giteerepositoriesapi
- This document: https://apiclay.com/docs/giteerepositoriesapi.md
- OpenAPI 3.1: https://apiclay.com/api/giteerepositoriesapi/openapi.json
- MCP: connect https://api.apiclay.com/v1/mcp (see https://apiclay.com/llms.txt), then `apiclay_describe_api` with vendor `giteerepositoriesapi`
- Updated: 2026-11-18

## About

## Gitee Repositories API

Gitee's v5 Open API for public repositories, China's largest code hosting platform (home of OpenHarmony, openEuler and Dromara): a repository's description, language, license, stars, forks, watchers and dates, its releases with tags and assets, and its recent commits with author, date and message.

Data comes from **gitee.com** (https://gitee.com). Every route calls the source's own public API and returns it unchanged.

Typical flow: `/repo?owner=openharmony&amp;repo=docs`, then `/releases` and `/commits` with the same owner and repo.

### Routes

#### GET `/repo` - Repository
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| owner | path | string | yes | Owner or org, e.g. `openharmony`. |
| repo | path | string | yes | Repository, e.g. `docs`. |

Returns: `full_name`, `human_name`, `description`, `language`, `license`, `stargazers_count`, `forks_count`, `watchers_count`, `open_issues_count`, `default_branch`, `created_at`, `pushed_at`, `html_url`.

#### GET `/releases` - Releases
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| owner | path | string | yes | Owner. |
| repo | path | string | yes | Repository. |
| page | query | number | no | Page. |
| per_page | query | number | no | Up to 100. |

Returns: array of `tag_name`, `name`, `body`, `prerelease`, `created_at`, `author`, `assets[]`.

#### GET `/commits` - Commits
| Param | In | Type | Required | Description |
|---|---|---|---|---|
| owner | path | string | yes | Owner. |
| repo | path | string | yes | Repository. |
| sha | query | string | no | Branch or commit to start from. |
| path | query | string | no | Only commits touching this path. |
| since | query | string | no | ISO 8601 date. |
| page | query | number | no | Page. |
| per_page | query | number | no | Up to 100. |

Returns: array of `sha`, `html_url`, `commit` (`author`, `committer`, `message`), `author`, `parents`.

### Caveats

- Public repositories only. Unauthenticated Gitee calls are rate limited per IP; search and user lookups need a Gitee token and are not offered here.
- Upstream responses can change over time. Verify fields before relying on them.
- Not affiliated with or endorsed by gitee.com.

## Pricing

- Pay as you go: 0.0012 credits/request
- Trial: 1 free requests per buyer
- Billing order: trial requests -> subscribed plan requests -> pay as you go. 1 credit's USD value is shown on the marketplace page.

## HTTP routes

Only the public, buyer-facing parts of each route are listed; vendor-side credentials stay on the gateway.

### GET /repo — Repository
- Gateway: `GET https://api.apiclay.com/v1/api/giteerepositoriesapi/repo`
- Public query params: `owner` (string, required), `repo` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /releases — Releases
- Gateway: `GET https://api.apiclay.com/v1/api/giteerepositoriesapi/releases`
- Public query params: `page` (number), `per_page` (number), `owner` (string, required), `repo` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

### GET /commits — Commits
- Gateway: `GET https://api.apiclay.com/v1/api/giteerepositoriesapi/commits`
- Public query params: `sha` (string), `path` (string), `since` (string), `page` (number), `per_page` (number), `owner` (string, required), `repo` (string, required)
- Upstream proxy: ApiClay proxy paid by the vendor (data cap 2 MB per call). Fetched through an ApiClay proxy paid by the vendor; a response larger than the route's data cap fails with 502 and is refunded in full.

## Call example

```bash
curl -X GET "https://api.apiclay.com/v1/api/giteerepositoriesapi/repo?owner=<owner>&repo=<repo>" \
  -H "token: <YOUR_APICLAY_TOKEN>"
```

Index of every published API: https://apiclay.com/llms.txt
