Skip to content

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/searchHex packages matching a search, as the registry ranks them.
GET/hexpm/packageOne Hex package: its description, latest versions, owners and releases.
GET/hexpm/releaseOne release of a Hex package: its checksum, Elixir requirement and dependencies.
GET/hexpm/listOne page of Hex packages in the order you choose, 100 per page. Page with cursor.
GET/hexpm/userA Hex user's public profile: links to their profiles and the packages they own.
GET/hexpm/advisoriesThe security advisories of one Hex package: id, CVE and GHSA aliases, summary, CVSS score and the versions affected.

package

GET/v1/hexpm/package

One Hex package: its description, latest versions, owners and releases.

scope social:read1 unitcached 1 h

Parameters

name
string
required
Package name, such as phoenix.
e.g. phoenix
tunnel
string
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.
proxy
string
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.
profileId
string
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
createdAtstring
descriptionstring
docsUrlstring
downloadsinteger (int64)
latestStableVersionstring
latestVersionstring
licensesTerm[]
namestring
namestring
ownersTerm[]
namestring
repositorystring
retirementsRetirement[]
messagestring
reasonstring
versionstring
updatedAtstring
urlstring
versionsVersion[]
versionstring
curl "https://api.hoshime.com/v1/hexpm/package?name=phoenix" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/release

One release of a Hex package: its checksum, Elixir requirement and dependencies.

scope social:read1 unitcached 24 h

Parameters

name
string
required
Package name, such as phoenix.
e.g. phoenix
version
string
required
Version, such as 1.7.14.
e.g. 1.7.14
tunnel
string
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.
proxy
string
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.
profileId
string
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
buildToolsTerm[]
namestring
checksumstring
elixirstring
hasDocsboolean
publishedAtstring
requirementsRequirement[]
appstring
optionalboolean
requirementstring
versionstring
curl "https://api.hoshime.com/v1/hexpm/release?name=phoenix&version=1.7.14" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/list

One page of Hex packages in the order you choose, 100 per page. Page with cursor.

scope social:read1 unitcached 30 minpaginated

Parameters

sort
string
Order of the packages: downloads, recent_downloads, updated_at, inserted_at or name.
downloadsrecent_downloadsupdated_atinserted_atname
default downloadse.g. downloads
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
descriptionstring
downloadsinteger (int64)
latestVersionstring
licensesTerm[]
namestring
namestring
updatedAtstring
urlstring
curl "https://api.hoshime.com/v1/hexpm/list?sort=downloads" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/user

A Hex user's public profile: links to their profiles and the packages they own.

scope social:read1 unitcached 1 h

Parameters

username
string
required
Hex username, such as wojtekmach.
e.g. wojtekmach
tunnel
string
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.
proxy
string
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.
profileId
string
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
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
handlesmap
idstring
namestring
packagesTerm[]
namestring
postCountinteger (int64)
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/hexpm/user?username=wojtekmach" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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/advisories

The 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

name
string
required
Package name, such as plug.
e.g. plug
tunnel
string
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.
proxy
string
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.
profileId
string
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
affectedstring[]
aliasesstring[]
cvssRatingstring
cvssScorestring
idstring
modifiedAtstring
publishedAtstring
summarystring
urlstring
withdrawnAtstring
curl "https://api.hoshime.com/v1/hexpm/advisories?name=plug" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open