{"uid":"cap_p8Q--cKs9KmuplpKwoGEA","slug":"codepulse-api-crates-io-registry-lookup-55c6585f","name":"CodePulse API – Crates.io Registry Lookup","description":"Looks up Rust crate details, downloads history, and dependencies from Crates.io.","url":"https://codepulse-api.hahavoid0.workers.dev/registry/crates","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["crate"],"properties":{"crate":{"type":"string","description":"Rust crate name"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"result":{"crate":"tokio","version":"1.35.1","downloads":10000000},"warnings":[],"supported":true,"confidence":"high","data_as_of":"2026-06","disclaimer":"Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."}},"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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_agK5tbH0lve3k3hQDP2Ie","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a Rust crate on crates.io and returns its latest version, download count, and support status with confidence scoring.","exampleAgentPrompt":"Can you look up the tokio crate on crates.io and tell me its latest version, total downloads, and whether it's still actively supported?","exampleUseCases":[{"title":"Audit Rust project dependencies","prompt":"I'm reviewing the Cargo.toml for my project and I want to make sure all our key dependencies like serde, tokio, and clap are up to date and still actively maintained. Can you check each of them and let me know their latest versions and support status?"},{"title":"Answer Rust package questions in chat","prompt":"A user just asked me which version of actix-web is current and how popular it is. Can you pull the latest metadata for the actix-web crate and give me the version, total downloads, and whether it's still being maintained?"},{"title":"Flag outdated or abandoned crates","prompt":"Before we merge this PR, I want to flag any Rust crates we're adding that might be abandoned or have very low download counts. Can you look up hyper and reqwest on crates.io and tell me their support status and confidence level?"}],"resultDescription":"Returns a JSON object with the crate name, latest version string, total download count, a supported boolean, a confidence level (e.g. 'high'), the data currency date (e.g. '2026-06'), and a standard informational disclaimer. Also includes any warnings array.","failureModes":["Crate name not found in registry — returns unsupported or low-confidence result","Stale data if registry data_as_of date lags behind actual crates.io updates","Payment failure via x402 if USDC balance on Base is insufficient","Invalid request body or missing crate field returns an error","Worker timeout or upstream crates.io unavailability"],"whenToPreferThis":"Use this endpoint when an agent needs quick, structured metadata about a specific Rust crate — version, download popularity, and active support status — without scraping crates.io directly. Ideal for dependency audits, chatbot responses about Rust packages, or automated tooling that needs pay-per-call access with no API key setup. Prefer over direct crates.io HTML scraping when you need clean JSON output and confidence scoring.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:32:53.686Z","isFirstParty":false}