Docs / Platforms / GitHub16 operations / 14 live / 2 mapped

GitHub

GitHub is exposed through 14 live operations covering search and discovery, public profiles and creator metadata, trends, markets and live signals. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What GitHub data is for.

Live GitHub capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 16

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 14

ready
GET

GitHub user

/v1/github/user
1 credits5/day free1h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
Request
curl -s "https://api.cleanfetch.dev/v1/github/user?username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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

platformidusernamenameurlfollowersdescription

Input 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.
GET

GitHub repository

/v1/github/repo
1 credits5/day free1h cache
NameTypeRequiredDescription
repostringyesRepository name.
Request
curl -s "https://api.cleanfetch.dev/v1/github/repo?repo=react" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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

platformnamefullNameurlstarsforkslanguage

Input 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.
GET

GitHub user repositories

/v1/github/repos
2 credits3/day free6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/github/repos?username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 followers

/v1/github/followers
2 credits3/day free6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/github/followers?username=nasa" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get GitHub profile

/v1/github/profiles/{handle}
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List GitHub profile activity

/v1/github/profiles/{handle}/activity
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
yearstringnoLookup parameter.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/activity" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List GitHub profile followers

/v1/github/profiles/{handle}/followers
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/followers" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List GitHub profile following

/v1/github/profiles/{handle}/following
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/following" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List GitHub profile pull requests

/v1/github/profiles/{handle}/pull-requests
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
sincestringnoLookup parameter.
untilstringnoLookup parameter.
cursorstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/pull-requests" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List GitHub profile repositories

/v1/github/profiles/{handle}/repositories
1 credits3/day free6h cache
NameTypeRequiredDescription
handlestringyesPublic handle or username.
cursorstringnoLookup parameter.
typestringnoLookup parameter.
sortstringnoLookup parameter.
directionstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/github/profiles/{handle}/repositories" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get GitHub repository

/v1/github/repositories
1 credits3/day free6h cache
NameTypeRequiredDescription
urlstringyesPublic page, post, profile or video URL.
Request
curl -s "https://api.cleanfetch.dev/v1/github/repositories?url=https%3A%2F%2Fcleanfetch.dev" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 credits
GET

Get GitHub contribution graph

/v1/github/profiles/{handle}/contributions

503 upstream_not_configured · 0 credits
FAQ / GitHub

Common GitHub API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready