# Crates.io Scraper – Rust Packages, Downloads & Repos (`ninhothedev/crates-io-scraper`) Actor

$1/1K 🔥 Fast Crates.io scraper! Rust packages — downloads, versions, repo, keywords, categories & docs. JSON, CSV, Excel or API in seconds. Search or list crates & extract thousands of packages for dev intel ⚡

- **URL**: https://apify.com/ninhothedev/crates-io-scraper.md
- **Developed by:** [ninhothedev](https://apify.com/ninhothedev) (community)
- **Categories:** Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Crates.io Scraper – Rust Packages, Downloads & Repos

**Get clean crates.io data for any Rust package: total & recent downloads, latest version, description, keywords, categories, homepage, repository and docs. Search by query or fetch specific crates by name. As JSON, CSV or Excel. Free, no key, no proxy.**

### 💵 Pricing

**Pay per result — about $0.0004 per item ($0.40 / 1,000).** No subscription, no proxy needed. You only pay for the data you scrape, and new Apify accounts include free monthly credits so you can test it for **$0**.

### 🔎 What can it extract?

- Crate name, description, latest (max) version
- **Total downloads & recent downloads**
- Keywords and categories
- Homepage, repository and documentation links
- Created / updated timestamps
- Direct crate URL (`https://crates.io/crates/{name}`)

### 🚀 How do I use it?

1. Click **Try for free**.
2. Set the input (see example below).
3. Click **Start** and download results as JSON, CSV or Excel — or pull them via the API / schedule them.

### ⚙️ Input example

```json
{
  "mode": "search",
  "query": "web scraping",
  "sort": "downloads",
  "maxItems": 100
}
```

Fetch specific crates with full keywords + categories:

```json
{
  "mode": "crates",
  "crateNames": ["tokio", "serde"]
}
```

### 📦 Output example

```json
{
  "name": "tokio",
  "description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.",
  "downloads": 350000000,
  "recent_downloads": 42000000,
  "max_version": "1.38.0",
  "homepage": "https://tokio.rs",
  "repository": "https://github.com/tokio-rs/tokio",
  "documentation": "https://docs.rs/tokio",
  "keywords": ["io", "async", "non-blocking", "futures"],
  "categories": ["asynchronous", "network-programming"],
  "created_at": "2016-08-15T09:00:00.000000+00:00",
  "updated_at": "2024-06-01T09:00:00.000000+00:00",
  "url": "https://crates.io/crates/tokio",
  "scraped_at": "2026-07-01T12:00:00+00:00"
}
```

### 🎯 Use cases

- Rust dependency & supply-chain analysis
- Tracking package popularity and download trends
- Building developer-tooling and package datasets
- Discovering crates by keyword or category
- Competitive research on the Rust ecosystem

### 💰 How much will it cost?

You pay only the per-result price (no proxy cost):
100 → ~$0.04 · 1,000 → ~$0.40 · 10,000 → ~$4

### 🆚 Why this one

| Feature | This actor | Others |
|---|---|---|
| Search + fetch by name | ✅ | one only |
| Keywords + categories | ✅ | partial |
| Total + recent downloads | ✅ | sometimes |
| No key / no proxy | ✅ | sometimes |

### 🔗 Related actors

- [NPM Package Scraper](https://apify.com/ninhothedev/npm-package-scraper) — Node packages
- [GitHub Scraper](https://apify.com/ninhothedev/github-scraper) — repos & profiles
- [Docker Hub Scraper](https://apify.com/ninhothedev/docker-hub-scraper) — container images
- [Hacker News Scraper](https://apify.com/ninhothedev/hacker-news-scraper) — tech news

### ❓ FAQ

**Key/proxy?** No. crates.io is a free public API. **Bulk?** Use search with `maxItems` up to 1,000, or list up to 50 names in `crates` mode.

### 🛟 Support

Found a bug or need an extra field? Open an issue on the actor — fixes and new fields ship fast.

### Legal & privacy

Data via the public crates.io JSON API, accessed with a descriptive User-Agent per their crawler policy. No personal data is collected.

***

**Keywords:** crates.io scraper, rust packages, cargo, crate downloads, dependency data, developer tools, package registry, JSON CSV Excel

# Actor input Schema

## `mode` (type: `string`):

How to fetch data: 'search' finds crates by a text query (sorted), 'crates' fetches full detail (incl. keywords + categories) for specific crate names.

## `query` (type: `string`):

Text to search crates.io for (mode=search), e.g. 'web scraping', 'async', 'http'.

## `crateNames` (type: `array`):

Exact crate names to fetch full detail for (mode=crates), e.g. tokio, serde. Batch is capped at 50 per run.

## `sort` (type: `string`):

Sort order for search results: total downloads, recent downloads, most recently updated, or relevance to the query.

## `maxItems` (type: `integer`):

Maximum number of crates to return (search mode). One crate = one dataset item.

## Actor input object example

```json
{
  "mode": "search",
  "query": "web scraping",
  "crateNames": [
    "tokio",
    "serde"
  ],
  "sort": "downloads",
  "maxItems": 100
}
```

# Actor output Schema

## `crates` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "query": "web scraping",
    "crateNames": [
        "tokio",
        "serde"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("ninhothedev/crates-io-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "query": "web scraping",
    "crateNames": [
        "tokio",
        "serde",
    ],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("ninhothedev/crates-io-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "query": "web scraping",
  "crateNames": [
    "tokio",
    "serde"
  ],
  "maxItems": 100
}' |
apify call ninhothedev/crates-io-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ninhothedev/crates-io-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/uCz7hwaRB2xmjoLMa/builds/aYO7OaP2ePy0cPlbA/openapi.json
