Crates.io Package Scraper
Pricing
from $1.50 / 1,000 results
Crates.io Package Scraper
Search and extract Rust package data from Crates.io. Get download stats, versions, dependencies, and metadata. No API key required.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer
cloud9
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
19 hours ago
Last modified
Categories
Share
Search and extract Rust package data from Crates.io. Get download stats, versions, dependencies, and metadata. No API key required.
Use cases
- Benchmark Rust crates by download volume before choosing a dependency
- Track adoption of your own crate over time
- Audit a project's dependency list for licenses and maintenance activity
- Build a Rust ecosystem dashboard or newsletter
- Find alternatives to an unmaintained crate
Input
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode | string | No | "search" | search: search crates by keyword. detail: fetch details for specific crate names. Allowed: search, detail. |
query | string | No | "web framework" | Search keyword (required for search mode) |
crateNames | array | No | ["tokio","serde","actix-web"] | List of crate names to fetch details for (required for detail mode) |
sort | string | No | "downloads" | Sort order for search results Allowed: downloads, recent-downloads, recent-updates, new. |
maxResults | integer | No | 20 | Maximum number of results to return (search mode only) |
Example input
{"mode": "search","query": "web framework","crateNames": ["tokio","serde","actix-web"],"sort": "downloads","maxResults": 20}
Output
The exact fields depend on the mode you run. This is real output from an actual run of this Actor:
{"name": "tokio","version": "1.53.1","description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O\nbacked applications.\n","downloads": 941695801,"recentDownloads": 218364796,"homepage": "https://tokio.rs","repository": "https://github.com/tokio-rs/tokio","license": null,"keywords": [],"categories": [],"updatedAt": "2026-07-20T17:06:09.996426Z","cratesioUrl": "https://crates.io/crates/tokio"}
| Field | Type |
|---|---|
name | string |
version | string |
description | string |
downloads | number |
recentDownloads | number |
homepage | string |
repository | string |
license | null |
keywords | array |
categories | array |
updatedAt | string |
cratesioUrl | string |
Results are exportable from Apify Console or the API as JSON, CSV, Excel, or XML.
How to run it
In Apify Console — open the Actor, fill in the input form, click Start, then download the results from the Dataset tab.
With the JavaScript client
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });const run = await client.actor('cloud9_ai/cratesio-scraper').call({"mode": "search","query": "web framework","crateNames": ["tokio","serde","actix-web"],"sort": "downloads","maxResults": 20});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
With the Python client
from apify_client import ApifyClientclient = ApifyClient('YOUR_APIFY_TOKEN')run = client.actor('cloud9_ai/cratesio-scraper').call(run_input={"mode": "search","query": "web framework","crateNames": ["tokio","serde","actix-web"],"sort": "downloads","maxResults": 20})for item in client.dataset(run['defaultDatasetId']).iterate_items():print(item)
With the API — POST https://api.apify.com/v2/acts/cloud9_ai~cratesio-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN with the input JSON as the body.
Notes and limits
- No API key, account, or login is needed — just the input above.
maxResultscaps how much a single run collects, which is also what caps the run's cost.- Requests are paced and failed requests are retried automatically, so runs stay inside the source's rate limits.
- Only publicly available data is collected. How you use the output is your responsibility, including the source's terms of use and any applicable data-protection law.
Support
Found a bug, or need a field that isn't in the output? Open an issue on the Issues tab of this Actor in Apify Console. Issues there are read and answered.
License
Apache-2.0