Skip to content

About

Domain intelligence API examples and guides: bulk SPF/DKIM/DMARC checks, SSL and domain expiry monitoring, WHOIS (RDAP) lookup and website technology detection. No API keys.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Domain Intelligence API: examples and guides

Check domains in bulk: DNS records, SPF/DKIM/DMARC with plain-English fixes, registration and expiry, the SSL certificate and the technology a website runs on. No API keys.

This repository contains runnable examples and how-to guides for the Domain Intelligence API on Apify, made by CodePulse. The examples call that hosted Actor, so you need a free Apify account and API token. The code here is MIT licensed; the Actor is a paid, hosted service. Pay per check that returns data: $0.0008 DNS and email security, $0.001 registration, $0.0008 SSL, $0.0014 website technology per domain (about $0.004 for everything).

Try it free: Apify's free plan includes $5 of monthly credit, so you can run the Actor on real data before paying anything. Start here.

Read the guides as a website: codepulsehq.github.io/domain-intelligence-api

Quick start

export APIFY_TOKEN=...   # free Apify account: Console > Settings > API & Integrations

curl -sS -X POST \
  "https://api.apify.com/v2/acts/codepulsehq~domain-intelligence-api/run-sync-get-dataset-items?token=${APIFY_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["stripe.com", "github.com"], "checks": ["email", "ssl", "registration"]}'

Guides

Question Guide
How to check SPF, DKIM and DMARC for many domains at once docs/check-spf-dkim-dmarc-bulk.md
How to monitor SSL certificate and domain expiry for a list of domains docs/monitor-ssl-and-domain-expiry.md
How to detect what technology a website uses (a cheaper BuiltWith alternative) docs/detect-website-technology-api.md
WHOIS vs RDAP: how to look up domain registration data through an API docs/whois-vs-rdap-api.md

Examples

File What it does
examples/curl/quickstart.sh One request, results back
examples/python/quickstart.py The same with the Apify Python client, with a spend cap

Frequently asked questions

Do I need API keys? No.

What does it cost? $0.0008 for DNS and email security, $0.001 for registration, $0.0008 for SSL and $0.0014 for website technology, per domain, only for checks that return data. About $0.004 per domain for everything.

Is it WHOIS? Registration data comes from RDAP, the modern replacement for WHOIS: registrar, dates, status, name servers and DNSSEC. Registrant contact details are hidden by registries.

How accurate is technology detection? It reads the homepage's headers, cookies, HTML and script URLs and shows the evidence for each match. It covers about 120 common technologies and doesn't run JavaScript.

More from CodePulse

Feedback

Found a problem or want an example added? Open an issue here, or use the Issues tab on the Actor's Apify page.

About

Domain intelligence API examples and guides: bulk SPF/DKIM/DMARC checks, SSL and domain expiry monitoring, WHOIS (RDAP) lookup and website technology detection. No API keys.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages