# MxToolbox API reference

> The MxToolbox API runs the same DNS, email and network checks as the website and returns the results as JSON. An investigator can use it to read a domain's MX, SPF, DKIM, DMARC and other records, or to check an IP or domain against blacklists. Calls go to https://api.mxtoolbox.com/api/v1/. The API…

Source: https://osinttools.io/apis/mxtoolbox/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/mxtoolbox/

- Base URL: https://api.mxtoolbox.com/api/v1
- Authentication: API key in the `Authorization` header. Get a key: https://mxtoolbox.com/c/products/mxtoolboxapi Plain API key UUID, no Bearer prefix.
- Free tier: yes
- Pricing: Subscription
- Rate limits: Separate daily quotas for DNS and network lookups, reset at 12:00 AM UTC; HTTP 429 after the limit. The free plan lists 64 DNS lookups a day and no network lookups.
- Vendor docs: https://mxtoolbox.com/api/api-reference

## Overview

The MxToolbox API runs the same DNS, email and network checks as the website and returns the results as JSON. An investigator can use it to read a domain's MX, SPF, DKIM, DMARC and other records, or to check an IP or domain against blacklists.

Calls go to `https://api.mxtoolbox.com/api/v1/`. The API key is sent in the `Authorization` header as a plain UUID, with no "Bearer" prefix. The `Lookup` endpoint runs one command per call; each result is split into `Failed`, `Warnings`, `Passed` and `Timeouts` arrays.

DNS commands (a, aaaa, asn, bimi, dkim, dmarc, dns, mta-sts, mx, ptr, soa, spf, tlsrpt, txt) and network commands (blacklist, http, https, ping, smtp, tcp, trace) have separate daily quotas that reset at 12:00 AM UTC. The docs' own tables disagree in places (free DNS quota 68 vs 64; Monitor access paid vs included), so check the plan page before relying on a figure.

## Errors

| Status | Meaning |
| --- | --- |
| 401 | Missing or invalid API key |
| 429 | Rate limit or quota exceeded |
| 500 | Server error |

## Lookups

### Run one DNS, email, network or blacklist check against a domain or IP.

`GET /Lookup/{command}`

- Takes: Domain, IP address
- Footprint: 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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `command` | path | string | yes | The check to run Example: mx One of: a, aaaa, asn, bimi, dkim, dmarc, dns, mta-sts, mx, ptr, soa, spf, tlsrpt, txt, blacklist, http, https, ping, smtp, tcp, trace |
| `argument` | query | string | yes | Domain or IP address to check Example: example.com |
| `port` | query | integer | no | Port, required for the tcp command Example: 25 |

Response fields:

- `UID` (string): Identifier of the lookup
- `Command` (string): The command that was run
- `CommandArgument` (string): The argument that was checked
- `TimeRecorded` (string): When the lookup ran
- `ReportingNameServer` (string): Name server that answered
- `TimeToComplete` (string): How long the lookup took
- `Failed[]` (object): Failed checks, each with ID, Name, Info and Url
- `Warnings[]` (object): Checks that raised a warning
- `Passed[]` (object): Checks that passed
- `Timeouts[]` (object): Checks that timed out

```bash
curl 'https://api.mxtoolbox.com/api/v1/Lookup/mx?argument=example.com' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
{
  "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": []
}
```

## Account

### Show DNS and network request counts against the plan maximums.

`GET /Usage`

- Footprint: passive (the target is not contacted)

Returns the DNS and network request counts for the key next to the plan's maximums.

Response fields:

- `DnsRequests` (integer): DNS lookups counted
- `NetworkRequests` (integer): Network lookups counted

```bash
curl 'https://api.mxtoolbox.com/api/v1/Usage' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
{
  "DnsRequests": 3,
  "NetworkRequests": 0
}
```

## Monitors

### List monitors and their status, filtered by command, name or tag.

`GET /Monitor`

- Footprint: passive (the target is not contacted)

Returns the account's monitors. The command, name and tag filters can be combined.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `command` | query | string | no | Filter by monitor command Example: mx |
| `name` | query | string | no | Filter by monitor name Example: example monitor |
| `tag` | query | string | no | Filter by tag Example: prod |

Response fields:

- `MonitorUID` (string): Identifier of the monitor

```bash
curl 'https://api.mxtoolbox.com/api/v1/Monitor' \
  -H 'Authorization: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "MonitorUID": "00000000-0000-0000-0000-000000000000"
  }
]
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
