{"uid":"cap_INIzqEq5Yx70bRVz0JCZF","slug":"docs-library-f52f063b","name":"docs-library","description":"Up-to-date, version-pinned documentation for a library or API, for coding agents. Give an ecosystem and a package name (optional version and topic) and get a compact doc slice: package identity (latest and requested version, license, repo, homepage and doc URLs, version list) plus the README or llms.txt section matching the topic, each with a provenance citation. Keyless PyPI, npm, crates and GitHub sources.","url":"https://payai.agentstools.dev/docs/library?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["name","ecosystem"],"properties":{"name":{"type":"string","description":"Package name; for github pass owner/repo such as coinbase/x402. npm scoped names @scope/name are allowed."},"topic":{"type":"string","description":"Optional topic or symbol; matched against the README/llms.txt markdown headings, such as authentication or useEffect."},"version":{"type":"string","description":"Optional exact version to pin, such as 2.31.0; default is latest."},"ecosystem":{"enum":["npm","pypi","crates","github"],"type":"string","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":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_6GbR8Rz71qhY224KTcQcP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches version-pinned, topic-filtered documentation for a package from PyPI, npm, crates.io, or GitHub — returning package identity metadata plus the relevant README or llms.txt section.","exampleAgentPrompt":"Can you pull up the authentication section of the requests library docs from PyPI — latest version — so I know how to handle sessions?","exampleUseCases":[{"title":"Coding agent fetching library auth docs","prompt":"Get me the docs for the 'httpx' package on PyPI, specifically the section about authentication, pinned to version 0.27.0."},{"title":"Checking license and version info for compliance","prompt":"What's the latest version and license for the 'lodash' npm package? I need the package identity info before adding it to our project."},{"title":"Rust crate API reference for agent","prompt":"Fetch the README for the 'tokio' crate on crates.io — I want the section on async runtime, latest version."}],"resultDescription":"Returns a JSON object containing: package identity fields (requested and latest version, license, repo URL, homepage URL, docs URL, full version list) and a relevant documentation slice (README or llms.txt section matching the requested topic), each entry accompanied by a provenance citation indicating the source.","failureModes":["Package not found in the specified ecosystem — returns an error indicating the package name is invalid or unavailable","Requested version does not exist — returns an error with available version list","Topic heading not found in README or llms.txt — may return the full README or an empty section","Ecosystem alias not recognized — returns a validation error","Rate limiting or upstream registry unavailability — returns a service error"],"whenToPreferThis":"Choose this endpoint when a coding agent needs up-to-date, version-pinned documentation for a specific library without requiring API keys or authentication. It is ideal when you need both package identity metadata (license, versions, URLs) and a relevant documentation slice in one call. Prefer it over raw web scraping or general search when working with PyPI, npm, crates.io, or GitHub repos and you want structured, citation-backed output optimized for LLM consumption (llms.txt support).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:42:31.731Z","isFirstParty":false,"canonicalSlug":"docs-library-f52f063b"}