Tensorust LLC Crates API

The crates API from Tensorust LLC — 5 operation(s) for crates.

GitHub OpenAPI

Operations 5

GET /crates List tracked Rust crates #
GET /crates/compare Compare 2-10 crates with a verdict #
GET /crates/{name} One crate: real downloads, release share, daily numbers #
GET /crates/{name}/check Is this crate safe? Is my version affected? (live RustSec/OSV + crates.io) #
GET /advisories/{name}/{version} Is version X of a crate affected, and what is the fix version #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/tensorust-com:tensorust-com-crates-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

tensorust-com-crates-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Tensorust Crates API
  version: 1.0.0
  summary: 'Receipts-first data and free tools: real crates.io downloads, LLM API prices, The Manual, reports.'
  description: 'Current values are free with no key: 60 requests a minute per IP; an enterprise key lifts the limits. Full history (/history/*, /bulk/*) and research need an enterprise API key (API Enterprise, $60,000 a year: https://tensorust.com/offers/enterprise-api/) sent as `Authorization: Bearer tdk_...` or `X-API-Key`. 60 requests a minute per IP (HTTP 429 with Retry-After beyond that). Every record has a `url` to cite and, for prices and numbers, a source and check date. Bulk JSON without limits: https://tensorust.com/data/v1/index.json. MCP server: https://mcp.tensorust.com/mcp. Data license: CC BY 4.0, credit Tensorust with a link.'
  contact:
    name: Tensorust
    email: matt@tensorust.com
    url: https://tensorust.com/developers/
  license:
    name: CC BY 4.0 (data)
    url: https://creativecommons.org/licenses/by/4.0/
servers:
- url: https://api.tensorust.com/v1
tags:
- name: crates
paths:
  /crates:
    get:
      tags:
      - crates
      operationId: listCrates
      summary: List tracked Rust crates
      parameters:
      - name: q
        in: query
        required: false
        description: Filter by words in name/description/keywords
        schema:
          type: string
      - name: category
        in: query
        required: false
        description: crates.io category slug
        schema:
          type: string
      - name: sort
        in: query
        required: false
        description: real | all_time | recent | release_share | trend | name
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 1-300
        schema:
          type: integer
      - name: offset
        in: query
        required: false
        description: Paging offset
        schema:
          type: integer
      responses:
        '200':
          description: Crates
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /crates/compare:
    get:
      tags:
      - crates
      operationId: compareCrates
      summary: Compare 2-10 crates with a verdict
      parameters:
      - name: names
        in: query
        required: true
        description: Comma list of crate names
        schema:
          type: string
      responses:
        '200':
          description: Comparison
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /crates/{name}:
    get:
      tags:
      - crates
      operationId: getCrate
      summary: 'One crate: real downloads, release share, daily numbers'
      parameters:
      - name: name
        in: path
        required: true
        description: Crate name
        schema:
          type: string
      - name: days
        in: query
        required: false
        description: Daily numbers to include, 0-120 (default 90)
        schema:
          type: integer
      responses:
        '200':
          description: Crate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Crate'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /crates/{name}/check:
    get:
      tags:
      - crates
      operationId: crateCheck
      summary: Is this crate safe? Is my version affected? (live RustSec/OSV + crates.io)
      description: Verdict (ok, upgrade, caution, avoid), every advisory with fixed versions, and for ?version= whether it is affected, the smallest safe version and the exact cargo command. Also at /advisories/{name}/{version}.
      parameters:
      - name: name
        in: path
        required: true
        description: Crate name, e.g. time
        schema:
          type: string
      - name: version
        in: query
        required: false
        description: Your version, e.g. 0.2.22
        schema:
          type: string
      responses:
        '200':
          description: Check
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
  /advisories/{name}/{version}:
    get:
      tags:
      - crates
      operationId: advisoryCheck
      summary: Is version X of a crate affected, and what is the fix version
      parameters:
      - name: name
        in: path
        required: true
        description: Crate name
        schema:
          type: string
      - name: version
        in: path
        required: true
        description: Version, e.g. 0.2.22
        schema:
          type: string
      responses:
        '200':
          description: Check
          content:
            application/json:
              schema:
                type: object
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  responses:
    RateLimited:
      description: Over 60 requests a minute; see Retry-After
      headers:
        Retry-After:
          schema:
            type: integer
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
    Error:
      description: Error
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                description: What went wrong and how to fix the call
  schemas:
    Crate:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
        real_downloads_per_day:
          type: number
          description: Median downloads on quiet days (no release that day or the day before)
        release_window_share_pct:
          type: number
          description: Share of window downloads on release days and the day after
        all_time_downloads:
          type: integer
        quiet_trend_pct:
          type:
          - number
          - 'null'
        latest_version:
          type: string
        daily:
          type: array
          description: '[date, downloads, release_window]'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: Enterprise API key tdk_... (https://tensorust.com/offers/enterprise-api/)
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
externalDocs:
  url: https://tensorust.com/developers/
  description: Docs with curl, Python and JavaScript examples