RubyGems.org API Scraper: Ruby Gems Packages
Pricing
from $1.39 / 1,000 rubygems package records
RubyGems.org API Scraper: Ruby Gems Packages
Fetch Ruby gem package data (name, version, download counts, license, project links) from the public RubyGems.org API as structured JSON dataset rows. Not affiliated with RubyGems.org API.
Pricing
from $1.39 / 1,000 rubygems package records
Rating
0.0
(0)
Developer
PlainKit bin
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
RubyGems.org API Scraper: Search Ruby Gems and Package Data
Ruby developers, dependency-audit and open-source-intelligence teams, DevRel analysts, recruiters who track Ruby libraries, and tool builders who feed a package catalog need rubygems ruby packages as clean rows instead of hand-built API calls. One run searches RubyGems.org for a phrase and returns up to 1,000 gems: one row per gem with its name, latest version, total downloads, downloads of the latest version, license, short description, and the project, homepage, source code, documentation, bug tracker, changelog and gem file links.
Typical jobs: list the gems that match a topic such as sidekiq or rails, rank competing libraries by download count, collect source code and changelog links for a dependency review, check which licenses a group of gems uses, or load a package catalog into a dataset or database.
The price is $0.002 per delivered package row under the FREE tier on Apify Pay-Per-Event (event name: rubygems-package).
This Actor is an independent tool and is not affiliated with RubyGems.org API.
It needs no API key and no account at the data provider.
Output Row Fields
Each delivered row contains 15 fields copied from the RubyGems.org response:
name: gem name (for examplerails)version: latest released versiondownloads: total downloads of the gem across all versionsversion_downloads: downloads of the latest versionplatform: gem platform, usuallyrubylicenses: licenses declared by the gem, joined with a commainfo: short description of the gem, cut at 500 charactersproject_uri: gem page on RubyGems.orghomepage_uri: homepage declared by the gem, empty when nonesource_code_uri: source code link declared by the gem, empty when nonedocumentation_uri: documentation link, empty when nonebug_tracker_uri: bug tracker link, empty when nonechangelog_uri: changelog link, empty when nonegem_uri: download link of the gem filesha: SHA-256 checksum of the gem file as listed by RubyGems.org
Author names are not part of the output.
Example Output
{"bug_tracker_uri": "https://github.com/rails/rails/issues","changelog_uri": "https://github.com/rails/rails/releases/tag/v8.1.4.1","documentation_uri": "https://api.rubyonrails.org/v8.1.4.1/","downloads": 821873889,"gem_uri": "https://rubygems.org/gems/rails-8.1.4.1.gem","homepage_uri": "https://rubyonrails.org","info": "Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.","licenses": "MIT","name": "rails","platform": "ruby","project_uri": "https://rubygems.org/gems/rails","sha": "365c3a0ad2713bd6e60628e5e826622d4ca8dee60b5a7e560e9b20844e9650bc","source_code_uri": "https://github.com/rails/rails/tree/v8.1.4.1","version": "8.1.4.1","version_downloads": 4427227}
If RubyGems.org refuses a call (HTTP 401, 403 or 429), the run ends with one extra row whose platform is status and whose name is the reason code STATUS_RUBYGEMS_REFUSED. That row is never charged. Rows delivered before the refusal stay delivered and charged.
Pricing and Charging
- Event name:
rubygems-package - Pricing model: Apify Pay-Per-Event
- Tier prices:
- FREE: $0.002 per event
- BRONZE: $0.0018 per event
- SILVER: $0.0016 per event
- GOLD: $0.0013936 per event
- PLATINUM: $0.0013936 per event
- DIAMOND: $0.0013336 per event
Each package row is pushed first to the dataset and charged right after a successful push. A refused charge or reached spending limit halts work immediately; that row remains delivered and uncharged. Failed requests produce 0 charges and push no data. Restart safety: if a run is restarted or resumed by the platform, already delivered gems are recognized by name and never pushed or charged twice.
Input Parameters
| Field | Type | Description | Default |
|---|---|---|---|
search | String | Search text for gems on RubyGems.org, at most 200 characters. | rails |
max_items | Integer (1-1000) | Maximum number of package rows to output. | 10 |
Example Input
{"search": "sidekiq","max_items": 10}
RubyGems.org Data Notes & Limitations
Data is read from the public RubyGems.org search endpoint at rubygems.org/api/v1/search.json without a key.
The RubyGems.org Acceptable Use Policy rules out activity that places undue burden on its servers through automated means, so this Actor stays small and polite:
- The Actor spaces its requests 0.2 seconds apart, half of the published limit of 10 requests per second, and makes at most one request per 30 rows.
- Transient server errors are retried a bounded number of times; HTTP 401, 403 and 429 are never retried.
- Redirects are never followed.
- The search returns the latest version of each matching gem, ranked by the RubyGems.org search order.
- Download counts and links are the values RubyGems.org lists at the time of the run; gems may declare no homepage, documentation or changelog link, and those fields are then empty.
Use as an MCP Tool (AI Agents)
AI agents and MCP clients (such as Claude Desktop or Cursor) can invoke plainkitbin/rubygems-packages directly via @apify/actors-mcp-server over stdio:
$APIFY_TOKEN=<YOUR_APIFY_TOKEN> npx -y @apify/actors-mcp-server --actors plainkitbin/rubygems-packages
Hosted (Streamable HTTP): connect to https://mcp.apify.com?tools=plainkitbin/rubygems-packages using OAuth or the header Authorization: Bearer <YOUR_APIFY_TOKEN>.
Example MCP client configuration (mcpServers):
{"mcpServers": {"rubygems-packages": {"command": "npx","args": ["-y","@apify/actors-mcp-server","--actors","plainkitbin/rubygems-packages"],"env": {"APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"}}}}
Example JSON tool call matching .actor/input_schema.json:
{"search": "rails","max_items": 5}
Catalog and registry: browse all Actors at PlainKitBin or discover the multi-Actor server com.plainkitbin/public-data-actors in the MCP Registry.