{"uid":"cap_lBxfKbbXG1qJ23mBCPlF4","slug":"2s-io-crates-io-search-9cf3c5aa","name":"2s.io Crates.io Search","description":"Search crates.io for Rust packages (keyless). Each result: name, latest stable version, description, total + recent downloads, and repository/homepage/documentation links. For agents discovering or vetting Rust dependencies.","url":"https://2s.io/api/dev/crates-search","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","queryParams"],"properties":{"type":{"const":"http"},"method":{"const":"GET"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","maxLength":200,"minLength":1,"description":"Crate search text, e.g. \"tokio async\"."},"limit":{"type":"integer","maximum":30,"minimum":1}},"additionalProperties":false}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0036","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.0036/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0036","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0iAXJdgQcsfd4wpPVkYaa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0036","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search crates.io for Rust packages and return name, version, description, download stats, and repository links","exampleAgentPrompt":"Search crates.io for async Rust HTTP client libraries and show me the top 5 results with their latest versions, download counts, and repo links.","exampleUseCases":null,"resultDescription":"A list of matching Rust crates (up to the specified limit), each including: crate name, latest stable version, short description, total and recent download counts, and links to the repository, homepage, and documentation.","failureModes":["Empty query string returns validation error (minLength:1 not met)","Query exceeding 200 characters returns validation error","Limit exceeding 30 returns validation error","No matching crates returns empty result list","crates.io upstream unavailable causes service error","Payment failure (x402) blocks request"],"whenToPreferThis":"Use this endpoint when an AI agent needs to discover, vet, or compare Rust crates from crates.io without requiring any API key. Ideal for automated dependency research, code generation assistants choosing libraries, or developer agents auditing Rust project dependencies.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:11:53.477Z","isFirstParty":false}