> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# crates.io

> The Rust package registry: crate search, metadata, versions, dependencies, reverse dependencies, owners and download counts.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/crates-io.webp?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=b8850dc3c4d531ac435be1fb2304b1eb)

[Web Catalog · Developer](https://docs.webrouter.net/data-apis.md?category=developer)

No key needed

Endpoints

10

Auth

None

[Vendor docs](https://crates.io/data-access) · Serves `crates.io`

## Setup

| Variable | | What it is |
| - | - | - |
| `CRATES_IO_USER_AGENT` | optional | The User-Agent crates.io requires, identifying your application; it asks for a way to contact you, e.g. 'my-tool ([https://github.com/me/my-tool](https://github.com/me/my-tool))'. Default `web-router`. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Keyless. The data-access policy allows at most 1 request per second and a User-Agent naming your application; for bulk work it points to the sparse index, the database dump or the RSS feeds instead.
* The OpenAPI description is marked experimental and the API may change.
* Paging uses page or seek (from meta.next\_page), never both.

## Endpoints

GET

Search crates

Crates matching a text query or filtered by category, keyword, letter or owner, with download counts.

[Open](#crates-io-crates-search)

GET

Get a crate

Crate metadata: description, links, downloads, max versions, keywords, categories and versions.

[Open](#crates-io-crates-get)

GET

List a crate's versions

Every published version with dates, downloads, license, yank status and size.

[Open](#crates-io-crates-versions)

GET

Get one version

Metadata of one crate version.

[Open](#crates-io-versions-get)

GET

List a version's dependencies

Dependencies of one crate version with their requirements and kinds.

[Open](#crates-io-versions-dependencies)

GET

List reverse dependencies

Crates that depend on this one.

[Open](#crates-io-crates-reverse-dependencies)

GET

Get download counts

Daily downloads for the last 90 days for the latest 5 versions, plus the rest summed.

[Open](#crates-io-crates-downloads)

GET

List a crate's owners

The users and teams that own a crate.

[Open](#crates-io-crates-owners)

GET

Get registry summary

Front-page data: totals, new, most downloaded, recently updated crates, popular keywords and categories.

[Open](#crates-io-summary)

GET

List categories

Crate categories with crate counts.

[Open](#crates-io-categories-list)

### Search crates

GET

`/api/v1/crates`

`crates-io.crates.search`

Crates matching a text query or filtered by category, keyword, letter or owner, with download counts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Search text. Example `http client`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order; default relevance with q, else alphabetical. One of `alphabetical`, `relevance`, `downloads`, `recent-downloads`, `recent-updates`, `new`</td></tr>
    <tr><td>`category`</td><td>string</td><td>query</td><td>Only this category slug or its subcategories. Example `web-programming`</td></tr>

    <tr>
      <td>
        `keyword`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only crates with this keyword.
      </td>
    </tr>

    <tr>
      <td>
        `all_keywords`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Space-separated keywords that must all match (overrides keyword).
      </td>
    </tr>

    <tr>
      <td>
        `letter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only names starting with this letter.
      </td>
    </tr>

    <tr>
      <td>
        `user_id`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only crates owned by this crates.io user ID.
      </td>
    </tr>

    <tr>
      <td>
        `team_id`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Only crates owned by this crates.io team ID.
      </td>
    </tr>

    <tr><td>`include_yanked`</td><td>string</td><td>query</td><td>yes to include yanked crates. One of `yes`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1; not combinable with seek.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page.
      </td>
    </tr>

    <tr>
      <td>
        `seek`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Seek key from meta.next\_page; not combinable with page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-search), [npm registry](https://docs.webrouter.net/data-apis/npm.md#npm-packages-search), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-search)

```python Python theme={null}
router.call_data_api("crates-io.crates.search", {'q': 'http client', 'category': 'web-programming'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.search", params={"q": "http client", "category": "web-programming"})
```

> [!NOTE]
>
> * Sorted by relevance, only the first 1,000 results are reachable even when meta.total is higher.

### Get a crate

GET

`/api/v1/crates/{name}`

`crates-io.crates.get`

Crate metadata: description, links, downloads, max versions, keywords, categories and versions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>

    <tr>
      <td>
        `include`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Comma-separated extras: versions, keywords, categories, badges, downloads, default\_version, or full (the default).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-repositories-get), [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-get), [npm registry](https://docs.webrouter.net/data-apis/npm.md#npm-packages-get), [PyPI](https://docs.webrouter.net/data-apis/pypi.md#pypi-project-get), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-get)

```python Python theme={null}
router.call_data_api("crates-io.crates.get", {'name': 'serde'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.get", params={"name": "serde"})
```

### List a crate's versions

GET

`/api/v1/crates/{name}/versions`

`crates-io.crates.versions`

Every published version with dates, downloads, license, yank status and size.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>semver (default) or date. One of `semver`, `date`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1; not combinable with seek.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page.
      </td>
    </tr>

    <tr>
      <td>
        `seek`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Seek key from meta.next\_page; not combinable with page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-tags-list), [PyPI](https://docs.webrouter.net/data-apis/pypi.md#pypi-release-get), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-versions)

```python Python theme={null}
router.call_data_api("crates-io.crates.versions", {'name': 'serde'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.versions", params={"name": "serde"})
```

### Get one version

GET

`/api/v1/crates/{name}/{version}`

`crates-io.versions.get`

Metadata of one crate version.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>
    <tr><td>`version` required</td><td>string</td><td>path</td><td>Version number. Example `1.0.200`</td></tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-tags-list), [PyPI](https://docs.webrouter.net/data-apis/pypi.md#pypi-release-get), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-versions)

```python Python theme={null}
router.call_data_api("crates-io.versions.get", {'name': 'serde', 'version': '1.0.200'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.versions.get", params={"name": "serde", "version": "1.0.200"})
```

### List a version's dependencies

GET

`/api/v1/crates/{name}/{version}/dependencies`

`crates-io.versions.dependencies`

Dependencies of one crate version with their requirements and kinds.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>
    <tr><td>`version` required</td><td>string</td><td>path</td><td>Version number. Example `1.0.200`</td></tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-dependencies)

```python Python theme={null}
router.call_data_api("crates-io.versions.dependencies", {'name': 'serde', 'version': '1.0.200'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.versions.dependencies", params={"name": "serde", "version": "1.0.200"})
```

### List reverse dependencies

GET

`/api/v1/crates/{name}/reverse_dependencies`

`crates-io.crates.reverse_dependencies`

Crates that depend on this one.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1; not combinable with seek.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page.
      </td>
    </tr>

    <tr>
      <td>
        `seek`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Seek key from meta.next\_page; not combinable with page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-dependents), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-reverse-dependencies)

```python Python theme={null}
router.call_data_api("crates-io.crates.reverse_dependencies", {'name': 'serde'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.reverse_dependencies", params={"name": "serde"})
```

### Get download counts

GET

`/api/v1/crates/{name}/downloads`

`crates-io.crates.downloads`

Daily downloads for the last 90 days for the latest 5 versions, plus the rest summed.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [npm registry](https://docs.webrouter.net/data-apis/npm.md#npm-downloads-point), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-downloads-version)

```python Python theme={null}
router.call_data_api("crates-io.crates.downloads", {'name': 'serde'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.downloads", params={"name": "serde"})
```

### List a crate's owners

GET

`/api/v1/crates/{name}/owners`

`crates-io.crates.owners`

The users and teams that own a crate.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Crate name. Example `serde`</td></tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Docker Hub](https://docs.webrouter.net/data-apis/docker-hub.md#docker-hub-repositories-get), [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-get), [npm registry](https://docs.webrouter.net/data-apis/npm.md#npm-packages-get), [PyPI](https://docs.webrouter.net/data-apis/pypi.md#pypi-project-get), [RubyGems.org](https://docs.webrouter.net/data-apis/rubygems.md#rubygems-gems-get)

```python Python theme={null}
router.call_data_api("crates-io.crates.owners", {'name': 'serde'})
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.crates.owners", params={"name": "serde"})
```

### Get registry summary

GET

`/api/v1/summary`

`crates-io.summary`

Front-page data: totals, new, most downloaded, recently updated crates, popular keywords and categories.

Input

No inputs.

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [Libraries.io](https://docs.webrouter.net/data-apis/libraries-io.md#libraries-io-projects-sourcerank), [PyPI](https://docs.webrouter.net/data-apis/pypi.md#pypi-stats)

```python Python theme={null}
router.call_data_api("crates-io.summary")
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.summary")
```

### List categories

GET

`/api/v1/categories`

`crates-io.categories.list`

Crate categories with crate counts.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>alpha (default) or crates. One of `alpha`, `crates`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page number, from 1; not combinable with seek.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page.
      </td>
    </tr>

    <tr>
      <td>
        `seek`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Seek key from meta.next\_page; not combinable with page.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://crates.io/api/openapi.json) · Same job: [AlienVault OTX (LevelBlue Open Threat Exchange)](https://docs.webrouter.net/data-apis/alienvault-otx.md#alienvault-otx-indicator-types-list), [CIRCL hashlookup](https://docs.webrouter.net/data-apis/circl-hashlookup.md#circl-hashlookup-info), [ClinicalTrials.gov](https://docs.webrouter.net/data-apis/clinicaltrials-gov.md#clinicaltrials-gov-studies-enums), [Event Registry (NewsAPI.ai)](https://docs.webrouter.net/data-apis/event-registry.md#event-registry-suggest-concepts), [Have I Been Pwned](https://docs.webrouter.net/data-apis/haveibeenpwned.md#haveibeenpwned-data-classes-list), [Hybrid Analysis](https://docs.webrouter.net/data-apis/hybrid-analysis.md#hybrid-analysis-environments-list)

```python Python theme={null}
router.call_data_api("crates-io.categories.list")
```

```text MCP theme={null}
call_data_api(endpoint="crates-io.categories.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.