{"uid":"cap_NEOTFN_56v33Q5w7USVnx","slug":"api-strale-io-5e532ffa","name":"GitHub Repository Comparison","description":"Compare two GitHub repositories side-by-side: stars, forks, activity, language, topics, license. Returns detailed comparison.","url":"https://api.strale.io/x402/github-repo-compare","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["repo_a","repo_b"],"properties":{"repo_a":{"type":"string","description":"owner/repo"},"repo_b":{"type":"string","description":"owner/repo"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"repo_a":"facebook/react","repo_b":"vuejs/vue"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x92f57ce8bcd6972a99586024c05f382445d817a70f2547f41924108147704356"},"capability":"github-repo-compare","latency_ms":347,"provenance":{"source":"api.github.com","fetched_at":"2026-06-13T04:25:18.302Z"}},"repo_a":{"forks":51053,"stars":245810,"topics":["declarative","frontend","javascript","library","react","ui"],"is_fork":false,"license":"MIT","size_kb":994078,"has_wiki":false,"language":"JavaScript","watchers":6690,"full_name":"react/react","has_pages":true,"pushed_at":"2026-06-12T19:00:16Z","created_at":"2013-05-24T16:15:54Z","updated_at":"2026-06-13T04:09:13Z","description":"The library for web and native user interfaces.","is_archived":false,"open_issues":1283,"default_branch":"main"},"repo_b":{"forks":33711,"stars":209863,"topics":["framework","frontend","javascript","vue"],"is_fork":false,"license":"MIT","size_kb":32152,"has_wiki":true,"language":"TypeScript","watchers":5754,"full_name":"vuejs/vue","has_pages":false,"pushed_at":"2024-10-10T07:24:15Z","created_at":"2013-07-29T03:24:51Z","updated_at":"2026-06-13T04:09:14Z","description":"This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core","is_archived":false,"open_issues":629,"default_branch":"main"},"comparison":{"forks":{"repo_a":51053,"repo_b":33711,"winner":"react/react"},"stars":{"repo_a":245810,"repo_b":209863,"winner":"react/react"},"size_kb":{"repo_a":994078,"repo_b":32152,"winner":"react/react"},"watchers":{"repo_a":6690,"repo_b":5754,"winner":"react/react"},"last_push":{"repo_a":"2026-06-12T19:00:16Z","repo_b":"2024-10-10T07:24:15Z","winner":"react/react"},"open_issues":{"repo_a":1283,"repo_b":629,"winner":"react/react"}},"common_topics":["frontend","javascript"],"same_language":false,"age_difference_days":65}},"exampleRequest":{"repo_a":"facebook/react","repo_b":"vuejs/vue"},"tags":["x402"],"displayCostAmount":"0.054001","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4PwZbg52oVd4iBWqsoR_E","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two GitHub repositories side-by-side across stars, forks, activity, language, topics, and license.","exampleAgentPrompt":"Can you compare the GitHub repos facebook/react and vuejs/vue side by side — show me their stars, forks, activity, language, and license?","exampleUseCases":null,"resultDescription":"Returns a detailed structured comparison of the two repositories including star counts, fork counts, recent activity, primary programming language, topics, and license information for each repo.","failureModes":["Invalid repo format (not 'owner/repo') — returns 400 bad request","Repository does not exist or is private — returns 404 not found","GitHub API rate limiting downstream — may return 429 or 503","Missing required query parameters repo_a or repo_b — returns 400 validation error","Payment not provided or insufficient — returns 402 payment required"],"whenToPreferThis":"Use this endpoint when you need a structured, side-by-side comparison of two GitHub repositories in a single call, especially when you want to evaluate popularity, activity health, language, topics, and licensing at once without making multiple separate GitHub API calls. Ideal for agents helping users choose between two open source libraries or tools.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:57:39.523Z","isFirstParty":false}