APIs / RubyGems / Gem

RubyGems: Gem

One Ruby gem: latest version, downloads, licences, links, runtime and development dependencies, and up to 50 recent versions.

GET /v1/rubygems/gem

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
namestringRequiredUp to 100 characters
Gem name, for example rails.

Example request

RubyGems
GET/v1/rubygems/gem?name=rails
{
  "success": true,
  "data": {
    "name": "rails",
    "version": "8.1.4.1",
    "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.",
    "authors": "David Heinemeier Hansson",
    "licenses": [
      "MIT"
    ],
    "downloads": 827540814,
    "version_downloads": 6971151,
    "homepage_uri": "https://rubyonrails.org",
    "source_code_uri": "https://github.com/rails/rails/tree/v8.1.4.1",
    "documentation_uri": "https://api.rubyonrails.org/v8.1.4.1/",
    "url": "https://rubygems.org/gems/rails",
    "latest_version": "8.1.4.1",
    "latest_version_created_at": "2026-11-04T02:47:52.512Z",
    "platform": "ruby",
    "sha256": "365c3a0ad2713bd6e60628e5e826622d4ca8dee60b5a7e560e9b20844e9650bc",
    "changelog_uri": "https://github.com/rails/rails/releases/tag/v8.1.4.1",
    "bug_tracker_uri": "https://github.com/rails/rails/issues",
    "mfa_required": true,
    "dependencies": {
      "runtime": [
        {
          "name": "actioncable",
          "requirements": "= 8.1.4.1"
        },
        {
          "name": "actionmailbox",
          "requirements": "= 8.1.4.1"
        },
        {
          "name": "actionmailer",
          "requirements": "= 8.1.4.1"
        }
      ]
    },
    "version_count": 523,
    "versions": [
      {
        "version": "8.1.4.1",
        "created_at": "2026-11-04T02:47:52.512Z",
        "downloads": 6971867,
        "prerelease": false,
        "platform": "ruby",
        "ruby_version": ">= 3.2.0",
        "licenses": [
          "MIT"
        ],
        "summary": "Full-stack web application framework."
      },
      {
        "version": "8.1.4",
        "created_at": "2026-09-24T14:22:14.180Z",
        "downloads": 5053271,
        "prerelease": false,
        "platform": "ruby",
        "ruby_version": ">= 3.2.0",
        "licenses": [
          "MIT"
        ],
        "summary": "Full-stack web application framework."
      },
      {
        "version": "8.1.3.1",
        "created_at": "2026-07-29T15:02:41.060Z",
        "downloads": 15953528,
        "prerelease": false,
        "platform": "ruby",
        "ruby_version": ">= 3.2.0",
        "licenses": [
          "MIT"
        ],
        "summary": "Full-stack web application framework."
      }
    ]
  },
  "meta": {
    "request_id": "req_8408ad30fc04408c9727f7f7fca6e5fb",
    "credits_charged": 1,
    "credits_remaining": 486
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.

Response fields

data has these 21 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
namestring
versionstring
infostring
authorsstring
licensesstring[]
downloadsinteger
version_downloadsinteger
homepage_uriurl
source_code_uriurl
documentation_uriurl
urlurl
latest_versionstring
latest_version_created_atstring
platformstring
sha256string
changelog_uriurl
bug_tracker_uriurl
mfa_requiredboolean
dependenciesobject
version_countinteger
versionsobject[]