{"slug":"2s-io-api-github-search-code-92bc0e","title":"Search code across GitHub with the code-search syntax (e.g","host":"2s.io","method":"GET","resource":"https://2s.io/api/github/search-code","category":"code","description":"Search code across GitHub with the code-search syntax (e.g. 'defineEndpoint repo:AlleyFord/2s' or 'addEventListener language:js'). Returns total match count + file name, path, repository, and URL for each hit. Read-only; no caller key needed.","price_listed":0.0025,"price_asked":0.0025,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":247,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"page":1,"perPage":1,"q":"example"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"method":{"const":"GET"},"queryParams":{"additionalProperties":false,"properties":{"page":{"minimum":1,"type":"integer"},"perPage":{"maximum":50,"minimum":1,"type":"integer"},"q":{"maxLength":400,"minLength":1,"type":"string"}},"required":["q"],"type":"object"},"type":{"const":"http"}},"required":["type","method","queryParams"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-09-28","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.0025,"price_match":true,"latency_ms":247,"error":null}],"description_full":"Search code across GitHub with the code-search syntax (e.g. 'defineEndpoint repo:AlleyFord/2s' or 'addEventListener language:js'). Returns total match count + file name, path, repository, and URL for each hit. Read-only; no caller key needed.","last_updated":"2026-09-27T15:59:43.515Z","schemes":["exact"]}