Skip to content

Bulk Domain Management

Use the GhostFlow API to add, verify, and manage domains in bulk for large-scale campaigns.

import requests
import time
API_KEY = "gf_your_api_key_here"
BASE_URL = "https://devcore.getghostflow.io/api/v1"
HEADERS = {"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}
domains = ["example1.com", "example2.com", "example3.com"]
for domain in domains:
response = requests.post(
f"{BASE_URL}/domains",
headers=HEADERS,
json={"domain": domain}
)
if response.status_code == 201:
print(f"✓ Added: {domain}")
else:
print(f"✗ Failed: {domain} - {response.json().get('message', 'Unknown error')}")
time.sleep(0.5) # Respect rate limits

Your API key needs: read:domains, write:domains