# RubyGems API: Get a Ruby gem's details

> Looks up a Ruby gem on RubyGems by name or gem page link and returns its latest version, release date, description, downloads, authors, license, links and runtime dependencies.

Unofficial. Not affiliated with or endorsed by RubyGems.

- Page: https://fous.com/methods/rubygems.org/get-gem
- Method: `rubygems.org/get_gem`, version 1
- Website: rubygems.org
- Returns: name, latest version, release date, description, downloads, authors, license, links, runtime dependencies
- Effect: read (it gets data and changes nothing)
- Sign-in: none needed
- Cost: 1 credit per completed run (1¢ with pay as you go); failed runs are free
- Verified: Nov 2, 2026

## Inputs

| Field | Type | Required | In the run below | Description |
|---|---|---|---|---|
| `gem` | string | yes | `"rails"` | Gem name or RubyGems gem page link, such as rails or https://rubygems.org/gems/rails. |

## Output

From a run on Oct 23, 2026, shortened. Its input:

```json
{
  "gem": "rails"
}
```

Its output:

```json
{
  "name": "rails",
  "authors": [
    "David Heinemeier Hansson"
  ],
  "license": "MIT",
  "description": "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.",
  "release_date": "2026-09-24",
  "homepage_link": "https://rubyonrails.org",
  "rubygems_link": "https://rubygems.org/gems/rails",
  "latest_version": "8.1.4",
  "total_downloads": 805383766,
  "source_code_link": "https://github.com/rails/rails/tree/v8.1.4",
  "runtime_dependencies": [
    {
      "name": "actioncable",
      "version_requirement": "= 8.1.4"
    },
    {
      "name": "actionmailbox",
      "version_requirement": "= 8.1.4"
    },
    {
      "name": "actionmailer",
      "version_requirement": "= 8.1.4"
    }
  ],
  "latest_version_downloads": 2547555
}
```

## Run it

From code, with a Fous API key in `FOUS_API_KEY`; the answer's `data` holds the output:

```bash
curl https://api.fous.com/v1/runs \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"method":"rubygems.org/get_gem","input":{"gem":"rails"}}'
```

From an AI agent connected to the Fous MCP server: its `run` with the same method and input. To connect one, give it `set up https://fous.com/SKILL.md`.

## Ask your agent

- What's the latest version of the rails gem and when was it released?
- Show me the license, authors and runtime dependencies for nokogiri
- Look up the devise gem on RubyGems and give me its description and download count
- I need details on the sidekiq gem, including its links and dependencies
- Check the https://rubygems.org/gems/puma page and tell me its latest version and total downloads

## Input schema

```json
{
  "type": "object",
  "required": [
    "gem"
  ],
  "properties": {
    "gem": {
      "type": "string",
      "description": "Gem name or RubyGems gem page link, such as rails or https://rubygems.org/gems/rails."
    }
  }
}
```

## Output schema

```json
{
  "type": "object",
  "required": [
    "name",
    "latest_version",
    "release_date",
    "description",
    "total_downloads",
    "latest_version_downloads",
    "authors",
    "license",
    "homepage_link",
    "source_code_link",
    "runtime_dependencies",
    "rubygems_link"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Gem name."
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Gem authors."
    },
    "license": {
      "type": [
        "string",
        "null"
      ],
      "description": "Declared license or licenses."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Gem summary."
    },
    "release_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "Release date of the latest version, YYYY-MM-DD."
    },
    "homepage_link": {
      "type": [
        "string",
        "null"
      ],
      "description": "Project homepage link."
    },
    "rubygems_link": {
      "type": "string",
      "description": "RubyGems gem page link."
    },
    "latest_version": {
      "type": "string",
      "description": "Latest version."
    },
    "total_downloads": {
      "type": "integer",
      "description": "Downloads across all versions."
    },
    "source_code_link": {
      "type": [
        "string",
        "null"
      ],
      "description": "Source code link."
    },
    "runtime_dependencies": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "version_requirement"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "version_requirement": {
            "type": "string"
          }
        }
      },
      "description": "Runtime dependencies and version requirements."
    },
    "latest_version_downloads": {
      "type": "integer",
      "description": "Downloads for the latest version."
    }
  }
}
```

## See more

- [WordPress.org API: Get WordPress plugin details](https://fous.com/methods/wordpress.org/get-plugin.md): Finds the best-matching WordPress.org plugin by name or plugin page link and returns its details, including the changelog for the latest version when one is available.
- [npm API: Get package](https://fous.com/methods/npmjs.com/get-package.md): Looks up a public npm package by name or npm link. Returns its latest version, weekly downloads, maintainers, links, dates and version count.
- [PyPI API: Get package](https://fous.com/methods/pypi.org/get-package.md): Gets a PyPI package's current version, release date, metadata, project links and its 10 most recently published versions from a package name or PyPI link.
- [NuGet API: Get package](https://fous.com/methods/nuget.org/get-package.md): Looks up a NuGet package by name or nuget.org link. Inexact names match the top search result. Returns the latest stable release's details and the 10 most recent versions, including prereleases.
- [crates.io API: Get crate details](https://fous.com/methods/crates.io/get-crate.md): Looks up a Rust crate by name or crates.io link and returns its latest version, downloads, links, dates, license and 10 most recent releases.
- [Docker API: Get container image details](https://fous.com/methods/hub.docker.com/get-container-image.md): Gets public Docker Hub image details and the newest tags from an image name or Docker Hub page link. Signature and metadata artifact tags are omitted; size is the reported compressed tag size.
- [Goodreads API: Get book](https://fous.com/methods/goodreads.com/get-book.md): Gets one Goodreads book's details, reader ratings and edition information. The book can be a title, an ISBN or a book link; a title uses the best search match.
- [Discogs API: Get release](https://fous.com/methods/discogs.com/get-release.md): Finds a Discogs release by title, artist or release link and returns its edition details, tracks, community counts, current price and sold price statistics.
