Crates.io, RubyGems & NuGet Package Intelligence API avatar

Crates.io, RubyGems & NuGet Package Intelligence API

Pricing

from $2.50 / 1,000 multi-registry package intels

Go to Apify Store
Crates.io, RubyGems & NuGet Package Intelligence API

Crates.io, RubyGems & NuGet Package Intelligence API

Query Rust Crates.io, RubyGems.org, and .NET NuGet registries in one unified JSON schema for versions, total & recent downloads, licenses, authors/owners, repo links, and update timestamps. Zero API keys. Built for DevTools, AppSec, VCs, n8n, and AI agents (MCP).

Pricing

from $2.50 / 1,000 multi-registry package intels

Rating

0.0

(0)

Developer

John Erlbacher

John Erlbacher

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

Query Rust (Crates.io), Ruby (RubyGems.org), and .NET (NuGet) official public package registries in a single unified JSON schema — extracting latest versions, total & recent downloads, SPDX licenses, descriptions, homepages, source repositories, authors/owners, version counts, and UTC update timestamps with zero API keys required.

Built for DevTools growth teams, software supply-chain & SBOM auditors, VC/open-source diligence, n8n/Make/Zapier automation workflows, and AI coding agents via Model Context Protocol (MCP).


Why Use This Actor?

Enterprise engineering teams, security scanners, and developer-ecosystem analysts regularly track dependencies across Rust, Ruby, and .NET — yet each package registry exposes completely different REST conventions, pagination styles, license encodings, and author/owner schemas:

  • Crates.io nests license metadata inside individual version records, separates crate owners onto a dedicated /owners endpoint, and enforces a strict descriptive User-Agent and 1 req/sec crawler policy.
  • RubyGems.org returns gem metadata at /api/v1/gems/{name}.json with comma-separated author strings and stores total version history separately at /api/v1/versions/{name}.json.
  • .NET NuGet serves download counts and version arrays from Azure Search (azuresearch-usnc.nuget.org/query), while SPDX licenseExpression, git repository URLs, and published timestamps live in NuGet v3 registration leaves and catalog entries.

This Actor abstracts all three official public APIs behind one flat, deterministic JSON record format:

  • Zero API Keys & 100% Official APIs: Queries only documented public JSON endpoints (crates.io, rubygems.org, azuresearch-usnc.nuget.org, api.nuget.org). No HTML scraping, no cookies, no authentication tokens.
  • Crates.io Policy Compliant: Automatically sends a descriptive User-Agent header and paces Crates.io requests cleanly while querying RubyGems and NuGet in parallel.
  • Flexible Input Parsing: Accepts ecosystem:name prefixes (crates:tokio, rubygems:rails, nuget:Newtonsoft.Json), ecosystem aliases (cargo:, rust:, ruby:, gem:, dotnet:, csharp:), or full public package URLs (https://crates.io/crates/serde, https://rubygems.org/gems/sidekiq, https://www.nuget.org/packages/Serilog).
  • Clean Metadata Normalization: Normalizes SPDX licenses (converting legacy slash syntax like MIT/Apache-2.0 to MIT OR Apache-2.0 and resolving NuGet catalog licenseExpression), upgrades git/SSH repository links to clean HTTPS URLs, deduplicates authors and owners, and formats all timestamps as canonical UTC ISO-8601 (YYYY-MM-DDTHH:MM:SSZ).
  • Lightweight & Resilient: Built on httpx async I/O with configurable concurrency, exponential backoff retries on HTTP 429/5xx responses, graceful fallbacks for secondary enrichment endpoints, and a minimal 256–512 MB memory footprint.

Input Parameters

FieldTypeDefaultDescription
packagesarray<string>["crates:tokio", "rubygems:rails", "nuget:Newtonsoft.Json"]List of packages in ecosystem:name format (crates:tokio, rubygems:rails, nuget:Newtonsoft.Json) or full Crates.io, RubyGems.org, or NuGet.org URLs.
maxConcurrencyinteger5Maximum number of packages queried concurrently (1–20). Crates.io calls are additionally paced to respect its crawler guidelines.

Example Input

{
"packages": [
"crates:tokio",
"crates:serde",
"rubygems:rails",
"rubygems:sidekiq",
"nuget:Newtonsoft.Json",
"nuget:Serilog",
"https://crates.io/crates/axum",
"https://rubygems.org/gems/puma",
"https://www.nuget.org/packages/Dapper"
],
"maxConcurrency": 5
}

Output Schema & Example Record

Every valid package produces one structured JSON object in the default Apify Dataset with identical fields across Rust, Ruby, and .NET:

{
"packageId": "crates:tokio",
"ecosystem": "crates",
"packageName": "tokio",
"latestVersion": "1.54.1",
"totalDownloads": 1230462530,
"recentDownloads": 325340416,
"license": "MIT",
"description": "An event-driven, non-blocking I/O platform for writing asynchronous I/O backed applications.",
"homepageUrl": "https://tokio.rs",
"repositoryUrl": "https://github.com/tokio-rs/tokio",
"authorsOrOwners": [
"Carl Lerche",
"Alice Ryhl",
"github:tokio-rs:core"
],
"updatedAtUtc": "2026-10-21T21:05:43Z",
"versionsCount": 201,
"registryUrl": "https://crates.io/crates/tokio",
"profiledAtUtc": "2026-11-22T19:05:00Z"
}

Cross-Registry Field Normalization Notes

FieldRust Crates.io (crates)RubyGems.org (rubygems).NET NuGet (nuget)
latestVersionmax_stable_version (fallback newest_version)versionLatest stable version (prerelease=false)
totalDownloadsAll-time downloadsAll-time downloadsAll-time totalDownloads
recentDownloadsTrailing 90-day recent_downloadsLatest version version_downloadsLatest version downloads
licenseLatest version SPDX licenseJoined licenses arrayCatalog licenseExpression
authorsOrOwnersCrate /owners (fallback published_by)Parsed authors listDeduplicated authors + owners
updatedAtUtcCrate updated_at (UTC)version_created_at (UTC)Registration/catalog published (UTC)
versionsCountTotal published versionsCount from /api/v1/versions/{name}.jsonCount of stable versions
registryUrlhttps://crates.io/crates/{name}https://rubygems.org/gems/{name}https://www.nuget.org/packages/{name}

Pricing (Pay-Per-Event)

This Actor uses transparent Pay-Per-Event (PPE) pricing — you pay only when a valid package profile is successfully fetched and stored in your dataset. Missing packages (HTTP 404) and malformed specs are skipped at zero cost, and deterministic idempotency keys (reg-{ecosystem}-{packageName}) prevent duplicate billing.

Event NameUnitDescriptionPrice Range
package-intel1 packageOne structured Rust Crates.io, RubyGems, or NuGet package profile$0.0025 – $0.004 / package

Auditing 100 dependencies from a Cargo.toml, Gemfile, or .csproj file costs roughly $0.25–$0.40 and completes in seconds. You can cap total spend per run directly in Apify Console.


Automation & AI Agent Recipes

1. Multi-Language SBOM & License Audit (n8n / Make + Slack)

  1. Trigger: Schedule weekly or trigger on pull-request dependency changes (Cargo.toml, Gemfile.lock, packages.config).
  2. Apify Node: Run crates-rubygems-nuget-intel with your organization's tracked packages.
  3. Filter / Alert: Flag packages with missing or copyleft license values, stale updatedAtUtc timestamps, or sudden drops in recentDownloads, and post a concise digest to Slack or Jira.

2. AI Coding Agents via Apify MCP Server

Connect crates-rubygems-nuget-intel to Claude Desktop, Cursor, or Windsurf via the Apify MCP Server to inspect dependencies before adding them to production code:

  • "Query crates:tokio, crates:async-std, and crates:smol using crates-rubygems-nuget-intel and compare their recent downloads, licenses, and last update dates."
  • "Profile nuget:Newtonsoft.Json, nuget:Serilog, and rubygems:rails to verify licenses, owners, and official repository links."

Official Public Data Sources

  • Rust Crates.io API: https://crates.io/api/v1/crates/{name}
  • RubyGems.org API: https://rubygems.org/api/v1/gems/{name}.json
  • .NET NuGet Search & V3 Registration API: https://azuresearch-usnc.nuget.org/query?q=packageid:{name}&prerelease=false