crates.io · JSON Structure

Crates Io Crate Structure

Logical structure of the core crates.io resources and their relationships. Companion to crates-io-crate-schema.json (validation) and crates-io-context.jsonld (semantics).

Type: Properties: 0
RustPackage RegistryCratesCargoOpen-SourceDeveloper ToolsRust Foundation

Crates Io Crate Structure is a JSON Structure definition published by crates.io. It conforms to the https://json-structure.org/schema meta-schema.

Meta-schema: https://json-structure.org/schema

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/schema",
  "$id": "https://api-evangelist.com/structures/crates-io/crates-io-crate-structure.json",
  "title": "crates.io Crate Structure",
  "description": "Logical structure of the core crates.io resources and their relationships. Companion to crates-io-crate-schema.json (validation) and crates-io-context.jsonld (semantics).",
  "entities": {
    "Crate": {
      "identifiers": ["name"],
      "fields": [
        "name", "description", "max_version", "max_stable_version", "newest_version",
        "downloads", "recent_downloads", "repository", "documentation", "homepage",
        "created_at", "updated_at"
      ],
      "relations": {
        "has_versions": { "target": "Version", "cardinality": "1..*" },
        "owned_by": { "target": "Owner", "cardinality": "1..*" },
        "tagged_with": { "target": "Keyword", "cardinality": "0..*" },
        "categorized_as": { "target": "Category", "cardinality": "0..*" }
      }
    },
    "Version": {
      "identifiers": ["crate", "num"],
      "fields": [
        "num", "downloads", "features", "yanked", "license", "rust_version",
        "crate_size", "checksum", "created_at", "updated_at", "dl_path"
      ],
      "relations": {
        "belongs_to": { "target": "Crate", "cardinality": "1" },
        "depends_on": { "target": "Dependency", "cardinality": "0..*" }
      }
    },
    "Dependency": {
      "identifiers": ["name", "req"],
      "fields": ["name", "req", "features", "optional", "default_features", "target", "kind", "registry", "package"]
    },
    "Owner": {
      "identifiers": ["login"],
      "fields": ["id", "login", "name", "kind", "avatar", "url"]
    },
    "Keyword": {
      "identifiers": ["keyword"],
      "fields": ["keyword", "crates_cnt", "created_at"]
    },
    "Category": {
      "identifiers": ["slug"],
      "fields": ["category", "slug", "description", "crates_cnt", "created_at"]
    },
    "RegistryConfig": {
      "identifiers": ["api"],
      "fields": ["dl", "api", "auth-required"]
    }
  }
}

Work with this as data

Every JSON Structure 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 json structure

4 MCP tools reach this
  • find_json_structuresBrowse and filter every JSON Structure 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 Structure
curl "https://apis.io/api/v1/json-structures/crates-io-crate-structure"
All json structure
curl "https://apis.io/api/v1/json-structures?limit=25"

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

Get an API key

Free tier, no email required.

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