RubyGems API
Returns Ruby gem details, search results, versions, reverse dependencies, owners and the most recently published gems.
View as Markdown| GET | /rubygems/gem | Latest version, description, licence, downloads and runtime dependencies of one gem. |
| GET | /rubygems/search | Gems that match a search, 30 per page, as RubyGems ranks them. |
| GET | /rubygems/versions | Every published version of one gem, newest first, 30 per page, with its licences, Ruby requirement and downloads. |
| GET | /rubygems/reverseDependencies | Names of the gems that depend on one gem, 50 per page, as RubyGems lists them. |
| GET | /rubygems/owners | The accounts that own one gem and may publish new versions of it. |
| GET | /rubygems/latestGems | The 50 gems whose newest version was published most recently on RubyGems. |
| GET | /rubygems/downloads | The number of gem downloads RubyGems has served in total. |
| GET | /rubygems/version | One published version of a gem with its runtime dependencies, Ruby requirement, checksum, download count and gem file link. |
gem
/v1/rubygems/gemLatest version, description, licence, downloads and runtime dependencies of one gem.
Parameters
namestring required | Gem name, or rubygems.org gem URL. e.g. rails |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
authors | string |
dependencies | Dependency[] |
name | string |
requirements | string |
description | string |
downloads | integer (int64) |
homepage | string |
licenses | License[] |
name | string |
name | string |
sourceCode | string |
url | string |
version | string |
versionCreatedAt | string |
versionDownloads | integer (int64) |
curl "https://api.hoshime.com/v1/rubygems/gem?name=rails" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/gem?name=rails", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/gem?name=rails", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "authors": "David Heinemeier Hansson", "dependencies": [ { "name": "actioncable", "requirements": "= 8.1.4.1" }, { "name": "actionmailbox", "requirements": "= 8.1.4.1" } ], "description": "Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by…", "downloads": 812921988, "homepage": "https://rubyonrails.org", "licenses": [ { "name": "MIT" } ], "name": "rails", "sourceCode": "https://github.com/rails/rails/tree/v8.1.4.1", "url": "https://rubygems.org/gems/rails", "version": "8.1.4.1", "versionCreatedAt": "2026-11-04T02:47:52.512Z", "versionDownloads": 500413 }, "meta": { "cached": false, "endpoint": "gem", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/rubygems/searchGems that match a search, 30 per page, as RubyGems ranks them.
Parameters
querystring required | Search terms. e.g. rails |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
authors | string |
description | string |
downloads | integer (int64) |
name | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/rubygems/search?query=rails" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/search?query=rails", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/search?query=rails", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authors": "David Heinemeier Hansson", "description": "Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by…", "downloads": 812928612, "name": "rails", "url": "https://rubygems.org/gems/rails", "version": "8.1.4.1" }, { "authors": "Rails I18n Group", "description": "A set of common locale data and translations to internationalize and/or localize your Rails applications.", "downloads": 146351143, "name": "rails-i18n", "url": "https://rubygems.org/gems/rails-i18n", "version": "8.1.0" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
versions
/v1/rubygems/versionsEvery published version of one gem, newest first, 30 per page, with its licences, Ruby requirement and downloads.
Parameters
namestring required | Gem name, or rubygems.org gem URL. e.g. rails |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
createdAt | string |
downloads | integer (int64) |
licenses | License[] |
name | string |
number | string |
platform | string |
prerelease | boolean |
rubyVersion | string |
sha256 | string |
curl "https://api.hoshime.com/v1/rubygems/versions?name=rails" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/versions?name=rails", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/versions?name=rails", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "createdAt": "2026-11-04T02:47:52.512Z", "downloads": 502860, "licenses": [ { "name": "MIT" } ], "number": "8.1.4.1", "platform": "ruby", "prerelease": false, "rubyVersion": ">= 3.2.0", "sha256": "365c3a0ad2713bd6e60628e5e826622d4ca8dee60b5a7e560e9b20844e9650bc" }, { "createdAt": "2026-09-24T14:22:14.180Z", "downloads": 4400482, "licenses": [ { "name": "MIT" } ], "number": "8.1.4", "platform": "ruby", "prerelease": false, "rubyVersion": ">= 3.2.0", "sha256": "5f3ecdf9a2a3b79b2e31b8fee3b64a00f7284d76e5631f87d0e58e665911a33b" } ], "meta": { "cached": false, "endpoint": "versions", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
reverseDependencies
/v1/rubygems/reverseDependenciesNames of the gems that depend on one gem, 50 per page, as RubyGems lists them.
Parameters
namestring required | Gem name, or rubygems.org gem URL. e.g. rails |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
name | string |
url | string |
curl "https://api.hoshime.com/v1/rubygems/reverseDependencies?name=rails" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/reverseDependencies?name=rails", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/reverseDependencies?name=rails", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "name": "turnstile-captcha", "url": "https://rubygems.org/gems/turnstile-captcha" }, { "name": "rylwin-acts-as-taggable-on", "url": "https://rubygems.org/gems/rylwin-acts-as-taggable-on" } ], "meta": { "cached": false, "endpoint": "reverseDependencies", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
owners
/v1/rubygems/ownersThe accounts that own one gem and may publish new versions of it.
Parameters
namestring required | Gem name, or rubygems.org gem URL. e.g. rails |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
handle | string |
id | string |
curl "https://api.hoshime.com/v1/rubygems/owners?name=rails" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/owners?name=rails", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/owners?name=rails", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "handle": "fxn", "id": "32977" }, { "handle": "tenderlove", "id": "207" } ], "meta": { "cached": false, "endpoint": "owners", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
latestGems
/v1/rubygems/latestGemsThe 50 gems whose newest version was published most recently on RubyGems.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
7 fields
authors | string |
description | string |
licenses | License[] |
name | string |
name | string |
url | string |
version | string |
curl "https://api.hoshime.com/v1/rubygems/latestGems" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/latestGems", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/latestGems", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "authors": "John Davis", "description": "Event bus over gRPC — generated grpcdc.events.v1 publish/subscribe clients over WebRTC DataChannels, via the grpc-dc runtime (Ruby).", "licenses": [ { "name": "Apache-2.0" } ], "name": "eventbus-grpc", "url": "https://rubygems.org/gems/eventbus-grpc", "version": "0.39.0" }, { "authors": "Asin", "description": "Track Amazon prices and products with a scheduled watchlist, price history, offers and alerts.", "licenses": [ { "name": "MIT" } ], "name": "asindotdev", "url": "https://rubygems.org/gems/asindotdev", "version": "0.1.0" } ], "meta": { "cached": false, "endpoint": "latestGems", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
downloads
/v1/rubygems/downloadsThe number of gem downloads RubyGems has served in total.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
1 fields
total | integer (int64) |
curl "https://api.hoshime.com/v1/rubygems/downloads" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/downloads", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/downloads", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "total": 274923807750 }, "meta": { "cached": false, "endpoint": "downloads", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }
version
/v1/rubygems/versionOne published version of a gem with its runtime dependencies, Ruby requirement, checksum, download count and gem file link.
Parameters
namestring required | Gem name, or rubygems.org gem URL. e.g. rails |
numberstring required | Version number, such as 8.1.4.1. e.g. 8.1.4.1 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
17 fields
createdAt | string |
dependencies | Dependency[] |
name | string |
requirements | string |
description | string |
downloads | integer (int64) |
gemUrl | string |
licenses | License[] |
name | string |
name | string |
number | string |
platform | string |
rubyVersion | string |
sha256 | string |
url | string |
versionDownloads | integer (int64) |
yanked | boolean |
curl "https://api.hoshime.com/v1/rubygems/version?name=rails&number=8.1.4.1" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/rubygems/version?name=rails&number=8.1.4.1", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/rubygems/version?name=rails&number=8.1.4.1", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "createdAt": "2026-11-06T09:41:00Z", "dependencies": [ { "name": "…", "requirements": "…" } ], "description": "…", "downloads": 0, "gemUrl": "https://…", "licenses": [ { "name": "…" } ], "name": "…", "number": "…", "platform": "…", "rubyVersion": "…", "sha256": "…", "url": "https://…", "versionDownloads": 0, "yanked": false }, "meta": { "cached": false, "endpoint": "version", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "rubygems", "requestId": "req_2Xb9kQ…", "units": 1 } }