{"slug":"api-s2ar-dev-x402-v1-sym-read-371040","title":"Function source from a GitHub repo — one symbol with its doc comment, by name","host":"api.s2ar.dev","method":"GET","resource":"https://api.s2ar.dev/x402/v1/sym/read","category":"other","description":"Function source from a GitHub repo — one symbol with its doc comment, by name. GET ?repo=&file=&symbol=","price_listed":0.005,"price_asked":0.005,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":621,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"file":"crates/core/flags/defs.rs","ref":"14.1.1","repo":"BurntSushi/ripgrep","symbol":"Glob as Flag"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"headers":{"additionalProperties":{"type":"string"},"type":"object"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":{"type":"string"},"properties":{"file":{"description":"path inside the repository","type":"string"},"ref":{"description":"branch, tag or commit; the default branch when omitted","type":"string"},"repo":{"description":"a public GitHub, GitLab or Codeberg repository: owner/repo, github.com/owner/repo or its https URL","type":"string"},"symbol":{"description":"a name as sym ls lists it","type":"string"}},"required":["repo","file","symbol"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method","queryParams"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.005,"price_match":true,"latency_ms":621,"error":null}],"description_full":"Function source from a GitHub repo — one symbol with its doc comment, by name. GET ?repo=&file=&symbol=","last_updated":"2026-10-10T02:43:00.863Z","schemes":["exact"]}