Discovery
Note
These v4 APIs are now frozen. See the API versions available for details of the different API versions available.
Discovery Content
This endpoint allows you to fetch content for the new Discovery Pane in Firefox (about:addons).
Note
If a telemetry client id is passed as a parameter to the discovery pane api endpoint then static curated content is amended with recommendations from the recommendation service. The same number of results will be returned as a standard discovery response and only extensions (not themes) are recommended. Only valid, publicly available addons are shown.
E.g. a standard discovery pane will display 7 items, 4 extensions and 3 themes. Up to 4 extensions will be replaced with recommendations; the 3 themes will not be replaced. The API will still return a total of 7 items.
- GET /api/v4/discovery/
- Query Parameters:
lang (string) – Activate translations in the specific language for that query. (See translated fields)
edition (string) – Optionally return content for a specific edition of Firefox. Currently only
china
(and the aliasMozillaOnline
) is supported.telemetry-client-id (string) – Optional sha256 hash of the telemetry client ID to be passed to the TAAR service to enable recommendations. Must be the hex value of a sha256 hash, otherwise it will be ignored.
- Response JSON Object:
count (int) – The number of results for this query.
results (array) – The array containing the results for this query.
results[].description_text (string|null) – The description for this item, if any. Text-only, content might slightly differ from
description
because of that.results[].is_recommendation (boolean) – If this item was from the recommendation service, rather than static curated content.
results[].addon (object) – The add-on for this item. Only a subset of fields are present:
id
,authors
,average_daily_users
,current_version
(with only theid
,compatibility
,is_strict_compatibility_enabled
andfiles
fields present),guid
,icon_url
,name
,ratings
,previews
,slug
,theme_data
,type
andurl
.
Editorial Content
This endpoint allows you to fetch all editorial content for Discovery Pane Recommendations. This is used internally to generate .po files containing the strings defined by the content team. It is also used by TAAR service to obtain a list of appropriate add-ons to recommended.
- GET /api/v4/discovery/editorial/
- Query Parameters:
recommended (boolean) – Filter to only add-ons recommended by Mozilla. Only
recommended=true
is supported.- Response JSON Object:
results (array) – The array containing the results for this query. There is no pagination, all results are returned.
results[].addon (object) – A add-on object for this item, but only containing one field:
guid
.results[].custom_description (string|null) – The custom description for this item, if any.