{"uid":"cap_5LOocjLBocBtdTcocgVOP","slug":"hex-package-registry-lookup-a35f2883","name":"Hex Package Registry Lookup","description":"Hex package info - latest Elixir or Erlang package version, licenses, downloads, owners, retirements and mix.exs dependency snippet","url":"https://saylorinnovations.com/api/registry/hex/:name?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Jd4EuagHpfpnQkQ-dpk_P","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns latest version, licenses, downloads, owners, retirement status, and mix.exs dependency snippet for any Hex (Elixir/Erlang) package","exampleAgentPrompt":"What's the latest version of the Phoenix package on Hex, and can you give me the mix.exs dependency line I need to add it to my project?","exampleUseCases":[{"title":"Add dependency to Elixir project","prompt":"I'm starting a new Elixir project and want to add Ecto as a database wrapper — can you look up the latest version on Hex and give me the exact mix.exs snippet to paste in?"},{"title":"Check if a package is retired","prompt":"Before I use the Poison JSON library in my Elixir app, can you check on Hex if it's been retired or deprecated and what license it's under?"},{"title":"Audit package ownership and downloads","prompt":"Can you pull up the Hex registry info for Oban — I want to know who the owners are and how many total downloads it has to gauge how widely used it is?"}],"resultDescription":"A JSON object containing the package's latest version string, list of licenses, total and recent download counts, list of owner handles, retirement status and reason if applicable, and a ready-to-paste mix.exs dependency snippet.","failureModes":["Package name not found on Hex — returns 404 or empty result","Typo in package name yields no match","Package exists but has no published releases — incomplete data returned","Rate limiting or payment failure returns error before data is delivered"],"whenToPreferThis":"Use this endpoint when you need authoritative Hex.pm package metadata for Elixir or Erlang libraries — especially when you need the exact mix.exs snippet, retirement status, or owner information that generic search engines won't surface. Prefer this over scraping hex.pm directly or using npm/PyPI lookup endpoints which cover different ecosystems.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T12:40:34.132Z","isFirstParty":false,"canonicalSlug":"hex-package-registry-lookup-a35f2883"}