crates.io · Schema

crates.io Crate

Schema for a crate document returned by the crates.io Web API. Mirrors the response of GET /api/v1/crates/{crate} including the embedded crate summary, version list, keywords, and categories.

RustPackage RegistryCratesCargoOpen SourceDeveloper ToolsRust Foundation

Properties

Name Type Description
crate object
versions array
keywords array
categories array
View JSON Schema on GitHub

JSON Schema

crates-io-crate-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.com/schemas/crates-io/crates-io-crate-schema.json",
  "title": "crates.io Crate",
  "description": "Schema for a crate document returned by the crates.io Web API. Mirrors the response of GET /api/v1/crates/{crate} including the embedded crate summary, version list, keywords, and categories.",
  "type": "object",
  "required": ["crate"],
  "properties": {
    "crate": { "$ref": "#/definitions/CrateSummary" },
    "versions": {
      "type": "array",
      "items": { "$ref": "#/definitions/Version" }
    },
    "keywords": {
      "type": "array",
      "items": { "$ref": "#/definitions/Keyword" }
    },
    "categories": {
      "type": "array",
      "items": { "$ref": "#/definitions/Category" }
    }
  },
  "definitions": {
    "CrateSummary": {
      "type": "object",
      "required": ["name", "max_version"],
      "properties": {
        "id": { "type": "string" },
        "name": { "type": "string", "description": "Canonical crate name." },
        "description": { "type": "string" },
        "max_version": { "type": "string", "description": "Highest published version (including pre-releases)." },
        "max_stable_version": { "type": "string", "nullable": true },
        "newest_version": { "type": "string" },
        "downloads": { "type": "integer", "minimum": 0 },
        "recent_downloads": { "type": "integer", "minimum": 0 },
        "repository": { "type": "string", "format": "uri" },
        "documentation": { "type": "string", "format": "uri" },
        "homepage": { "type": "string", "format": "uri" },
        "keywords": { "type": "array", "items": { "type": "string" } },
        "categories": { "type": "array", "items": { "type": "string" } },
        "created_at": { "type": "string", "format": "date-time" },
        "updated_at": { "type": "string", "format": "date-time" }
      }
    },
    "Version": {
      "type": "object",
      "required": ["num", "crate"],
      "properties": {
        "id": { "type": "integer" },
        "crate": { "type": "string" },
        "num": { "type": "string", "description": "Semver version string." },
        "dl_path": { "type": "string", "description": "Relative download path for the .crate tarball." },
        "readme_path": { "type": "string" },
        "updated_at": { "type": "string", "format": "date-time" },
        "created_at": { "type": "string", "format": "date-time" },
        "downloads": { "type": "integer", "minimum": 0 },
        "features": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": { "type": "string" }
          }
        },
        "yanked": { "type": "boolean" },
        "license": { "type": "string", "description": "SPDX-style license expression." },
        "rust_version": { "type": "string", "nullable": true },
        "crate_size": { "type": "integer", "nullable": true },
        "checksum": { "type": "string", "description": "SHA-256 hex of the .crate file." }
      }
    },
    "Keyword": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "keyword": { "type": "string" },
        "created_at": { "type": "string", "format": "date-time" },
        "crates_cnt": { "type": "integer", "minimum": 0 }
      }
    },
    "Category": {
      "type": "object",
      "properties": {
        "id": { "type": "string" },
        "category": { "type": "string" },
        "slug": { "type": "string" },
        "description": { "type": "string" },
        "crates_cnt": { "type": "integer", "minimum": 0 },
        "created_at": { "type": "string", "format": "date-time" }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/crates-io-crate"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.