{"uid":"cap_kGzE6BE5Fo7wm0tROIFLX","slug":"x402helper-xyz-package-documentation-snippet-lookup-fc2a6f0b","name":"x402helper.xyz Package Documentation Snippet Lookup","description":"X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.","url":"https://x402helper.xyz/89e509/docs/snippet?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["name","ecosystem"],"properties":{"name":{"type":"string","default":null,"description":"Package name; for github pass owner/repo such as coinbase/x402. npm scoped names @scope/name are allowed."},"topic":{"type":"string","default":null,"description":"Optional topic or symbol; matched against the README/llms.txt markdown headings, such as authentication or useEffect."},"symbol":{"type":"string","default":null,"description":"Optional symbol name to match, an alias for topic."},"version":{"type":"string","default":null,"description":"Optional exact version to pin, such as 2.31.0; default is latest."},"ecosystem":{"enum":["npm","pypi","crates","github"],"type":"string","default":null,"description":"Package ecosystem. Aliases accepted: pip and python map to pypi; cargo and rust map to crates; node maps to npm; gh maps to github."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{},"success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.009","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.009/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.009","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EMFFGwyokFPylwfyWLk5J","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.009","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a documentation snippet or README section for a software package from npm, PyPI, crates.io, or GitHub, gated behind an x402 USDC micropayment.","exampleAgentPrompt":"Look up the authentication section of the coinbase/x402 GitHub repo docs for me — fetch the latest version and focus on the 'authentication' topic.","exampleUseCases":[{"title":"React hook docs for an agent","prompt":"Can you pull up the docs for the 'useEffect' topic in the react npm package, latest version?"},{"title":"Python package README lookup","prompt":"Fetch the README snippet about 'installation' from the requests package on PyPI."},{"title":"Rust crate documentation retrieval","prompt":"Get me the docs for the serde crate on crates.io, specifically the section about 'serialization', version 1.0.193."}],"resultDescription":"A JSON object with a 'result' field containing the documentation snippet or README section matching the requested package, ecosystem, topic/symbol, and version, along with a 'success' boolean indicating whether the lookup succeeded.","failureModes":["Package not found in the specified ecosystem — returns success: false","Invalid ecosystem value — returns validation error","Payment not provided or insufficient — returns HTTP 402 before content is served","Topic or symbol not found in README — may return empty or partial result","Version pinned does not exist — returns not found error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to programmatically retrieve package documentation or README snippets from npm, PyPI, crates.io, or GitHub without scraping, and is operating in an x402-enabled micropayment context. It is especially useful for agents that need to answer developer questions about library usage, API signatures, or specific topics within a package's documentation at low cost per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:48.597Z","isFirstParty":false,"canonicalSlug":"x402helper-xyz-package-documentation-snippet-lookup-fc2a6f0b"}