---
title: Email DNS Security Check API
slug: email-dns-security-check
url: https://apyhub.com/martin10291/service/email-dns-security-check
provider: Martin Petrov
categories: [Verification Kit]
tags: [email-dns, dmarc, spf, dkim, mx-lookup, domain-verification]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Email DNS Security Check API

Email DNS Security Check API checks one domain or up to 50 domains for MX, SPF, DKIM, and DMARC. Get row results and grades. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/email-dns-security-check` | What it does Checks one or more domains for email DNS security records and returns a row-by-row res… | 100 |

## Endpoint reference

### DMARC SPF MX Lookup API - Email DNS Security Check

`POST https://api.eu.apyhub.com/martin10291/email-dns-security-check` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | body | string | no | Optional: exactly one domain, e.g. example.com. It is never split: a value with spaces, commas, semicolons or new lines returns one invalid_format row. Use domains for a list. |
| `domains` | body | array of string | no | Domains to check, up to 50 per call, bare names like example.com (no https://, no mailbox). The API answers 400 above 50 (the Actor checks the first 50). Each row shows your input and the checked (lo… |
| `dkimSelectors` | body | array of string | no | Optional. Your own DKIM selector names (the part before ._domainkey), up to 20 (the API answers 400 above 20 or for an invalid name), for example s1 or mimecast20240101. They are checked in addition… |

#### Quickstart

Check one or more email domains for MX, SPF, DKIM, DMARC, and related DNS records.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/email-dns-security-check" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"domains":["google.com","github.com"]}'
```

#### What you'll get back

Returns a JSON object with `billed` and `count` integers, plus an `items` array of result objects.

Each item can include DNS/security result objects such as `mx`, `spf`, `bimi`, `dkim`, `dmarc`, `mtaSts`, and `tlsRpt`, along with fields like `input`, `domain`, `status`, `grade`, `score`, `issues`, and timing metadata.

```json
{
  "billed": 2,
  "count": 2,
  "items": [
    {
      "input": "google.com",
      "domain": "google.com",
      "status": "ok"
    }
  ]
}
```

## About

## What it does

The Email DNS Security Check API checks email DNS records for one domain or up to 50 domains.

Send `domain` for one name, or `domains` for a list of bare domain names like `example.com`. You can also set `dkimSelectors` with up to 20 custom selector names, such as `s1` or `mimecast20240101`. The API returns a row for each input with the checked domain, status, score, grade, and issue count.

Each row can include MX, SPF, DKIM, DMARC, BIMI, MTA-STS, and TLS-RPT details. You also get the original input, partial lookup errors, duplicate inputs, and the DNS records found for each area. MX shows host and priority data. SPF shows the record, includes, and lookup count. DKIM shows the selectors checked and the key details found.

Teams use Email DNS Security Check API to audit email setup before launch. They catch bad MX, SPF, DMARC, or DKIM records during onboarding. They also check MTA-STS, TLS-RPT, and BIMI when they need a fuller email security review.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/email-dns-security-check
