GITHUB API
Trending Repositories
Retrieve trending repositories from GitHub with a single API request.
GET
/api/data/v1/github/trending/repositories1credit base cost
Request parameters
Up to 1 creditOptional coding language, e.g. javascript, python, or go.
Trending range: daily, weekly, or monthly. Defaults to daily.
Optional spoken language code filter, e.g. en.
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/github/trending/repositories' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"credits_charged": 1,
"since": "daily",
"language": null,
"spoken_language_code": null,
"repositories": [
{
"rank": 1,
"owner": "anthropics",
"repo": "claude-plugins-official",
"full_name": "anthropics/claude-plugins-official",
"url": "https://github.com/anthropics/claude-plugins-official",
"description": "Official, Anthropic-managed directory of high quality Claude Code Plugins.",
"language": "Python",
"language_color": "#3572A5",
"stars_count": 22064,
"forks_count": 2627,
"stars_today": 891,
"stars_today_text": "891 stars today",
"built_by": [
{
"username": "bryan-anthropic",
"avatar_url": "https://avatars.githubusercontent.com/u/238056179?s=40&v=4"
}
]
}
]
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"credits_remaining": {
"type": "integer"
},
"credits_charged": {
"type": "integer"
},
"since": {
"type": "string"
},
"language": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"spoken_language_code": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
},
"repositories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"rank": {
"type": "integer"
},
"owner": {
"type": "string"
},
"repo": {
"type": "string"
},
"full_name": {
"type": "string"
},
"url": {
"type": "string"
},
"description": {
"type": "string"
},
"language": {
"type": "string"
},
"language_color": {
"type": "string"
},
"stars_count": {
"type": "integer"
},
"forks_count": {
"type": "integer"
},
"stars_today": {
"type": "integer"
},
"stars_today_text": {
"type": "string"
},
"built_by": {
"type": "array",
"items": {
"type": "object",
"properties": {
"username": {
"type": "string"
},
"avatar_url": {
"type": "string"
}
}
}
}
}
}
}
}
}