Skip to content

crates.io API: Search crates

Finds Rust crates on crates.io by keywords, sorted by relevance, total downloads, recent downloads, or newest creation.

crates.io (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by crates.io.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Sort optionalsort

Order results by relevance, total downloads, recent downloads, or newest crate creation, such as downloads.

relevance (default)

One of relevance, downloads, recent_downloads, newest.

Query, requiredquery

Words to search for, such as http client.

http client

Max Results optionalmax_results

Maximum number of crates to return, from 1 to 100, such as 20.

20 (default)

Whole number from 1 to 100.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "crates": [    {      "link": "https://crates.io/crates/cdk-http-client",      "name": "cdk-http-client",      "description": "HTTP client abstraction for CDK",      "latest_version": "0.18.2",      "total_downloads": 24975,      "recent_downloads": 17113,      "last_updated_date": "2026-10-14"    },    {      "link": "https://crates.io/crates/http-client",      "name": "http-client",      "description": "Types and traits for http clients.",      "latest_version": "6.5.3",      "total_downloads": 8016822,      "recent_downloads": 688289,      "last_updated_date": "2022-06-20"    },    {      "link": "https://crates.io/crates/http-client-gpui-unofficial",      "name": "http-client-gpui-unofficial",      "description": "A HTTP client library for Zed and GPUI",      "latest_version": "1.25.2",      "total_downloads": 13009,      "recent_downloads": 8918,      "last_updated_date": "2026-10-22"    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
crates.io/search_crates
Returns
name, latest version, description, total and recent downloads, last update date, link

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method crates.io/search_crates with the inputs above.

Ask your agent

  • Find Rust crates for async HTTP clients, sorted by total downloads, top 10 results
  • Which Rust crate handles JSON serialization? Show the most relevant matches
  • Search crates.io for logging libraries sorted by newest creation date
  • I need the most recently downloaded Rust crates for CLI argument parsing, up to 15 results
  • List Rust crates about database connection pooling ranked by relevance, max 25
  • Looks up a Rust crate by name or crates.io link and returns its latest version, downloads, links, dates, license and 10 most recent releases.

    crates.io/get_crate
  • Searches PyPI by keywords and returns matching packages in relevance order, each with its latest version and that version's release date. Returns up to 100 results.

    pypi.org/search_packages
  • Finds public GitHub repositories by keywords, with an optional language filter and sort order. Returns up to 100 matches.

    github.com/search_repositories
  • Finds public Hugging Face models by search words, with an optional task and sort order. License is null when the model does not publish one.

    huggingface.co/search_models
  • Searches the npm registry for JavaScript packages by description or keywords, in npm's search order, and returns each package's latest version, weekly downloads and publish date.

    npmjs.com/search_packages
  • Search Chewy products by words, pet type, and sort order. Returns up to 72 products in Chewy's order, including listed and first-order Autoship prices when shown.

    chewy.com/search_products
  • Finds public Docker Hub container images matching a software name, in Docker Hub search order, with publisher, badge, stars, last update and exact total pulls when Docker Hub publishes them. Can keep only Docker Official Images and Verified Publisher images.

    hub.docker.com/search_container_images
  • Searches AliExpress listings by product words, shipping destination, price range and sort order. Unpriced promotional cards are omitted; free shipping is marked only when the listing explicitly says so.

    aliexpress.com/search_products