{"name":"RubyGems Gem Search API","description":"Ruby gems matching a search on RubyGems.org, with version, summary, total downloads, license, authors and links.","api_id":"generated_b448cdefdbf826fea8b06011","slug":"rubygems-gem-search-api","source":{"name":"RubyGems","domain":"rubygems.org","url":"https://rubygems.org/"},"category":"public_data","countries":[],"languages":["en"],"record_types":[],"tags":[],"limitations":[],"updated":"2026-12-01","note":"Sample records are saved samples, not a live run. CleanedWeb is not affiliated with the source.","version":"4.0","versions":[{"major":4,"latest_minor":"4.0","status":"current","sunset_at":null},{"major":3,"latest_minor":"3.1","status":"deprecated","sunset_at":"2027-01-30T10:57:35.000Z"},{"major":1,"latest_minor":"1.0","status":"deprecated","sunset_at":"2027-01-25T13:39:19.000Z"}],"changelog":[{"version":"4.0","date":"2026-12-01T10:57:35.000Z","kind":"major","changes":[{"code":"record_layout_changed","name":"","summary":"Records 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."},{"code":"field_moved","name":"downloads.total","summary":"Field `total_downloads` is now `downloads.total`."},{"code":"field_moved","name":"downloads.detail_total","summary":"Field `detail_total_downloads` is now `downloads.detail_total`."},{"code":"field_moved","name":"downloads.for_this_version","summary":"Field `for_this_version` is now `downloads.for_this_version`."},{"code":"field_moved","name":"requirements.ruby_version","summary":"Field `required_ruby_version` is now `requirements.ruby_version`."},{"code":"field_moved","name":"requirements.rubygems_version","summary":"Field `required_rubygems_version` is now `requirements.rubygems_version`."},{"code":"field_moved","name":"mfa.new_versions_require_mfa","summary":"Field `new_versions_require_mfa` is now `mfa.new_versions_require_mfa`."},{"code":"field_moved","name":"mfa.version_published","summary":"Field `version_published_with_mfa` is now `mfa.version_published`."},{"code":"field_moved","name":"links.homepage","summary":"Field `homepage_url` is now `links.homepage`."},{"code":"field_moved","name":"links.documentation","summary":"Field `documentation_url` is now `links.documentation`."},{"code":"field_moved","name":"links.report_abuse_email","summary":"Field `report_abuse_email` is now `links.report_abuse_email`."},{"code":"field_moved","name":"links.versions","summary":"Field `versions_url` is now `links.versions`."},{"code":"field_moved","name":"links.previous_version","summary":"Field `previous_version_url` is now `links.previous_version`."},{"code":"field_moved","name":"links.rss","summary":"Field `rss_url` is now `links.rss`."},{"code":"field_moved","name":"links.reverse_dependencies","summary":"Field `reverse_dependencies_url` is now `links.reverse_dependencies`."},{"code":"field_removed","name":"latest_version_release_date","summary":"Field `latest_version_release_date` is no longer shown by the source; it stays and is `null`."}]},{"version":"3.1","date":"2026-12-01T04:16:52.000Z","kind":"minor","changes":[{"code":"field_removed","name":"latest_version_release_date","summary":"Field `latest_version_release_date` is no longer shown by the source; it stays and is `null`."}]},{"version":"3.0","date":"2026-11-26T13:39:19.000Z","kind":"major","changes":[{"code":"field_added","name":"version","summary":"Field `version` added."},{"code":"field_added","name":"authors","summary":"Field `authors` added."},{"code":"field_added","name":"detail_total_downloads","summary":"Field `detail_total_downloads` added."},{"code":"field_added","name":"for_this_version","summary":"Field `for_this_version` added."},{"code":"field_added","name":"required_ruby_version","summary":"Field `required_ruby_version` added."},{"code":"field_added","name":"required_rubygems_version","summary":"Field `required_rubygems_version` added."},{"code":"field_added","name":"new_versions_require_mfa","summary":"Field `new_versions_require_mfa` added."},{"code":"field_added","name":"version_published_with_mfa","summary":"Field `version_published_with_mfa` added."},{"code":"field_added","name":"license","summary":"Field `license` added."},{"code":"field_added","name":"homepage_url","summary":"Field `homepage_url` added."},{"code":"field_added","name":"documentation_url","summary":"Field `documentation_url` added."},{"code":"field_added","name":"report_abuse_email","summary":"Field `report_abuse_email` added."},{"code":"field_added","name":"versions_url","summary":"Field `versions_url` added."},{"code":"field_added","name":"previous_version_url","summary":"Field `previous_version_url` added."},{"code":"field_added","name":"rss_url","summary":"Field `rss_url` added."},{"code":"field_added","name":"reverse_dependencies_url","summary":"Field `reverse_dependencies_url` added."},{"code":"field_added","name":"pushed_by","summary":"Field `pushed_by` added."},{"code":"field_added","name":"latest_version_release_date","summary":"Field `latest_version_release_date` added."},{"code":"field_added","name":"other_details","summary":"Field `other_details` added."},{"code":"input_added","name":"enrich_records","summary":"Optional input `enrich_records` added."},{"code":"input_required_added","name":"search","summary":"Input `search` is now required; calls that omit it use `rails`."},{"code":"option_removed","name":"sort","summary":"Option `relevance` removed from input `sort`."}]},{"version":"1.0","date":"2026-11-06T16:12:14.000Z","kind":"major","changes":[]}],"version_note":"Pin a major with \"version\": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.","endpoints":[{"endpoint_id":"generated_b448cdefdbf826fea8b06011_search","name":"Extract records","description":"Return records within the accepted scope.","definition_version":"3700e7e1f91115b4f9cd3aeb36fc268f847d9f299fc7b0878b617fc9a39d1aac","method":"POST","path":"/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/run","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/run","authentication":{"type":"bearer","scheme":"Authorization: Bearer <API key>","scope":"run","note":"Reading this file and the live catalog needs no credential. A run needs a CleanedWeb account and uses the credits of its workspace.","docs":"https://cleanedweb.com/docs/run-catalog-api/"},"required_headers":[{"name":"Authorization","value":"Bearer YOUR_API_KEY","description":"An API key with the run scope."},{"name":"Idempotency-Key","value":"UNIQUE_REQUEST_ID","description":"Required. Save it before you send; reuse it only to retry the same request and to read the result. 1-200 characters: letters, numbers, . _ : -"},{"name":"Content-Type","value":"application/json","description":"The body is JSON."}],"request_body":{"input":"An object that follows input_schema.","max_items":"Optional. Stop after this many records.","timeout_seconds":"Optional, 60-86400, default 10800.","wait_seconds":"Optional, 0-86400, default 90. How long the request waits before answering 202.","version":"Optional integer major. Leave it out for the latest major."},"input_schema":{"type":"object","properties":{"enrich_records":{"type":"boolean","default":true,"description":"true: read each returned record's product/detail page and merge its fields into the record. false: return list/search-level fields only, with no detail page reads. Every returned record's detail page is read within the run's time budget; records the time budget leaves unread are returned without detail fields, and summary.record_enrichment reports how many records were enriched and why any were not (run_time_budget). Detail fields are optional."},"search":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\x00-\\x1f\\x7f]+$","description":"Required. Text sent to the site's own search form; its result pages are read and revalidated like the collection."},{"type":"array","minItems":1,"items":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[^\\x00-\\x1f\\x7f]+$","description":"Required. Text sent to the site's own search form; its result pages are read and revalidated like the collection."}}],"description":"Required. Text sent to the site's own search form; its result pages are read and revalidated like the collection. Supply an array to union distinct results from each source search, in query order.","default":"rails","x-source-key":"query"},"sort":{"x-input-proof":{"evidence":"observed","key":"sort","kind":"sort_choices","read":"listing","rule":"request_structure_v1","value":"recent","where":"query"},"type":"string","enum":["recent","downloads","name"],"x-enum-labels":{"recent":"Most recently published","downloads":"Number of downloads","name":"Alphabetical"},"x-source-keys":["sort"],"x-value-status":"verified","x-combination":"unproven","description":"Order of the collection, as the site's own sort control offers it; omitted keeps the site's default order.","x-combinable-with":["search"]}},"required":["search"],"additionalProperties":false},"output_schema":{"type":"object","additionalProperties":false,"properties":{"description":{"type":"string"},"title":{"type":"string"},"downloads":{"type":"object","properties":{"total":{"type":"integer"},"detail_total":{"type":"string","description":"Total downloads"},"for_this_version":{"type":"string","description":"For this version"}},"additionalProperties":false},"url":{"type":"string","format":"uri"},"version":{"type":"string"},"authors":{"type":"string","description":"Authors"},"requirements":{"type":"object","properties":{"ruby_version":{"type":"string","description":"Required Ruby Version"},"rubygems_version":{"type":"string","description":"Required Rubygems Version"}},"additionalProperties":false},"mfa":{"type":"object","properties":{"new_versions_require_mfa":{"type":"string","description":"New versions require MFA"},"version_published":{"type":"string","description":"Version published with MFA"}},"additionalProperties":false},"license":{"type":"string","description":"License"},"links":{"type":"object","properties":{"homepage":{"type":"string","description":"homepage url"},"documentation":{"type":"string","description":"documentation url"},"versions":{"type":"string","description":"versions url"},"previous_version":{"type":"string","description":"previous version url"},"rss":{"type":"string","description":"rss url"},"reverse_dependencies":{"type":"string","description":"reverse dependencies url"}},"additionalProperties":true},"pushed_by":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["image_url","name","url"],"properties":{"image_url":{"type":["string","null"]},"name":{"type":"string"},"url":{"type":"string"}}},"description":"Pushed by"},"other_details":{"type":"object","additionalProperties":{"type":"object","additionalProperties":{"type":["string","boolean"]}}}},"required":["title","url"]},"output_schema_note":"Some fields the source returns are not published here (identifiers, personal details and page-building noise). A record can carry fields this schema does not list, so additionalProperties is true. Do not reject a record for an extra field. The live contract, linked as live_contract, lists every field the saved definition declares.","examples":[{"kind":"saved_validation_records","saved_at":"2026-12-01T10:57:35.426Z","live_verified":false,"request":{"input":{}},"records_shown":2,"records_saved":2,"records":[{"title":"rails","version":"8.1.4.1","description":"Full-stack web application framework.","license":"MIT","url":"https://rubygems.org/gems/rails","downloads":{"detail_total":"824,549,908","for_this_version":"5,611,617","total":824539277},"links":{"documentation":"https://api.rubyonrails.org/v8.1.4.1/","homepage":"https://rubyonrails.org","previous_version":"https://rubygems.org/gems/rails/versions/8.1.4","reverse_dependencies":"https://rubygems.org/gems/rails/reverse_dependencies","rss":"https://rubygems.org/gems/rails/versions.atom","versions":"https://rubygems.org/gems/rails/versions"},"mfa":{"new_versions_require_mfa":"true","version_published":"true"},"requirements":{"ruby_version":">= 3.2.0","rubygems_version":">= 1.8.11"},"authors":"David Heinemeier Hansson"},{"title":"rails-pg-extras","version":"5.7.0","description":"Rails PostgreSQL performance database insights","license":"MIT","url":"https://rubygems.org/gems/rails-pg-extras","downloads":{"detail_total":"4,981,452","for_this_version":"391,542","total":4981390},"links":{"documentation":"https://www.rubydoc.info/gems/rails-pg-extras/5.7.0","homepage":"http://github.com/pawurb/rails-pg-extras","previous_version":"https://rubygems.org/gems/rails-pg-extras/versions/5.6.18","reverse_dependencies":"https://rubygems.org/gems/rails-pg-extras/reverse_dependencies","rss":"https://rubygems.org/gems/rails-pg-extras/versions.atom","versions":"https://rubygems.org/gems/rails-pg-extras/versions"},"mfa":{"new_versions_require_mfa":"true","version_published":"true"},"requirements":{"ruby_version":">= 0"},"authors":"pawurb"}]}],"request_example":{"body":{"input":{"search":"rails"},"version":4,"max_items":25},"curl":"curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/run \\\n  -H \"Authorization: Bearer YOUR_API_KEY\" \\\n  -H \"Idempotency-Key: UNIQUE_REQUEST_ID\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n  \"input\": {\n    \"search\": \"rails\"\n  },\n  \"version\": 4,\n  \"max_items\": 25\n}'"},"result":{"method":"GET","url":"https://api.cleanedweb.com/v1/catalog/public/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/result","note":"A run that does not end within wait_seconds answers 202. Read the result with the same API key and the same Idempotency-Key."},"links":{"page":"https://cleanedweb.com/catalog/rubygems-gem-search-api/","markdown":"https://cleanedweb.com/catalog/rubygems-gem-search-api/index.md","live_contract":"https://app.cleanedweb.com/api/catalog/apis/generated_b448cdefdbf826fea8b06011/endpoints/generated_b448cdefdbf826fea8b06011_search/contract","run_docs":"https://cleanedweb.com/docs/run-catalog-api/"}}],"links":{"page":"https://cleanedweb.com/catalog/rubygems-gem-search-api/","markdown":"https://cleanedweb.com/catalog/rubygems-gem-search-api/index.md","contract":"https://cleanedweb.com/catalog/rubygems-gem-search-api/contract.json","catalog":"https://cleanedweb.com/catalog/","index":"https://cleanedweb.com/catalog/index.json","openapi":"https://cleanedweb.com/catalog/openapi.json"}}
