{"uid":"cap_jzWnAmcJ1i6S_Pg048npx","slug":"2s-io-d607ce71","name":"2s.io GitHub Repository Lookup","description":"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.","url":"https://2s.io/api/code/repo-lookup","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"required":["repo"],"properties":{"repo":{"type":"string","description":"\"owner/name\" slug."}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"repo":"facebook/react"}}},"response":{"data":{"ok":true,"items":[{"repo":"react","size":994209,"owner":"react","isFork":false,"topics":["declarative","frontend","javascript","library","react","ui"],"hasWiki":false,"htmlUrl":"https://github.com/react/react","license":{"key":"mit","name":"MIT License"},"fullName":"react/react","homepage":"https://react.dev","language":"JavaScript","pushedAt":"2026-06-11T22:44:35Z","createdAt":"2013-05-24T16:15:54Z","hasIssues":true,"isPrivate":false,"updatedAt":"2026-06-12T03:55:28Z","forksCount":51053,"isArchived":false,"isDisabled":false,"isTemplate":false,"starsCount":245768,"visibility":"public","description":"The library for web and native user interfaces.","hasProjects":false,"networkCount":51053,"defaultBranch":"main","watchersCount":245768,"hasDiscussions":false,"openIssuesCount":1286,"subscribersCount":6693}],"total":1,"source":{"url":"https://docs.github.com/en/rest","license":"Public registry metadata (GitHub Terms; 60 req/hr/IP unauthenticated).","provider":"GitHub REST API (unauthenticated)"}},"meta":{"cost":{"usd":0.0012,"tier":0},"caller":"x402","version":null,"endpoint":"code.repo-lookup","settlement":{"txHash":"0x4091737d699406fb5b9e16cf600b24f019efc1d090bce23e3f1b26dbb63b8fca","network":"eip155:8453","success":true}}}},"exampleRequest":{"repo":"facebook/react"},"tags":["x402"],"displayCostAmount":"0.0012","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0012/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bT-zZCOsENI8igmPwBoaY","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up metadata for a public GitHub repository by owner/name slug, returning stars, forks, language, license, topics, and timestamps.","exampleAgentPrompt":"Can you pull up the GitHub repo details for 'vercel/next.js' — I want to know its star count, primary language, license, and when it was last pushed?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the repository's full name, owner, description, homepage URL, default branch, primary programming language, topics array, license (SPDX key and name), numeric counts (stars, forks, watchers, open issues, subscribers, network), size in KB, ISO timestamps (created, updated, pushed), visibility string, and boolean flags for issues/projects/wiki/discussions features. Returns 429 with UPSTREAM_RATE_LIMIT code if GitHub's unauthenticated rate limit (60 req/hour per server IP) is exhausted.","failureModes":["Repository not found (404) if the slug is invalid or the repo is private/deleted","429 UPSTREAM_RATE_LIMIT when GitHub's 60 req/hour unauthenticated limit is exhausted","Malformed slug (missing '/' separator) may cause a 400 or unexpected result","Private repositories are inaccessible and will return a not-found error"],"whenToPreferThis":"Use this endpoint when you need structured metadata about a public GitHub repository without setting up your own GitHub API credentials or OAuth token. Ideal for agents that need quick one-off repo lookups (stars, language, license, topics) and can tolerate the shared rate limit of 60 requests/hour. Not suitable for high-volume batch lookups or private repository access.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:21:32.092Z","isFirstParty":false}