{"uid":"cap_cGOFchZBX5FNWa8KWnu0a","slug":"crates-io-package-statistics-2e11dd1f","name":"Crates.io Package Statistics","description":"817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.","url":"https://x402.agentutility.ai/crates-io-stats?utm_source=zero.xyz","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":{"required":["package"],"properties":{"package":{"type":"string","description":"Crate name. 1-64 ASCII alphanumeric with '-' or '_'."},"recent_versions":{"type":"number","description":"How many most-recent versions to include. 1-20. Default 5."}}},"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","properties":{"package":{"type":"string"},"age_days":{"type":"integer"},"downloads":{"type":"object","properties":{"all_time":{"type":"integer"},"recent_90d":{"type":"integer"}}},"latest_version":{"type":"string"},"total_versions":{"type":"integer"},"days_since_last_release":{"type":"integer"}}}}}}},"responseSchema":{"type":"json","example":{"package":"serde","age_days":3800,"downloads":{"all_time":425000000,"recent_90d":26000000},"latest_version":"1.0.219","total_versions":286,"days_since_last_release":12}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GD-oguiqzf65Pr7SwQnUp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches download counts, version history, and release metadata for any Rust crate from crates.io","exampleAgentPrompt":"What are the download stats for the serde crate — total all-time downloads, recent 90-day downloads, latest version, and how many days since the last release? Show me the last 5 versions.","exampleUseCases":[{"title":"Evaluating a Rust dependency's popularity","prompt":"I'm considering adding tokio as a dependency. Can you pull its crates.io stats — all-time downloads, recent 90-day downloads, latest version, and how long since the last release?"},{"title":"Checking if an open-source crate is still maintained","prompt":"Is the diesel crate still being actively maintained? Check when the last version was released and how its recent download numbers look."},{"title":"Comparing version history depth of a crate","prompt":"How many total versions has the clap crate published on crates.io, and what's the latest version number? Show me the last 10 versions if you can."}],"resultDescription":"Returns a JSON object with the crate name, its age in days, all-time download count, downloads in the last 90 days, latest version string, total number of published versions, and days elapsed since the most recent release.","failureModes":["Crate name not found on crates.io — returns an error or empty result","Invalid crate name format (non-ASCII, too long, illegal characters) — input validation failure","recent_versions out of range (0 or >20) — schema validation error","crates.io upstream API unavailable — service timeout or error response"],"whenToPreferThis":"Use this endpoint when you need programmatic access to Rust crate statistics without scraping crates.io directly. Ideal for dependency audits, open-source health checks, library comparison, or any workflow that needs download volume, version freshness, or release cadence data for Rust packages. Prefer this over manual crates.io browsing when automating decisions about Rust dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-05T12:41:59.848Z","isFirstParty":false,"canonicalSlug":"crates-io-package-statistics-2e11dd1f"}