Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

RubyGems Versions API

Endpoints for querying detailed version information for specific gem versions, including metadata, dependencies, checksums, and platform-specific builds.

RubyGems Versions API is one of 9 APIs that RubyGems publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Versions. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 4 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 1.0.

Requests are made against a single base URL, https://rubygems.org/api/v1.

4 operations 4 paths 4 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
1.0
Base URL
https://rubygems.org/api/v1
Terms of Service
Resource Areas
1

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Versions 4

Endpoints for querying detailed version information for specific gem versions, including metadata, dependencies, checksums, and platform-specific builds.

GET
/rubygems/{gemName}/versions/{versionNumber}.json
Get Gem Version Details
getGemVersionDetails 3 params → 200404
GET
/versions/{gemName}.json
List Gem Versions
getGemVersions 1 param → 200404
GET
/versions/{gemName}/latest.json
Get Latest Gem Version
getLatestGemVersion 1 param → 200404
GET
/timeframe_versions.json
Get Versions Within A Timeframe
getTimeframeVersions 3 params → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are GemVersionDetail (34 properties), GemVersion (15 properties), Dependency (2 properties), Error (1 property). Each schema is shown below with its type and property counts.

GemVersionDetail
object
Detailed information about a specific gem version
34 properties
Dependency
object
A gem dependency
2 properties
GemVersion
object
A specific version of a Ruby gem
15 properties
Error
object
Error response from the RubyGems.org API
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

rubygems-versions-api-openapi.yml Raw ↑

Other APIs RubyGems publishes across the network.

RubyGems Gems API
RubyGems Downloads API
RubyGems Search API
RubyGems Activity API
RubyGems Webhooks API
RubyGems Dependencies API
RubyGems Owners API
RubyGems Profiles API