Skip to main content
All providers

crates.io

Developer

crates.io

Rust crate metadata from the official registry: every published version, downloads, dependencies and owners.

Capabilities (12)

GET /v1/data/crates/categories1 credit

Returns the crates.io category tree with each category's slug, human label, description and crate count.

page?per_page?sort?
GET /v1/data/crates/category1 credit

Returns one category with its crate count, creation date and the list of its subcategories.

category
GET /v1/data/crates/crate1 credit

Returns one crate's metadata plus its full version list: description, repository, homepage, docs link, keywords, categories, total and recent download counts.

name
GET /v1/data/crates/dependencies1 credit

Returns the normal, build and dev dependencies declared by one crate version, each with its semver requirement, optional flag, features and target cfg.

nameversion
GET /v1/data/crates/downloads1 credit

Returns daily download counts per version for roughly the last 90 days, plus an 'extra_downloads' series for versions no longer listed individually.

name
GET /v1/data/crates/keywords1 credit

Returns crate keywords with how many crates use each one, sortable by popularity.

page?per_page?sort?
GET /v1/data/crates/owners1 credit

Returns the users and GitHub teams allowed to publish a crate, with login, display name, avatar and GitHub profile URL.

name
GET /v1/data/crates/reverse-dependencies1 credit

Returns crates that depend on this crate, paged and ordered by downloads, with the version requirement each one declares.

namepage?per_page?
GET /v1/data/crates/search1 credit

Full-text search over crate names, descriptions and keywords, returning a paged list with downloads, latest version and a total count.

q?page?per_page?sort?category?keyword?all_keywords?user_id?team_id?
GET /v1/data/crates/summary1 credit

Returns the crates.io front-page rollup: total crate and download counts, plus the newest, most downloaded, most recently updated and most popular crates and keywords.

No parameters
GET /v1/data/crates/version1 credit

Returns one published version: its feature map, MSRV, license, yank status, size, checksum, publish date and download count.

nameversion
GET /v1/data/crates/versions1 credit

Returns every published version of a crate with publish date, yanked flag, license, feature map and per-version download count.

name

Response example

The shape of data from crates/categories (Crate categories). A sample, not live data.

JSON
{
  "categories": [
    {
      "id": "api-bindings",
      "category": "API bindings",
      "slug": "api-bindings",
      "description": "Idiomatic wrappers of specific APIs for convenient access from Rust. Includes HTTP API wrappers as well. Non-idiomatic or unsafe bindings can be found in External FFI bindings.",
      "created_at": "2017-01-17T19:13:05.112025Z",
      "crates_cnt": 15006
    },
    {
      "id": "accessibility",
      "category": "Accessibility",
      "slug": "accessibility",
      "description": "Assistive technology that helps overcome disabilities and impairments to make software usable by as many people as possible.",
      "created_at": "2020-11-27T20:35:10.539054Z",
      "crates_cnt": 721
    },
    "… 8 more items"
  ],
  "meta": {
    "total": 58
  }
}

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Crate categories

    Use crates.io (crates) from fastCRW Pergamon, capability "Crate categories" (categories). You want the valid category slugs to filter a search by, or an overview of how the registry is organised. Example options: page=1, per_page=10, sort=crates. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "crates" and capability "categories". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Category detail

    Use crates.io (crates) from fastCRW Pergamon, capability "Category detail" (category). You have a category slug and want its crate count and children before drilling into a search. Example options: category=web-programming. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "crates" and capability "category". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Crate overview

    Use crates.io (crates) from fastCRW Pergamon, capability "Crate overview" (crate). You have a crate name and want everything about it in one call, including its release history. Example options: name=serde. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "crates" and capability "crate". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Dependencies of a version

    Use crates.io (crates) from fastCRW Pergamon, capability "Dependencies of a version" (dependencies). You want to know what a specific release of a crate pulls in. Example options: name=serde, version=1.0.219. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "crates" and capability "dependencies". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

crates.io is the Rust community's public package registry; the metadata this API returns is published for exactly this kind of programmatic access. We pass it through and do not licence callers to rebuild the registry.

https://crates.io/policies

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: crates.io

Cache: up to 3600s