Catalog / GitHub Trending

GitHub Trending API

github.com

Read-only live views of GitHub's public Trending pages. The source exposes one current page per language and period, so historical snapshots and pagination are out of scope.

  • Other
  • github
  • trending
  • repositories
  • programming-languages
2 endpointsDocs updated

Endpoint health

Loading verification…

TrendingLoading
LanguagesLoading

Connect your agent

Connect through MCP so your agent can find this API, read its docs, and call its endpoints.

Setup guide

Add the server from your terminal.

Claude Code · terminal
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcp

In Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.

Then ask your agent to use the GitHub Trending API for your task.

Call it over HTTP

Get an API key

Sign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.

Fetches the current GitHub Trending page in page order. `language` accepts a source URL slug case-insensitively or an unambiguous display name; C# can be supplied as `c#` or `c%23`. GitHub may return fewer than 25 repositories or no repositories for a valid filter.

Optional parameters 3
View call pricing
cURL · Trending
curl --request GET --get 'https://3kpkg0jfvk.execute-api.us-east-2.amazonaws.com/prod/dc2dc325-f599-4d36-b2e6-853629ea19e8/trending' \
  --header "Authorization: Bearer $AGENT_DATA_API_KEY"

Endpoints

Inputs and response fields for every endpoint in this API.

GETLanguages/languages

Fetches GitHub's Trending language-filter page and returns its programming-language slugs, display names, and the spoken-language options exposed by the same page.

Input

No input parameters.

Response

countinteger, min: 0
languagesobject[]
languages[].namestring
languages[].slugstring
source_urlstring
retrieved_atstring (date-time)
spoken_languagesobject[]
spoken_languages[].codestring
spoken_languages[].namestring

Don’t see the endpoint you need?

Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.