Skip to main content

Get blacklisted domains

Retrieve a list of domains blacklisted in your agency. 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/agency/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: 1000
domain_filterNoComma-separated domains to check against the list
info

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

Request sample

Retrieve first 1000 domains

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

Lookup a list of domains

You can check whether certain domains are listed by using the domain_filter parameter. The maximum length of the request URL is 4100 characters.

curl --request GET \
--url "https://api.woodpecker.co/rest/v2/agency/blacklist/domains?domain_filter=baddomain.com,anotherone.com" \
--header "x-api-key: {YOUR_API_KEY}"

Response

Response examples

A list of blacklisted domains

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

Body schema

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