技
Hex.pm API
6 endpointsDeveloper & TechGlobalsocial:read5 real examples
Returns Hex package registry data: package search, package details, releases, package lists and user profiles.
View as Markdown| GET | /hexpm/search | Hex packages matching a search, as the registry ranks them. |
| GET | /hexpm/package | One Hex package: its description, latest versions, owners and releases. |
| GET | /hexpm/release | One release of a Hex package: its checksum, Elixir requirement and dependencies. |
| GET | /hexpm/list | One page of Hex packages in the order you choose, 100 per page. Page with cursor. |
| GET | /hexpm/user | A Hex user's public profile: links to their profiles and the packages they own. |
| GET | /hexpm/advisories | The security advisories of one Hex package: id, CVE and GHSA aliases, summary, CVSS score and the versions affected. |
search
GET
/v1/hexpm/searchHex packages matching a search, as the registry ranks them.
scope social:read1 unitcached 30 minpaginated
Parameters
querystring required | Words to search for, such as phoenix. e.g. phoenix |
limitinteger | Items per page, 1 to 100. default 10 |
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
8 fields
description | string |
downloads | integer (int64) |
latestVersion | string |
licenses | Term[] |
name | string |
name | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/hexpm/search?query=phoenix" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/search?query=phoenix", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hexpm/search?query=phoenix", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "Elixir renderer for the A2UI v0.9 protocol — server-driven UI over Phoenix LiveView", "downloads": 47239, "latestVersion": "0.3.1", "licenses": [ { "name": "Apache-2.0" } ], "name": "a2ui", "updatedAt": "2026-11-04T20:34:12Z", "url": "https://hex.pm/packages/a2ui" }, { "description": "Phoenix LiveView renderer for A2UI surfaces: the basic catalog as function components, two-way bindings, actions, and A2UI messages over SSE…", "downloads": 229, "latestVersion": "0.1.1", "licenses": [ { "name": "Apache-2.0" } ], "name": "a2ui_phoenix", "updatedAt": "2026-10-17T14:23:37Z", "url": "https://hex.pm/packages/a2ui_phoenix" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
package
GET
/v1/hexpm/packageOne Hex package: its description, latest versions, owners and releases.
scope social:read1 unitcached 1 h
Parameters
namestring required | Package name, such as phoenix. e.g. phoenix |
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
20 fields
createdAt | string |
description | string |
docsUrl | string |
downloads | integer (int64) |
latestStableVersion | string |
latestVersion | string |
licenses | Term[] |
name | string |
name | string |
owners | Term[] |
name | string |
repository | string |
retirements | Retirement[] |
message | string |
reason | string |
version | string |
updatedAt | string |
url | string |
versions | Version[] |
version | string |
curl "https://api.hoshime.com/v1/hexpm/package?name=phoenix" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/package?name=phoenix", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hexpm/package?name=phoenix", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "createdAt": "2014-04-21T22:38:32Z", "description": "Peace of mind from prototype to production", "docsUrl": "https://phoenix.hexdocs.pm/", "downloads": 159582010, "latestStableVersion": "1.8.16", "latestVersion": "1.8.16", "licenses": [ { "name": "MIT" } ], "name": "phoenix", "owners": [ { "name": "chrismccord" }, { "name": "gazler" } ], "repository": "hexpm", "updatedAt": "2026-10-20T10:33:08Z", "url": "https://hex.pm/packages/phoenix", "versions": [ { "version": "1.8.16" }, { "version": "1.8.15" } ] }, "meta": { "cached": false, "endpoint": "package", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
release
GET
/v1/hexpm/releaseOne release of a Hex package: its checksum, Elixir requirement and dependencies.
scope social:read1 unitcached 24 h
Parameters
namestring required | Package name, such as phoenix. e.g. phoenix |
versionstring required | Version, such as 1.7.14. e.g. 1.7.14 |
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
11 fields
buildTools | Term[] |
name | string |
checksum | string |
elixir | string |
hasDocs | boolean |
publishedAt | string |
requirements | Requirement[] |
app | string |
optional | boolean |
requirement | string |
version | string |
curl "https://api.hoshime.com/v1/hexpm/release?name=phoenix&version=1.7.14" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/release?name=phoenix&version=1.7.14", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hexpm/release?name=phoenix&version=1.7.14", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "buildTools": [ { "name": "mix" } ], "checksum": "c7859bc56cc5dfef19ecfc240775dae358cbaa530231118a9e014df392ace61a", "elixir": "~> 1.11", "hasDocs": true, "publishedAt": "2024-06-18T17:12:33Z", "requirements": [ { "app": "castore", "optional": false, "requirement": ">= 0.0.0" }, { "app": "jason", "optional": true, "requirement": "~> 1.0" } ], "version": "1.7.14" }, "meta": { "cached": false, "endpoint": "release", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
list
GET
/v1/hexpm/listOne page of Hex packages in the order you choose, 100 per page. Page with cursor.
scope social:read1 unitcached 30 minpaginated
Parameters
sortstring | Order of the packages: downloads, recent_downloads, updated_at, inserted_at or name.downloadsrecent_downloadsupdated_atinserted_atnamedefault downloadse.g. downloads |
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
8 fields
description | string |
downloads | integer (int64) |
latestVersion | string |
licenses | Term[] |
name | string |
name | string |
updatedAt | string |
url | string |
curl "https://api.hoshime.com/v1/hexpm/list?sort=downloads" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/list?sort=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/hexpm/list?sort=downloads", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "description": "A blazing fast JSON parser and generator in pure Elixir.", "downloads": 216684185, "latestVersion": "1.5.0-alpha.2", "licenses": [ { "name": "Apache-2.0" } ], "name": "jason", "updatedAt": "2026-05-05T14:34:54Z", "url": "https://hex.pm/packages/jason" }, { "description": "CA bundle adapted from Mozilla by https://certifi.io", "downloads": 179705458, "latestVersion": "2.18.0", "licenses": [ { "name": "BSD-3-Clause" } ], "name": "certifi", "updatedAt": "2026-10-23T07:45:09Z", "url": "https://hex.pm/packages/certifi" } ], "meta": { "cached": false, "endpoint": "list", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
user
GET
/v1/hexpm/userA Hex user's public profile: links to their profiles and the packages they own.
scope social:read1 unitcached 1 h
Parameters
usernamestring required | Hex username, such as wojtekmach. e.g. wojtekmach |
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
14 fields
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
handles | map |
id | string |
name | string |
packages | Term[] |
name | string |
postCount | integer (int64) |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/hexpm/user?username=wojtekmach" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/user?username=wojtekmach", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hexpm/user?username=wojtekmach", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "avatarUrl": "", "bio": "", "createdAt": "2015-12-23T15:07:53Z", "followerCount": 0, "followingCount": 0, "handles": { "Elixir Forum": "https://elixirforum.com/u/wojtekmach", "GitHub": "https://github.com/wojtekmach", "Libera": "irc://irc.libera.chat/elixir", "Slack": "https://elixir-slack.community", "X.com": "https://x.com/wojtekmach" }, "id": "wojtekmach", "name": "Wojtek Mach", "packages": [ { "name": "calendar_interval" }, { "name": "calendar_recurrence" } ], "postCount": 0, "url": "https://hex.pm/users/wojtekmach", "username": "wojtekmach", "verified": false }, "meta": { "cached": false, "endpoint": "user", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
advisories
GET
/v1/hexpm/advisoriesThe security advisories of one Hex package: id, CVE and GHSA aliases, summary, CVSS score and the versions affected.
scope social:read1 unitcached 1 hpaginated
Parameters
namestring required | Package name, such as plug. e.g. plug |
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
10 fields
affected | string[] |
aliases | string[] |
cvssRating | string |
cvssScore | string |
id | string |
modifiedAt | string |
publishedAt | string |
summary | string |
url | string |
withdrawnAt | string |
curl "https://api.hoshime.com/v1/hexpm/advisories?name=plug" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hexpm/advisories?name=plug", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hexpm/advisories?name=plug", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "affected": [ "…" ], "aliases": [ "…" ], "cvssRating": "…", "cvssScore": "…", "id": "abc123", "modifiedAt": "2026-11-06T09:41:00Z", "publishedAt": "2026-11-06T09:41:00Z", "summary": "…", "url": "https://…", "withdrawnAt": "2026-11-06T09:41:00Z" } ], "meta": { "cached": false, "endpoint": "advisories", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hexpm", "requestId": "req_2Xb9kQ…", "units": 1 } }