GitHub API

GitHub Repository API

Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps).

POST/v1/run/github.repository
Uptime
92.86%
30d · 14 calls
Requests
19
30d · weekly, last 12 wks
Response
0.9s
median · 30d

Pricing

One price, in dollars

Providers
Giraffe13 served92.86% uptime787ms p50$1.20/1k reqflat

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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
}
Response interface
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 30d
POST /v1/run/github.repository
curl -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"}'
FieldTypeExample value
Request body
urlstring"https://github.com/facebook/react"GitHub repository URL (e.g. https://github.com/facebook/react).
Response
dataobjectThe repository record, or null when not found.
data.archivedbooleanWhether the repository is archived.
data.createdUtcnumberUTC 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.defaultBranchstringName of the default branch. Populated whenever the provider has data for the entity.
data.descriptionstringShort repository description, or null if none.
data.forkbooleanWhether the repository is a fork.
data.forksintegerNumber of forks.
data.fullNamestringFull repository name in owner/name form. Populated whenever the provider has data for the entity.
data.homepagestringProject homepage URL, or null if none.
data.languagestringPrimary programming language, or null if undetected.
data.licensestringLicense name, or null if unlicensed.
data.namestringRepository short name (without owner). Populated whenever the provider has data for the entity.
data.openIssuesintegerCount of open issues and pull requests.
data.ownerstringLogin of the repository owner (user or organization). Populated whenever the provider has data for the entity.
data.pushedAtstringLast push timestamp (ISO 8601). Populated whenever the provider has data for the entity.
data.starsintegerNumber of stargazers.
data.topicsstring[]Repository topic tags.
data.updatedAtstringLast metadata update timestamp (ISO 8601). Populated whenever the provider has data for the entity.
data.urlstringCanonical URL of the repository. Populated whenever the provider has data for the entity.
data.watchersintegerNumber of watchers.
foundbooleanWhether a repository was found for the requested URL.
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Fetch a GitHub repository's metadata by URL (stars, forks, language, topics, license, and timestamps). The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.