API & MCP › curl / REST

Use DNSai in curl / REST

No MCP client? Call the REST API directly. Plain HTTPS GET returns JSON with a plain-English summary; the OpenAPI 3.1 schema drives codegen.

✓ Free key works — Bearer header

Anything that speaks HTTP · one domain per request

↓ Download this guide (.md) drop it into your repo or paste it into your assistant

Set it up

curl

Anonymous (25/day) needs nothing. Add the Bearer header for 100/day.

# anonymous — 25/day
curl https://api.dnsai.com/v1/email-security/acme.com

# with a free key — 100/day
curl -H "Authorization: Bearer dk_free_xxxxxxxx" \
     https://api.dnsai.com/v1/dns/acme.com

OpenAPI 3.1

Import the schema into any OpenAPI client or codegen tool.

https://api.dnsai.com/openapi.json
Your key. Pass the key as a bearer token on each request. Get a free key for 100/day. This is the universal fallback for any client without a native MCP path.

Verify it works

Run:

curl https://api.dnsai.com/v1/dns/example.com

Every result ends with a plain-English summary, a source link on dnsai.com, and your remaining quota.

Sources: OpenAPI schema

Need bulk, multi-domain, or the full API?

Pro unlocks bulk / multi-domain lookups; Enterprise adds large-scale scanning and the full programmatic API.

See plans & pricing →