github

Search GitHub repositories with the full query syntax (e.g.

Search GitHub repositories with the full query syntax (e.g. 'x402 language:typescript stars:>100'). Sort by stars/forks/updated. Returns total match count + repos with stars, language, topics, license, timestamps. Read-only; no caller key needed.

get/api/github/search-repos

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/github/search-repos
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

qstring required

Free-text search query.

sort'stars' | 'forks' | 'help-wanted-issues' | 'updated'

Field to sort results by.

order'asc' | 'desc'

Sort direction: asc or desc.

perPageinteger

Number of results to return per page.

pageinteger

Page number (1-based) for paginated results.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.