Documentation & Tutorials

How-To Guides

Step-by-step tutorials for getting the most out of MarketXY — from your first API call to building advanced threat intelligence pipelines.

Start Here

Your first MarketXY API call in 5 minutes

Generate an API key, make your first domain lookup, and understand the JSON response. No setup required — works directly in your terminal.

1
Create a free account & generate your API key
2
Make your first GET /domain/{domain} request
3
Understand the score, WHOIS, and DNS response
4
Try the bulk endpoint with multiple domains
cURL
# 1. Make your first API call
curl https://api.marketxy.com/v2
     /domain/stripe.com \
  -H "X-API-Key: YOUR_KEY"

# Response
{
  "domain": "stripe.com",
  "score": 9.4,
  "status": "active",
  "blacklisted": false
}
All Guides
View all →
Step-by-Step
API & Integration
How to set up webhooks for domain status change alerts
8 min read·Updated Apr 2026·Intermediate
1
Create a webhook endpoint on your server
Your endpoint must accept POST requests and return a 200 HTTP response within 5 seconds. MarketXY retries failed deliveries up to 3 times with exponential backoff.
POST https://yourdomain.com/webhooks/marketxy
2
Register the webhook in your dashboard
Go to Dashboard → Webhooks → Add Endpoint. Paste your URL, select the events you want to subscribe to (status_change, expiry_alert, blacklist_added), and save.
3
Verify the webhook signature
Every MarketXY webhook includes an X-MXY-Signature header. Verify it against your webhook secret to prevent spoofed requests.
const sig = req.headers['x-mxy-signature'];
const expected = hmac('sha256', secret, body);
if (sig !== expected) return res.status(401).send();
4
Handle the event payload
Parse the JSON body to get the event type, domain name, old and new values, and timestamp. Process asynchronously — always respond 200 first, then do your processing.
{ "event": "blacklist_added", "domain": "example.com", "timestamp": "2026-04-14T10:32:00Z" }