Network & DNS
GET
/api/v1/mx-lookupMX Lookup
The mail servers that accept email for a domain, in priority order.
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Domain to look up. |
Example request
curl "https://netsh.io/api/v1/mx-lookup?domain=example.com&api_key=YOUR_API_KEY"
Example response
{ "ok": true, "data": { "domain": "example.com", "hosts": [ { "priority": 5, "exchange": "mxa.example.com", "ip": "172.65.169.99", "provider": null }, { "priority": 10, "exchange": "mxb.example.com", "ip": "172.65.65.66", "provider": null } ] }, "meta": { "tool": "mx-lookup", "version": "v1" } }