Run one DNS, email, network or blacklist check against a domain or IP.
GET/Lookup/{command}
- Takes: Domain
- Takes: IP address
- Active: contacts the target
Runs the named command and returns passed, warning, failed and timed-out checks. DKIM needs the argument as domain:selector; TCP needs the port parameter. Network commands (blacklist, http, https, ping, smtp, tcp, trace) contact the target and are not available on the free plan.
Path parameters
commandThe check to run
Query parameters
argumentDomain or IP address to check
portPort, required for the tcp command
Response fields · 10ShowHide
UID
Identifier of the lookup
Command
The command that was run
CommandArgument
The argument that was checked
TimeRecorded
When the lookup ran
ReportingNameServer
Name server that answered
TimeToComplete
How long the lookup took
Failed[]
Failed checks, each with ID, Name, Info and Url
Warnings[]
Checks that raised a warning
Passed[]
Checks that passed
Timeouts[]
Checks that timed out
curl 'https://api.mxtoolbox.com/api/v1/Lookup/mx?argument=example.com' \
-H 'Authorization: YOUR_API_KEY'{
"UID": "00000000-0000-0000-0000-000000000000",
"Command": "mx",
"CommandArgument": "example.com",
"TimeRecorded": "2026-01-01T00:00:00Z",
"ReportingNameServer": "ns1.example.org",
"TimeToComplete": "42",
"Failed": [],
"Warnings": [],
"Passed": [
{
"ID": 1,
"Name": "DNS Record Published",
"Info": "DNS Record found",
"Url": ""
}
],
"Timeouts": []
}