{"openapi":"3.1.0","info":{"title":"GitHub Repositories Issues and Profiles Data (x402 & MCP)","version":"0.1.0","description":"Public GitHub repositories, issues, pull requests, discussions, code, users and organization catalogs, one row per entity.","x-guidance":"Structured real-time web intelligence APIs paid per delivered row in USDC via x402. All endpoints are synchronous at POST /s/<site>/v1/<endpoint> and also exposed over stateless MCP at POST /mcp. Supports x402 v2 'upto' (Permit2, charged strictly for delivered rows) and 'exact' (EIP-3009). Empty/0-row (404), invalid input (422), timeout (504), and upstream failures (502) are never charged.","contact":{"email":"ops@opendata.best"}},"servers":[{"url":"https://x402.opendata.best"}],"paths":{"/s/github-com/v1/search":{"post":{"operationId":"github_com_search","summary":"GitHub Repositories Issues and Profiles Data: Search GitHub repositories, issues, PRs, code and users","description":"Query public GitHub repositories, issues, pull requests, discussions, code, users, topics and organization catalogs. Unit price: $0.002000/row USDC (default quote 3 rows, max 5 rows). Unsettled / 0-row / error responses are never charged.","tags":["github-com","Tools"],"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"dynamic","currency":"USD","amount":"0.006000"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"Search text with GitHub qualifiers, such as language:python crawler. For Topic repositories, enter a topic slug; leave empty when supplying detail URLs or identifiers."},"searchType":{"type":"string","description":"Choose the kind of data to collect. Set this explicitly when using an organization, repository identifiers or a topic; discussion search may return no rows, and options marked not available are not supported for public runs.","default":"repositories","enum":["repositories","issues","code","pullrequests","discussions","users","repo","issue","orgRepos","topic","issuesList","explore","dashboard","login","pull","orgPeople","githubJapan"]},"detailUrls":{"type":"array","items":{"type":"string"},"description":"Supported GitHub repository, issue, organization-repository or topic links, with or without https://. The link path selects the page type; pull-request details and issue-list URLs are not supported."},"owner":{"type":"string","description":"Repository owner login. Fill this together with Repository for One repository, One issue or Repository issue list."},"repo":{"type":"string","description":"Repository name without its owner. Fill this together with Owner for One repository, One issue or Repository issue list."},"issueNumber":{"type":"integer","description":"Existing positive issue number for One issue. Copy it from a GitHub issue URL and supply Owner and Repository."},"org":{"type":"string","description":"Organization login for Organization repositories. Use an organization rather than a personal account, and select the matching search type."},"language":{"type":"string","description":"Optional programming-language filter for searches, such as Python. Leave empty for no language filter.","default":""},"repoType":{"type":"string","description":"Filter Organization repositories to all public repositories, original repositories, forks, archived repositories or templates. Leave empty to include all available public repositories.","default":"","enum":["","all","public","source","fork","archived","template"]},"sort":{"type":"string","description":"Optional search sort supported by the chosen search type, such as stars, comments or followers. Leave empty to keep the default order.","default":""},"order":{"type":"string","description":"Optional search direction: asc for ascending or desc for descending. Leave empty to keep the default direction.","default":""},"maxResults":{"type":"integer","description":"Most rows for each detail URL, or for the single query, topic, organization, repository, or issue input. Default 70; larger numbers are collected in parts of 70 when the input supports continuation. All row types count together. The whole run stops at your maximum total charge. Free platform plan: up to 200 rows per run and 10 runs of this Actor.","default":3,"minimum":1,"maximum":5},"maxPages":{"type":"integer","description":"Maximum pages to read, from 1 to 100. Source pagination may end earlier; this does not guarantee that every match is collected.","default":1,"minimum":1,"maximum":100},"enrichDetails":{"type":"boolean","description":"Add available public profile names, location text, websites, social links and published emails to existing rows. Enabled by default; private contact details stay unavailable.","default":true}},"additionalProperties":false},"example":{"searchType":"repositories","query":"stars:>50000","maxResults":3}}}},"responses":{"200":{"description":"Synchronous data rows with x402 PAYMENT-RESPONSE receipt header.","headers":{"PAYMENT-RESPONSE":{"description":"Base64-encoded x402 v2 SettleResponse receipt.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Response_github_com"},"example":{"jobId":"job_github-c_example","status":"succeeded","done":true,"rowCount":1,"rowsBilled":1,"rowsDelivered":1,"rows":[{"name":"example_name","kind":"example_kind","fullName":"example_fullName","ownerLogin":"example_ownerLogin","language":"example_language","url":"https://github.com/item/1"}],"meta":{"site":"github-com","endpoint":"search","maxResults":3,"payment":{"scheme":"upto","network":"eip155:84532","quotedMicrousd":6000,"settledMicrousd":2000,"transaction":"0x0000000000000000000000000000000000000000000000000000000000000000"}}}}}},"402":{"description":"Payment required or invalid/declined payment authorization (never charged).","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 v2 PaymentRequired quote.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object"}}}},"404":{"description":"no_results: 0 rows matched the query; aborted before settlement (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"payment_id_conflict: payment-identifier reused with different parameters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Invalid or missing request parameters (validated before /verify; charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Rate limit or payer cooldown exceeded (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream source failed or blocked (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"settlement_pending or facilitator_unavailable; retry same payment to reconcile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"upstream_timeout: synchronous deadline reached and task cancelled (charged=false).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/s/github-com/v1/health":{"get":{"operationId":"github_com_health","summary":"GitHub Repositories Issues and Profiles Data: health check","description":"Free readiness check (never returns 402 and never starts a collection).","tags":["github-com","health"],"responses":{"200":{"description":"Operational","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}},"503":{"description":"Unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthStatus"}}}}}}}},"components":{"schemas":{"ErrorDetail":{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"retryable":{"type":"boolean"},"charged":{"type":"boolean"}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ErrorDetail"}}},"HealthStatus":{"type":"object","required":["ok","site","status","endpoints","rowsBilled"],"properties":{"ok":{"type":"boolean"},"site":{"type":"string"},"status":{"type":"string","enum":["operational","unavailable"]},"endpoints":{"type":"array","items":{"type":"string"}},"rowsBilled":{"type":"integer"}}},"Row_github_com":{"type":"object","properties":{"name":{"type":["string","null"],"title":"Name"},"kind":{"type":["string","null"],"title":"Kind"},"fullName":{"type":["string","null"],"title":"Full name"},"ownerLogin":{"type":["string","null"],"title":"Owner"},"language":{"type":["string","null"],"title":"Language"},"url":{"type":["string","null"],"format":"uri","title":"URL"},"person":{"type":["string","null"],"title":"Person"},"emails":{"type":["string","null"],"title":"Emails"},"org":{"type":["string","null"],"title":"Org"},"id":{"type":["string","null"],"title":"ID"},"number":{"type":["string","null"],"title":"Issue #"},"country":{"type":["string","null"],"title":"Source market"}},"additionalProperties":true},"Response_github_com":{"type":"object","properties":{"jobId":{"type":"string"},"status":{"type":"string"},"done":{"type":"boolean"},"rowCount":{"type":"integer","minimum":1},"rowsBilled":{"type":"integer","minimum":1},"rowsDelivered":{"type":"integer","minimum":1},"rows":{"type":"array","items":{"$ref":"#/components/schemas/Row_github_com"}},"meta":{"type":"object","properties":{"site":{"type":"string"},"endpoint":{"type":"string"},"maxResults":{"type":"integer"},"payment":{"type":"object","properties":{"scheme":{"type":"string"},"network":{"type":"string"},"quotedMicrousd":{"type":"integer"},"settledMicrousd":{"type":"integer"},"transaction":{"type":"string"},"payer":{"type":"string"}}}}}},"required":["jobId","status","done","rowCount","rows"]}}},"x-discovery":{"ownershipProofs":["0xdb7c562a3ef6f9f29da4672abdab1489e82e910a91b863e3c22b905df6522b7223798a84245e0452cab689483b6cbb7cd8c13141319df982b213dea31ee7e4311c"]}}