code

Look up a public GitHub repository by "owner/name" slug.

Look up a public GitHub repository by "owner/name" slug. Returns full name, owner, description, homepage, default branch, primary language, topics, license (SPDX key + name), counts (stars / forks / watchers / open issues / subscribers / network), size, timestamps (created/updated/pushed), visibility, has-issues/projects/wiki/discussions flags. Unauthenticated GitHub access is rate-limited to 60 req/hour per server IP — returns 429 UPSTREAM_RATE_LIMIT when the bucket is empty.

get/api/code/repo-lookup

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/code/repo-lookup
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

repostring required

Repo.

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.