GitHub Repository API
Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps).
Try it
Make your first request
{
"data": {
"archived": false,
"createdUtc": 12.5,
"defaultBranch": "example",
"description": "A short example description of this item.",
"fork": true,
"forks": 42,
"fullName": "Alex Rivera",
"homepage": "example",
"language": "en",
"license": "example",
"name": "Example title",
"openIssues": 42,
"owner": "Alex Rivera",
"pushedAt": "example",
"stars": 5,
"topics": [
"example"
],
"updatedAt": "2024-01-15T09:30:00Z",
"url": "https://example.com/page",
"watchers": 42
},
"found": true
}interface GithubRepositoryResponse {
data: {
archived?: boolean;
createdUtc?: number;
defaultBranch?: string;
description?: string | null;
fork?: boolean;
forks?: number;
fullName: string;
homepage?: string | null;
language?: string | null;
license?: string | null;
name: string;
openIssues?: number;
owner?: string;
pushedAt?: string;
stars?: number;
topics?: string[];
updatedAt?: string;
url: string;
watchers?: number;
} | null;
found: boolean;
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-16 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/github.repository \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://github.com/facebook/react"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| url | string | "https://github.com/facebook/react"GitHub repository URL (e.g. https://github.com/facebook/react). |
| Response | ||
| data | object | The repository record, or null when not found. |
| data.archived | boolean | Whether the repository is archived. |
| data.createdUtc | number | UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity. |
| data.defaultBranch | string | Name of the default branch. Populated whenever the provider has data for the entity. |
| data.description | string | Short repository description, or null if none. |
| data.fork | boolean | Whether the repository is a fork. |
| data.forks | integer | Number of forks. |
| data.fullName | string | Full repository name in owner/name form. Populated whenever the provider has data for the entity. |
| data.homepage | string | Project homepage URL, or null if none. |
| data.language | string | Primary programming language, or null if undetected. |
| data.license | string | License name, or null if unlicensed. |
| data.name | string | Repository short name (without owner). Populated whenever the provider has data for the entity. |
| data.openIssues | integer | Count of open issues and pull requests. |
| data.owner | string | Login of the repository owner (user or organization). Populated whenever the provider has data for the entity. |
| data.pushedAt | string | Last push timestamp (ISO 8601). Populated whenever the provider has data for the entity. |
| data.stars | integer | Number of stargazers. |
| data.topics | string[] | Repository topic tags. |
| data.updatedAt | string | Last metadata update timestamp (ISO 8601). Populated whenever the provider has data for the entity. |
| data.url | string | Canonical URL of the repository. Populated whenever the provider has data for the entity. |
| data.watchers | integer | Number of watchers. |
| found | boolean | Whether a repository was found for the requested URL. |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the GitHub Repository API
The AnyAPI GitHub Repository API returns GitHub repository data as normalized JSON from one POST call to /v1/run/github.repository. Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps). AnyAPI returns one normalized schema whichever source serves it. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 92.9% of GitHub repository calls through AnyAPI succeeded, with a median response time of 0.9 seconds across 14 measured calls.