$ man crates-io-stats
/crates-io-stats
PRICE / CALL
$0.003
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
crates-io-stats — fetches the public crates.io api record for a rust crate and returns description, license, repository, homepage, documentation, keywords,…
SYNOPSIS
POST https://x402.agentutility.ai/crates-io-stats
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Fetches the public crates.io API record for a Rust crate and returns description, license, repository, homepage, documentation, keywords, categories, latest stable version, total version count, recent versions with yanked flags + crate_size + Rust edition + MSRV, age in days, days_since_last_release, and all-time + recent-90d downloads. Public crates.io API, no auth, commercial use permitted with identifying User-Agent. Completes the trio with npm-package-stats and pypi-package-stats. Use it for crates.io package stats, Rust crate registry lookup, cargo package metadata, or Rust ecosystem stats.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| package | string | Crate name. 1-64 ASCII alphanumeric with '-' or '_'. | required |
| recent_versions | number | How many most-recent versions to include. 1-20. Default 5. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| package | string | Echo of the requested crate name. |
| name | string | Canonical crate name from crates.io. |
| description | string | Crate description from crates.io metadata. |
| license | string | License identifier (e.g. 'MIT OR Apache-2.0') from the crate or latest version. |
| homepage | string | Homepage URL from crates.io metadata. |
| repository | string | Repository URL from crates.io metadata. |
| documentation | string | Documentation URL from crates.io metadata. |
| keywords | array | Keyword tags assigned by the maintainer. |
| categories | array | Category slugs the crate belongs to on crates.io. |
| latest_version | string | Newest version per crates.io (includes pre-releases). |
| latest_stable_version | string | Newest version that is not a pre-release. |
| total_versions | number | Total version count returned by crates.io. |
| recent_versions | array | Most-recent N versions, each with version, published timestamp, yanked flag, downloads, license, edition, MSRV, and crate_size. |
| first_published | string | ISO timestamp of the crate's earliest publish. |
| last_published | string | ISO timestamp of the most-recent publish. |
| age_days | number | Days since the first publish. |
| days_since_last_release | number | Days since the most-recent publish — staleness signal. |
| downloads | object | Object with all_time and recent_90d download counts from crates.io. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/crates-io-stats \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the crates-io-stats tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- web-probecrates-iorustpackage-statscargoregistry
- methods
- POST
- cluster
- webprobe
- price
- $0.003 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| crypto-news-api | Returns recent cryptocurrency headline metadata and sentiment. | $0.003 |
| homoglyph-check | Detects Unicode lookalike characters that impersonate ASCII Latin letters, a common phishing-domain trick. | $0.003 |
| jwt-decode | Decodes a JWT and inspects its claims without needing the signing key. | $0.003 |
| npm-package-stats | Fetches the public npm registry record for a package and returns description, license, repository, latest version, total version count, r… | $0.003 |
| pypi-package-stats | Fetches the public PyPI JSON record for a Python package and returns summary, license, homepage, repository, documentation, issues URL, a… | $0.003 |
| url-metadata-extract | Extracts page metadata from any URL: title, description, Open Graph and Twitter Card tags, canonical link, and favicon. | $0.003 |
| keyword-suggest | Keyword and autocomplete suggestions for any seed query. | $0.002 |
| arxiv-bibtex | Turns an arXiv paper into a BibTeX entry: pulls title, authors, year, abstract, and DOI from the arXiv API and generates a properly-forma… | $0.005 |
SEE ALSO