GitHub Trending API
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.
Connect your agent
Connect through MCP so your agent can find this API, read its docs, and call its endpoints.
Add the server from your terminal.
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcpIn 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 keySign 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.
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.
GETTrending/trending
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.
Input
languageOptionalQuery · string | nullGitHub Trending language slug or unambiguous display name.
Example: python
sinceOptionalQuery · "daily" | "weekly" | "monthly"Trending period shown by GitHub.
Example: daily
spoken_language_codeOptionalQuery · string | nullOptional ISO 639-1 spoken-language code used by GitHub's filter.
Example: en
Response
countinteger, min: 0since"daily" | "weekly" | "monthly"languagestring | nullsource_urlstringrepositoriesobject[]repositories[].urlstringrepositories[].namestringrepositories[].rankinteger, min: 1repositories[].forks?integer, min: 0 | nullrepositories[].ownerstringrepositories[].starsinteger, min: 0repositories[].period"daily" | "weekly" | "monthly"repositories[].built_by?object[]repositories[].built_by[].usernamestringrepositories[].built_by[].avatar_urlstringrepositories[].built_by[].profile_urlstringrepositories[].languagestring | nullrepositories[].full_namestringrepositories[].descriptionstring | nullrepositories[].language_colorstring | nullrepositories[].stars_in_periodinteger, min: 0retrieved_atstring (date-time)spoken_language_codestring | nullFields marked ? are optional.
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: 0languagesobject[]languages[].namestringlanguages[].slugstringsource_urlstringretrieved_atstring (date-time)spoken_languagesobject[]spoken_languages[].codestringspoken_languages[].namestringDon’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.
An account is required to submit an extension. Prepare your request, then sign in to build.