GitHub
What GitHub data is for.
Use GitHub when you need search and discovery, public profiles and creator metadata, trends, markets and live signals without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
14
Paid only
0
Price floor
1 cr
Use cases
GitHub repository search
Call /v1/github/repositories/search when you need a normalized github repository search response with the same credit and cache rules as the rest of the catalog.
GitHub user
Call /v1/github/user when you need a normalized github user response with the same credit and cache rules as the rest of the catalog.
GitHub repository
Call /v1/github/repo when you need a normalized github repository response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
2 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 14
readyGitHub repository search
/v1/github/repositories/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/github/repositories/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 0.08333333333333333h.
- • A public record that does not exist returns not_found and is charged once.
GitHub user
/v1/github/user| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
curl -s "https://api.cleanfetch.dev/v1/github/user?username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"id": "123456",
"username": "nasa",
"name": "NASA",
"url": "https://example.com/nasa",
"followers": 12500000,
"description": "Public profile record normalized by CleanFetch."
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformidusernamenameurlfollowersdescriptionInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
GitHub repository
/v1/github/repo| Name | Type | Required | Description |
|---|---|---|---|
| repo | string | yes | Repository name. |
curl -s "https://api.cleanfetch.dev/v1/github/repo?repo=react" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"name": "react",
"fullName": "facebook/react",
"url": "https://github.com/facebook/react",
"stars": 238000,
"forks": 49000,
"language": "JavaScript"
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformnamefullNameurlstarsforkslanguageInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
GitHub user repositories
/v1/github/repos| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/github/repos?username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 2,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
GitHub followers
/v1/github/followers| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/github/followers?username=nasa" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 2,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
GitHub user search
/v1/github/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/github/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 2,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get GitHub profile
/v1/github/profiles/{handle}| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List GitHub profile activity
/v1/github/profiles/{handle}/activity| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| year | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/activity" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List GitHub profile followers
/v1/github/profiles/{handle}/followers| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/followers" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List GitHub profile following
/v1/github/profiles/{handle}/following| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/following" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List GitHub profile pull requests
/v1/github/profiles/{handle}/pull-requests| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| since | string | no | Lookup parameter. |
| until | string | no | Lookup parameter. |
| cursor | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/pull-requests" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List GitHub profile repositories
/v1/github/profiles/{handle}/repositories| Name | Type | Required | Description |
|---|---|---|---|
| handle | string | yes | Public handle or username. |
| cursor | string | no | Lookup parameter. |
| type | string | no | Lookup parameter. |
| sort | string | no | Lookup parameter. |
| direction | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/repositories" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get GitHub repository
/v1/github/repositories| Name | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Public page, post, profile or video URL. |
curl -s "https://api.cleanfetch.dev/v1/github/repositories?url=https%3A%2F%2Fcleanfetch.dev" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List trending GitHub repositories
/v1/github/trending/repositories| Name | Type | Required | Description |
|---|---|---|---|
| language | string | no | Lookup parameter. |
| since | string | no | Lookup parameter. |
| spokenLanguageCode | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/github/trending/repositories" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "github",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 2
503 · 0 creditsGet GitHub contribution graph
/v1/github/profiles/{handle}/contributions
List trending GitHub developers
/v1/github/trending/developers
Common GitHub API questions
How many GitHub operations are live?
14 of 16 cataloged operations are live. 2 mapped operations return 503 upstream_not_configured and cost 0 credits.
What does a GitHub call cost?
Live operations range from 1 to 2 credits. 14 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.
Are GitHub responses cached?
Successful responses are cached between 0.08333333333333333h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate GitHub requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.