Skip to main content

Bulk Operations

Perform bulk actions on domains across your lead lists — delete, archive, or export to CSV.

API Playground

tip

Try this endpoint live in the API Playground.

Endpoints

MethodEndpointDescription
POST/v1/bulk/deleteRemove domains from a list
POST/v1/bulk/archiveMove domains to an archive list
POST/v1/bulk/exportExport domains as CSV

Bulk Delete

POST /v1/bulk/delete

Remove up to 500 domains from a lead list at once.

ParameterTypeRequiredDescription
list_idintegerYesThe list to remove from
domain_idsstring[]YesDomain names to remove (1–500)
curl -X POST \
-H "Authorization: Bearer cdb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"list_id": 1,
"domain_ids": ["old-lead.com", "not-relevant.io"]
}' \
"https://api.crondb.com/v1/bulk/delete"

Response

{
"removed": 2,
"remaining": 43
}

Bulk Archive

POST /v1/bulk/archive

Move domains from one list to an archive list. If the archive list doesn't exist, it's created automatically.

ParameterTypeRequiredDescription
source_list_idintegerYesSource list ID
domain_idsstring[]YesDomains to move (1–500)
archive_list_namestringNoArchive list name (default: "Archived")
import requests

response = requests.post(
"https://api.crondb.com/v1/bulk/archive",
headers={"Authorization": "Bearer cdb_your_api_key_here"},
json={
"source_list_id": 1,
"domain_ids": ["old-lead.com", "disqualified.io"],
"archive_list_name": "Q1 Archive",
},
)
result = response.json()
print(f"Archived {result['archived']} domains")

Response

{
"archived": 2,
"archive_list_id": 7
}

Bulk Export

POST /v1/bulk/export

Export up to 1,000 domains as a CSV download. Optionally specify which fields to include.

ParameterTypeRequiredDescription
domainsstring[]YesDomain names to export (1–1,000)
fieldsstring[]NoColumns to include (defaults to standard set)

Default Export Fields

domain, company_name, industry, sub_industry, country, website_email, phone, employees_range, business_type, confidence, technologies

Example Request

curl -X POST \
-H "Authorization: Bearer cdb_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"domains": ["startup1.com", "startup2.io", "startup3.co"],
"fields": ["domain", "industry", "website_email", "confidence"]
}' \
"https://api.crondb.com/v1/bulk/export" \
-o export.csv
import requests

response = requests.post(
"https://api.crondb.com/v1/bulk/export",
headers={"Authorization": "Bearer cdb_your_api_key_here"},
json={
"domains": ["startup1.com", "startup2.io"],
"fields": ["domain", "industry", "website_email"],
},
)

with open("export.csv", "w") as f:
f.write(response.text)

Response

Returns a CSV file download:

domain,industry,website_email,confidence
startup1.com,Technology,hello@startup1.com,0.92
startup2.io,E-commerce,info@startup2.io,0.85

Next Steps