{"uid":"cap_0vyBagmWtW-58-SKiPC5_","slug":"2s-io-github-repository-metadata-lookup-f7205bf0","name":"2s.io GitHub Repository Metadata Lookup","description":"GitHub repository metadata: full name, owner, description, stars, forks, watchers, open issues, primary language, topics, SPDX license, default branch, homepage, archived flag, and created/updated/pushed timestamps. Read-only; no GitHub key needed by the caller.","url":"https://2s.io/api/github/repo","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":{"type":"object","required":["owner","repo"],"properties":{"repo":{"type":"string","maxLength":120,"minLength":1},"owner":{"type":"string","maxLength":100,"minLength":1}},"additionalProperties":false}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"repo":"react","owner":"facebook"}}},"response":{"data":{"ok":true,"items":[{"url":"https://github.com/react/react","fork":false,"name":"react","forks":51122,"owner":"react","stars":246121,"topics":["declarative","frontend","javascript","library","react","ui"],"license":"MIT","private":false,"archived":false,"fullName":"react/react","homepage":"https://react.dev","language":"JavaScript","pushedAt":"2026-06-30T19:45:01Z","watchers":6601,"createdAt":"2013-05-24T16:15:54Z","updatedAt":"2026-07-01T02:48:32Z","openIssues":1265,"description":"The library for web and native user interfaces.","defaultBranch":"main"}],"total":1,"source":{"url":"https://github.com","license":"GitHub REST API; redistributed read-only.","provider":"GitHub"}},"meta":{"cost":{"usd":0.001},"caller":"x402","version":null,"endpoint":"github.repo","settlement":{"txHash":"0xc1178884ca589789238c880d4e0d0ea550c81575ead8eb853a27470b86fccc1a","network":"eip155:8453","success":true}}}},"exampleRequest":{"repo":"react","owner":"facebook"},"tags":["x402"],"displayCostAmount":"0.0025","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.0025/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0025","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uKpW6ehF9HZ5hIPjQykJM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0025","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches comprehensive metadata for a GitHub repository including stars, forks, license, language, topics, and timestamps — no GitHub API key required.","exampleAgentPrompt":"Can you pull up the full metadata for the 'facebook/react' GitHub repo — stars, forks, license, language, topics, and when it was last pushed?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the repository's full name, owner, description, star count, fork count, watcher count, open issues count, primary programming language, topics array, SPDX license identifier, default branch name, homepage URL, archived boolean, and ISO timestamps for creation, last update, and last push.","failureModes":["Repository not found (invalid owner or repo name) — likely returns 404 or error response","Rate limiting or upstream GitHub API unavailability — may return 5xx error","Malformed query parameters (empty owner or repo string) — rejected by schema validation","Private repositories may not be accessible — returns error or empty data"],"whenToPreferThis":"Use this endpoint when you need rich GitHub repository metadata without managing your own GitHub API credentials or rate limits. Ideal for agents that need to enrich data about open-source projects, check license compliance, assess project health via stars/forks/issues, or verify whether a repo is still actively maintained — all at a low per-call cost with no auth setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:21:32.096Z","isFirstParty":false}