About this API
RubyGems.org is the public registry of Ruby libraries. One record is one gem found by a search.
What you get
Each record has the gem name, version, summary, total downloads, downloads for this version, license, authors, required Ruby version and links to the homepage and documentation.
What you can filter
Enter a search word, such as rails, and choose the order with sort. max_items limits how many records a run returns.
What it is good for
- Compare gems by downloads
- Check licenses of gems you use
- Follow new versions of a gem
- Output fields
- 21
- Inputs
- 2
Sample package record
Saved sample, not a live run.
title- rails
version- 8.1.4.1
description- Full-stack web application framework.
license- MIT
downloads.total- 824786127
downloads.detail_total- 824,786,127
downloads.for_this_version- 5,711,529
authors- David Heinemeier Hansson
requirements.ruby_version- >= 3.2.0
All 21 fields
requirements.rubygems_version- >= 1.8.11
mfa.new_versions_require_mfa- true
mfa.version_published- true
links.homepage- rubyonrails.org
links.documentation- api.rubyonrails.org/v8.1.4.1/
links.versions- rubygems.org/gems/rails/versions
links.previous_version- rubygems.org/gems/rails/versions/8.1.4
links.rss- rubygems.org/gems/rails/versions.atom
links.reverse_dependencies- rubygems.org/gems/rails/reverse_dependenc…
pushed_by- { image_url, name, url }
other_details- —
Try it
Records
Saved sample, not a live run.
Scroll sideways to see more columns.
Output fields
| Field | Description | Example | Type | Returned |
|---|---|---|---|---|
title |
— | rails | string | Required |
version |
— | 8.1.4.1 | string | Optional |
description |
— | Full-stack web application framework. | string | Optional |
license |
License | MIT | string | Optional |
url |
Link | rubygems.org/gems/rails | string | Required |
downloads.total |
— | 824786127 | integer | Optional |
downloads.detail_ |
Total downloads | 824,786,127 | string | Optional |
downloads.for_ |
For this version | 5,711,529 | string | Optional |
authors |
Authors | David Heinemeier Hansson | string | Optional |
requirements.ruby_ |
Required Ruby Version | >= 3.2.0 | string | Optional |
requirements.rubygems_ |
Required Rubygems Version | >= 1.8.11 | string | Optional |
mfa.new_ |
New versions require MFA | true | string | Optional |
mfa.version_ |
Version published with MFA | true | string | Optional |
links.homepage |
homepage url | rubyonrails.org | string | Optional |
links.documentation |
documentation url | api.rubyonrails.org/v8.1.4.1/ | string | Optional |
links.versions |
versions url | rubygems.org/gems/rails/versions | string | Optional |
links.previous_ |
previous version url | rubygems.org/gems/rails/versions/8.1.4 | string | Optional |
links.rss |
rss url | rubygems.org/gems/rails/versions.atom | string | Optional |
links.reverse_ |
reverse dependencies url | rubygems.org/gems/rails/reverse_dependenc… | string | Optional |
pushed_ |
Pushed by | { image_url, name, url } | array of object | Optional |
other_ |
— | — | object | Optional |
Inputs
-
searchstring | array of string · requiredRequired. Supply an array to union distinct results from each source search, in query order. Default: rails.
-
sortchoiceOrder of the collection, as the site's own sort control offers it; omitted keeps the site's default order.
enrich_records is on by default and adds the fields that only appear on each record's detail page. Send false to read list fields only. See Run an API.
Request
POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/run
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: UNIQUE_REQUEST_ID" \
-H "Content-Type: application/json" \
-d '{
"input": {
"search": "rails"
},
"version": 4,
"max_items": 25
}'
Save the Idempotency-Key before you send, and reuse it only to retry the same request. The key needs the run scope. See Run a catalog API.
version pins major v4, whose newest minor (4.0) answers. Leave it out and the call runs on the latest major.
v3 is deprecated. It answers until Jan 30, 2027. After that, calls pinned to v3 run on v4. Move to v4, the current version.
v1 is deprecated. It answers until Jan 25, 2027. After that, calls pinned to v1 run on v4. Move to v4, the current version.
Use it from an AI agent
Open in your coding agent
Add CleanedWeb to your agent as an MCP server, such as a custom connector in Claude or ChatGPT, then sign in with your CleanedWeb account. An API key with the read and run scopes works too.
https://api.cleanedweb.com/mcp?profile=catalog
Then ask, for example: Use CleanedWeb to get 25 records from the RubyGems Gem Search API.
The agent finds the API, runs it and reads the records. Runs are charged like any other run.
Coverage
- Version
- v4 4.0
- Category
- Public data
- Languages
- English
- Updated
A run stops when the source has no more records, or when it reaches a limit you set: the number of records, the time, or your budget.
CleanedWeb is not affiliated with RubyGems.
Changelog
-
v4.0 (major) ·
record_layout_changedRecords are now grouped: related fields sit under shared keys, so 14 field(s) have new paths (each listed below). Callers pinned to the previous major keep the previous shape until its sunset.field_movedFieldtotal_downloadsis nowdownloads.total.field_movedFielddetail_total_downloadsis nowdownloads.detail_total.field_movedFieldfor_this_versionis nowdownloads.for_this_version.field_movedFieldrequired_ruby_versionis nowrequirements.ruby_version.field_movedFieldrequired_rubygems_versionis nowrequirements.rubygems_version.field_movedFieldnew_versions_require_mfais nowmfa.new_versions_require_mfa.field_movedFieldversion_published_with_mfais nowmfa.version_published.field_movedFieldhomepage_urlis nowlinks.homepage.field_movedFielddocumentation_urlis nowlinks.documentation.field_movedFieldreport_abuse_emailis nowlinks.report_abuse_email.field_movedFieldversions_urlis nowlinks.versions.field_movedFieldprevious_version_urlis nowlinks.previous_version.field_movedFieldrss_urlis nowlinks.rss.field_movedFieldreverse_dependencies_urlis nowlinks.reverse_dependencies.field_removedFieldlatest_version_release_dateis no longer shown by the source; it stays and isnull.
-
v3.1 ·
field_removedFieldlatest_version_release_dateis no longer shown by the source; it stays and isnull.
-
v3.0 (major) ·
field_addedFieldversionadded.field_addedFieldauthorsadded.field_addedFielddetail_total_downloadsadded.field_addedFieldfor_this_versionadded.field_addedFieldrequired_ruby_versionadded.field_addedFieldrequired_rubygems_versionadded.field_addedFieldnew_versions_require_mfaadded.field_addedFieldversion_published_with_mfaadded.field_addedFieldlicenseadded.field_addedFieldhomepage_urladded.field_addedFielddocumentation_urladded.field_addedFieldreport_abuse_emailadded.field_addedFieldversions_urladded.field_addedFieldprevious_version_urladded.field_addedFieldrss_urladded.field_addedFieldreverse_dependencies_urladded.field_addedFieldpushed_byadded.field_addedFieldlatest_version_release_dateadded.field_addedFieldother_detailsadded.input_addedOptional inputenrich_recordsadded.input_required_addedInputsearchis now required; calls that omit it userails.option_removedOptionrelevanceremoved from inputsort.
-
v1.0 (major) ·