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 headerWorks with: Anything that speaks HTTP · one domain per request
Each lookup = one domain or IP. Free: 10 lookups/day per IP (anonymous) or 100 lookups/day per key (free key).
↓ Download this guide (.md) drop it into your repo or paste it into your assistant
Running bulk / multi-domain or enterprise-scale lookups? → DNSai Pro & Enterprise
Set it up
curl
Anonymous (10 lookups/day) needs nothing. Add the Bearer header for 100 lookups/day.
# anonymous — 10 lookups/day
curl https://api.dnsai.com/v1/email-security/acme.com
# with a free key — 100 lookups/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 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 →