GET /mx/{domain}
See where a domain routes its mail.
Try it
mx
MX list, priority and host (empty if none)
1
Hosts come back sorted the way mailers try them.
2
No mail exchanger is an empty list, not an error.
3
A day-old copy serves while DNS re-checks.
Mail hosts and priority. Every plan.
Pass a domain. Hosts come back sorted the way mailers try them, lowest number first. Empty mx means no mail exchanger. That is an answer, not an error.
Lookups refresh when you ask. A day-old copy serves immediately while we re-check DNS. Names we have not seen resolve live and join the index. Availability lives on /domain/{domain}. This call is mail routing only, on every plan.
RESPONSE
$ curl "https://api.parseapi.com/mx/gmail.com" \ -H "X-API-Key: YOUR_API_KEY" // 200 · ~35ms US · ~97ms worldwide { "domain": "gmail.com", "mx": [ { "priority": 5, "host": "gmail-smtp-in.l.google.com" }, { "priority": 10, "host": "alt1.gmail-smtp-in.l.google.com" }, // ... 3 more ] }
Response fields
QUESTIONS
SPEED
US
16ms
EU
31ms
APAC
46ms
LatAm
16ms
ME
115ms
Live DNS. Hosts refresh when you look them up.
See the mail servers on any domain with the MX lookup.