The list catalog with sources and licenses.
const url = 'https://api.opdns.io/v1/lists?limit=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.opdns.io/v1/lists?limit=50'Lists the blocklists that profiles can enable, with group, recommended flag, summary, protection level, manufacturer, source and license, ordered by list id. Public, paginated and rate limited per client IP.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Page size.
The next_cursor of the previous page (opaque).
Responses
Section titled “Responses”The catalog, with retired lists.
object
The cursor of the next page (pass it as cursor). Null on the last page.
object
The evaluation step that the list applies at (blocklist, security, parental). For presentation, use group.
The top-level category that a list belongs to, as the dashboard groups them: ads_trackers (Ads & trackers), malware_phishing (Malware & phishing), scams_abuse (Scams & abuse), telemetry (Native tracking: device and app telemetry, one switch per manufacturer), affiliate_links (Affiliate & tracking links: click trackers, affiliate redirects and tracking short links, one switch, since 0.40.0), adult (Adult content), gambling, social (social networks and messaging), entertainment (streaming and gaming) and other. Every list has exactly one. Clients must treat an unknown value as other.
Whether the switch of its group turns the list on. For a telemetry list, whether the switch of its manufacturer turns it on (the aggressive TikTok list is not).
One plain-language line on what the list blocks.
The lowest step of the protection slider of its group (1, least restrictive, to 5, most restrictive) at which the list is enabled. Only the groups of ProtectionSteps have a slider. Step N of a group enables every list of that group whose level is 1 to N, so the lists of each step include those of the step below. Null for a list outside the sliders (parental, device telemetry, toggle-only security lists and alternatives). A new profile starts every slider at step 3. See ProtectionSteps for the rule that turns steps into list ids.
For a device telemetry list, the display name of the maker whose devices and apps it stops from phoning home (for example Apple, OPPO/Realme). Null for every other list.
The profile toggle that the list backs (for example threat_intel). Empty for a list enabled by id only.
The distinct attribution texts of the sources of the list, one per line. Empty when none is required.
The enabled sources that feed the list (list_sources).
object
Upstream URL, or curated://… for in-repo curated data.
SPDX identifier, or LicenseRef-… for custom terms.
The entries that the source gave the last fleet build.
When the snapshot of the source last changed. Null before its first fetch.
Example
{ "lists": [ { "group": "ads_trackers" } ]}Malformed request.
object
Stable machine code.
object
Seconds, the same value as the Retry-After header (rate limits, offline nodes).
The plan limit that a plan_limit problem reached.
object
The value of the limit in the plan.
Where to change to a larger plan.
The scope that the API token did not have (insufficient_scope).
Example
{ "type": "https://opdns.io/problems/bad_request", "title": "Bad Request", "status": 400, "code": "bad_request", "detail": "The JSON in the request is not valid (unexpected end of JSON input). Correct the JSON and try again.", "request_id": "5f2c9a0e7b1d4c38"}Field validation failed (validation_failed, unknown_list), or the plan of the organization does not allow the write (plan_limit, which names the limit in limit).
object
Stable machine code.
object
Seconds, the same value as the Retry-After header (rate limits, offline nodes).
The plan limit that a plan_limit problem reached.
object
The value of the limit in the plan.
Where to change to a larger plan.
The scope that the API token did not have (insufficient_scope).
Example
{ "type": "https://opdns.io/problems/validation_failed", "title": "Unprocessable Content", "status": 422, "code": "validation_failed", "detail": "Some values in the request are not valid. The list of errors tells you what to change.", "errors": [ { "field": "settings.block_mode", "message": "one of nxdomain, refused, null, block-page" } ], "request_id": "5f2c9a0e7b1d4c38"}Rate limited (rate_limited). For an API token, the organization used all of the rate of its plan until RateLimit-Reset.
object
Stable machine code.
object
Seconds, the same value as the Retry-After header (rate limits, offline nodes).
The plan limit that a plan_limit problem reached.
object
The value of the limit in the plan.
Where to change to a larger plan.
The scope that the API token did not have (insufficient_scope).
Example
{ "type": "https://opdns.io/problems/rate_limited", "title": "Too Many Requests", "status": 429, "code": "rate_limited", "detail": "You sent too many requests in a short time. Wait a moment, then try again.", "request_id": "5f2c9a0e7b1d4c38", "retry_after": 6}Headers
Section titled “Headers”On every response to an API token: the rate of the plan of the organization, in requests per one-minute window (api_requests_per_minute).
On every response to an API token: the requests left to the organization in the current window.
On every response to an API token: the seconds until the current window ends and the count resets.
On every response to an API token: the quota policy, <limit>;w=60.