RubyGems versions API

Use the RubyGems versions API to retrieve published package or extension versions and release metadata. Provide resource name (name); refine the result with prerelease inclusion flag (prerelease), source platform (platform). Version entries retain the release number and any date, platform or prerelease details supplied by that ecosystem, so a historical release can be selected before its own package metadata is retrieved. Compare published release numbers and dates, identify prereleases where provided and choose a version for a compatibility review. The detail page provides the supported parameters, request examples, available response examples and usage pricing for this operation.

Selected price
$0.002 / billing creditPublished pricing
Sellers / implementations
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Gem name (rails), a `gem install` / Gemfile line or a rubygems.org link.
Optional parameters (9)
true for prereleases only, false for releases only.
Only this platform, e.g. ruby or java.
Page number (default 1). Pass `next_page` back as `page`; null on the last page.
Versions per page, 1-500 (default 50).
0 leaves out the bulky `raw` source blocks (often 10-30x smaller).
Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included.
1 skips the 24-hour cache and fetches live.
JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.
Native CSV/NDJSON record selector; it has no effect on this JSON-only product.

Sample response

{
  "cached": false,
  "count": 50,
  "credits_used": 1,
  "name": "rails",
  "next_page": 2,
  "page": 1,
  "total": 523,
  "versions": [
    {
      "authors": "David Heinemeier Hansson",
      "built_at": "1980-01-02T00:00:00.000Z",
      "created_at": "2026-11-04T02:47:52.512Z",
      "downloads": 421334,
      "licenses": [
        "MIT"
      ],
      "metadata": {
        "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/",
        "mailing_list_uri": "https://discuss.rubyonrails.org/c/rubyonrails-talk",
        "rubygems_mfa_required": "true",
        "source_code_uri": "https://github.com/rails/rails/tree/v8.1.4.1"
      },
      "platform": "ruby",
      "prerelease": false,
      "ruby_version": ">= 3.2.0",
      "rubygems_version": ">= 1.8.11",
      "sha256": "365c3a0ad2713bd6e60628e5e826622d4ca8dee60b5a7e560e9b20844e9650bc",
      "summary": "Full-stack web application framework.",
      "version": "8.1.4.1"
    },
    {
      "authors": "David Heinemeier Hansson",
      "built_at": "1980-01-02T00:00:00.000Z",
      "created_at": "2026-09-24T14:22:14.180Z",
      "downloads": 4374198,
      "licenses": [
        "MIT"
      ],
      "metadata": {
        "bug_tracker_uri": "https://github.com/rails/rails/issues",
        "changelog_uri": "https://github.com/rails/rails/releases/tag/v8.1.4",
        "documentation_uri": "https://api.rubyonrails.org/v8.1.4/",
        "mailing_list_uri": "https://discuss.rubyonrails.org/c/rubyonrails-talk",
        "rubygems_mfa_required": "true",
        "source_code_uri": "https://github.com/rails/rails/tree/v8.1.4"
      },
      "platform": "ruby",
      "prerelease": false,
      "ruby_version": ">= 3.2.0",
      "rubygems_version": ">= 1.8.11",
      "sha256": "5f3ecdf9a2a3b79b2e31b8fee3b64a00f7284d76e5631f87d0e58e665911a33b",
      "summary": "Full-stack web application framework.",
      "version": "8.1.4"
    },
    "… 48 more"
  ]
}

Response result

Response structure

Inferred from examples
  • cachedboolean
  • countinteger
  • credits_usedinteger
  • namestring
  • next_pageinteger
  • pageinteger
  • totalinteger
  • versions(object | string)[]
    • authorsstring
    • built_atstring
    • created_atstring
    • downloadsinteger
    • licensesstring[]
    • metadataobject
      • bug_tracker_uristring
      • changelog_uristring
      • documentation_uristring
      • mailing_list_uristring
      • rubygems_mfa_requiredstring
      • source_code_uristring
    • platformstring
    • prereleaseboolean
    • ruby_versionstring
    • rubygems_versionstring
    • sha256string
    • summarystring
    • versionstring

Loading related APIs…

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use RubyGems versions API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.