Skip to main content

Get blacklisted domains

Retrieve a paginated list of all blacklisted domains for the authenticated account. You can use the domain_filter parameter to check whether specific domains are included in the blacklist.

Request

Endpoint

GET https://api.woodpecker.co/rest/v2/blacklist/domains

Headers

x-api-key: {YOUR_API_KEY}

For details on how to authenticate your requests, please see the authentication guide.

Parameters

ParameterRequiredDescription
pageNoRequested results page (0-based)
per_pageNoNumber of records per page. Default: 100, maximum: 500
domain_filterNoComma-separated domains to check against the list. Use * as a wildcard - woodpecker* will match woodpecker.co and woodpeckers.tld
info

Page parameter is 0-based. Use page=0 to retrieve the first one

Request sample

Retrieve first 500 domains

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/blacklist/domains?page=0&per_page=500" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

A list of blacklisted domains. The domains are sorted alphabetically.

{
"domains": [
"baddomain.com",
"blacklistedomain.io",
"finisheddeal.co.uk",
"nomoreemails.co",
"notmyicp.design"
],
"total": 5
}

Body schema

FieldTypeDescription
domainsarray[string]List of blacklisted domains
totalintegerTotal number of blacklisted domains, or total number of found domains when using domain_filter