Docs
View as Markdown

amo.addon

stable Standard

Firefox add-on details by slug or id (AMO).

GET /v1/amo/addon

What you get#

One Amo record in Onekey's unified shape, in data. If the record does not exist you get a 404 not_found and are not charged.

What it costs#

  • Standard · 1 credit for a fresh fetch, charged only when it succeeds.
  • Free when served from cache (0.2 credit for a cached response over 100 KB).
  • Free if the request is invalid (never charged) or the source fails or reports not found (refunded).

Parameters#

NameTypeRequiredDefaultWhat it isConstraints
slugstringyes(required)Add-on slug or numeric id, e.g. ublock-originmax 100 chars; must match [A-Za-z0-9][A-Za-z0-9_.-]{0,99}; trimmed

Request#

curl "https://api.onekey.dev/v1/amo/addon?slug=ublock-origin" \
  -H "x-api-key: YOUR_API_KEY"

Try it

Add your key to run this call right here. No key? Get one free. The key stays in this tab.

Recorded response#

A real Amo response, recorded and returned in Onekey's shape. Fields the platform does not provide are null.

json
{
  "success": true,
  "data": {
    "entity": {
      "id": "607454",
      "name": {
        "en-US": "uBlock Origin"
      },
      "slug": "ublock-origin",
      "url": "https://addons.mozilla.org/en-US/firefox/addon/ublock-origin/",
      "type": "extension",
      "stats": {
        "rating": 4.8013,
        "ratingCount": 22153
      },
      "tags": [
        "privacy-security"
      ],
      "description": {
        "en-US": "uBlock Origin is <strong>not</strong> an \"ad blocker\", it's a wide-spectrum content blocker with CPU and memory efficiency as a primary feature.\n\n\n\nOut of the box, uBO blocks ads, trackers, coin miners, popups, etc. through the following lists of filters, enabled by default:\n<ul><li>EasyList (ads)</li><li>EasyPrivacy (tracking)</li><li>Peter Lowe’s Ad server list (ads and tracking)</li><li>Online Malicious URL Blocklist</li><li>uBO's own lists</li></ul>\nMore lists are available for you to select if you wish:\n<ul><li>EasyList Cookie</li><li>Fanboy Annoyances</li><li>AdGuard Annoyances</li><li>Dan Pollock’s hosts file</li><li>And many others</li></ul>\nAdditionally, you can point-and-click to block JavaScript locally or globally, create your own global or local rules to override entries from filter lists, and many more advanced features.\n\n\n\nFree.\nOpen source with public license (GPLv3)\nFor users by users.\n\nIf ever you really do want to contribute something, think about the people working hard to maintain the filter lists you are using, which were made available to use by all for free.\n\n\n<ul><li><a href=\"https://prod.outgoing.prod.webservices.mozgcp.net/v1/788d66e7299bdfb1da05832994551640d0ad441e148a3e29afe8dd0a5a90800c/https%3A//github.com/gorhill/uBlock%23ublock-origin\" rel=\"nofollow\">Documentation</a></li><li><a href=\"https://prod.outgoing.prod.webservices.mozgcp.net/v1/de148deb19b52874eb4c5726859834f3294a6057ed44e873c958acee4c920062/https%3A//github.com/gorhill/uBlock/releases\" rel=\"nofollow\">Release notes</a></li><li><a href=\"https://prod.outgoing.prod.webservices.mozgcp.net/v1/32c3d6819f5263e56c265042e8d34e2da4d974e73a7ad55a81786d8995cf65a9/https%3A//www.reddit.com/r/uBlockOrigin/\" rel=\"nofollow\">Community support @ Reddit</a></li><li><a href=\"https://prod.outgoing.prod.webservices.mozgcp.net/v1/9bfaba4f3fe3310ae0a3189187f5fbab185097d85398752765e086889775079e/https%3A//github.com/gorhill/uBlock/graphs/contributors\" rel=\"nofollow\">Contributors @ GitHub</a></li><li><a href=\"https://prod.outgoing.prod.webservices.mozgcp.net/v1/6a44868e1580018df8d4d87adf8e97cc74b71b962a73dd5a64604f99db767287/https%3A//crowdin.net/project/ublock\" rel=\"nofollow\">Contributors @ Crowdin</a></li></ul>"
      }
    },
    "ext": {
      "entitySummary": {
        "en-US": "Finally, an efficient wide-spectrum content blocker. Easy on CPU and memory."
      },
      "developer": "Raymond Hill",
      "users": 11148991,
      "weeklyDownloads": 233217
    },
    "package": {
      "version": "1.75.0"
    },
    "content": {
      "createdAt": "2015-04-25T07:26:22Z",
      "updatedAt": "2026-09-26T16:26:20Z"
    },
    "media": {
      "thumbnailUrl": "https://addons.mozilla.org/user-media/addon_icons/607/607454-64.png?modified=mcrushed"
    }
  },
  "metadata": {
    "platform": "amo",
    "endpoint": "addon",
    "cached": false,
    "stale": false,
    "age_s": 0,
    "fetched_at": "2026-01-01T12:00:00+00:00",
    "credits_charged": 1,
    "request_id": "7f3a9c2e5b1d4c8fa2e6d0b9c4f18e37"
  },
  "error": null
}

Field mapping#

How this endpoint's source fields become Onekey's unified schema. Fields the source lacks come back as null.

Source pathOnekey fieldTransform
identity.idtoString
nameentity.name-
slugentity.slug-
summaryext.entitySummarystripHtml
urlentity.urlsafeUrl
typeentity.type-
current_version.versionpackage.version-
authors.0.nameext.developer-
average_daily_usersext.userstoNumber
weekly_downloadsext.weeklyDownloadstoNumber
ratings.averageentity.stats.ratingtoNumber
ratings.countentity.stats.ratingCounttoNumber
createdcontent.createdAttoIsoDate
last_updatedcontent.updatedAttoIsoDate
categoriesentity.tags-
icon_urlmedia.thumbnailUrlsafeUrl
descriptionentity.descriptionstripHtml

Caching and freshness#

  • Fresh for about 30 minutes. Repeat calls in that window are served from cache and are free.
  • Between 30 minutes and 6 hours the cached copy is still served instantly and marked stale: true while Onekey refreshes it in the background.
  • If the source is down when a refresh is needed, the last copy can be served for up to 1 day more (marked stale).
  • A "not found" is remembered for 5 minutes and is free.
  • The cache is shared across all customers, which is what keeps repeat calls cheap.

What can go wrong#

StatusCodeWhat to do
401unauthorizedCheck the x-api-key header.
402insufficient_creditsAdd credits; your balance must cover the price.
404not_foundThat record does not exist. Free; do not retry.
422invalid_paramsFix the parameters using the table above. Free.
429rate_limitedWait Retry-After seconds, then retry.
502upstream_errorThe source failed. Refunded; retry with backoff.

See Errors for the full list and retry guidance.

Status: stable (verified against the live source).