---
title: "crates.io API: Crate | Perceptlayer"
description: "One crate's details: downloads, versions with dates and licenses, keywords, categories and links."
url: https://perceptlayer.com/apis/crates-io/crate
---

[APIs](https://perceptlayer.com/apis) / [crates.io](https://perceptlayer.com/apis/crates-io) / Crate

# crates.io: Crate

One crate's details: downloads, versions with dates and licenses, keywords, categories and links.

GET `/v1/crates-io/crate`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `name` | string | Required | Up to 100 characters Crate name, for example serde. |

## Example request

crates.io

GET /v1/crates-io/crate?name=serde 

```
{
  "success": true,
  "data": {
    "name": "serde",
    "description": "A generic serialization/deserialization framework",
    "latest_version": "1.0.229",
    "downloads": 1817058559,
    "recent_downloads": 473498822,
    "created_at": "2014-12-05T20:20:39.487502Z",
    "updated_at": "2026-07-18T23:05:13.266456Z",
    "repository": "https://github.com/serde-rs/serde",
    "homepage": "https://serde.rs",
    "documentation": "https://docs.rs/serde",
    "url": "https://crates.io/crates/serde",
    "latest_stable_version": "1.0.229",
    "version_count": 316,
    "keywords": [
      "serialization",
      "no_std",
      "serde"
    ],
    "categories": [
      "No standard library",
      "Encoding",
      "No dynamic allocation"
    ],
    "versions": [
      {
        "version": "1.0.229",
        "created_at": "2026-07-18T23:05:13.266456Z",
        "downloads": 319696897,
        "yanked": false,
        "license": "MIT OR Apache-2.0",
        "rust_version": "1.56",
        "size_bytes": 83669,
        "published_by": "dtolnay"
      },
      {
        "version": "1.0.228",
        "created_at": "2025-09-27T16:51:35.265429Z",
        "downloads": 600322893,
        "yanked": false,
        "license": "MIT OR Apache-2.0",
        "rust_version": "1.56",
        "size_bytes": 83652,
        "published_by": "dtolnay"
      },
      {
        "version": "1.0.227",
        "created_at": "2025-09-25T23:43:08.742811Z",
        "downloads": 1872036,
        "yanked": false,
        "license": "MIT OR Apache-2.0",
        "rust_version": "1.56",
        "size_bytes": 83643,
        "published_by": "dtolnay"
      }
    ]
  },
  "meta": {
    "request_id": "req_9675c629918149259b11d75e801ba0c9",
    "credits_charged": 1,
    "credits_remaining": 1990
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/crates-io?try=crate#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 16 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `name` | string |
| `description` | string |
| `latest_version` | string |
| `downloads` | integer |
| `recent_downloads` | integer |
| `created_at` | string |
| `updated_at` | string |
| `repository` | url |
| `homepage` | url |
| `documentation` | url |
| `url` | url |
| `latest_stable_version` | string |
| `version_count` | integer |
| `keywords` | string\[\] |
| `categories` | string\[\] |
| `versions` | object\[\] |
