UnifAPI Docs

List trending GitHub repositories

Returns GitHub's trending repositories for a time window (`daily`, `weekly`, `monthly`), optionally for one programming or spoken language, with stars gained in the window.

Pricing — $ · min $0.003

Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.

GET
/github/trending/repos

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Query Parameters

language?string

Optional coding language filter.

Length1 <= length
since?string

Trending time window. Default: daily.

Value in

  • "daily"
  • "weekly"
  • "monthly"
spoken_language_code?string

Optional spoken language code filter.

Length1 <= length

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/github/trending/repos"
{  "request_id": "string",  "data": [    {      "rank": 0,      "owner": "string",      "repo": "string",      "full_name": "string",      "url": "string",      "description": "string",      "language": "string",      "language_color": "string",      "stars_count": 0,      "forks_count": 0,      "stars_today": 0,      "stars_today_text": "string",      "built_by": [        {          "username": "string",          "avatar_url": "string"        }      ]    }  ],  "pagination": {    "has_more": true,    "next_cursor": "string"  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}