TXT Record Checker
Pricing
Pay per event
TXT Record Checker
This actor checks DNS TXT records for domains. It validates SPF (Sender Policy Framework), DMARC (Domain-based Message Authentication), and DKIM (DomainKeys Identified Mail) configuration. Also identifies domain verification records for Google, Facebook, Microsoft, and Apple.
Pricing
Pay per event
Rating
0.0
(0)
Developer

Stas Persiianenko
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Check DNS TXT records for SPF, DKIM, and DMARC email authentication configuration.
What does TXT Record Checker do?
TXT Record Checker retrieves and analyzes DNS TXT records for one or more domains. It validates SPF (Sender Policy Framework), DMARC (Domain-based Message Authentication, Reporting and Conformance), and DKIM (DomainKeys Identified Mail) configuration. It also identifies domain verification records for services like Google, Facebook, Microsoft, and Apple. Any configuration issues found are reported in the issues array.
Use it for email security auditing, deliverability analysis, compliance monitoring, or vendor assessment across any number of domains. The structured output parses SPF includes, DMARC policies, and verification entries so you do not need to manually read raw DNS records.
Use cases
- Email administrators verifying that SPF, DKIM, and DMARC are properly configured across all company domains
- Marketing teams auditing email authentication before launching campaigns to maximize inbox delivery rates
- Security analysts checking the email security posture of third-party vendors and business partners
- Compliance officers ensuring domains meet organizational or regulatory email security standards
- MSP/IT consultants reviewing TXT records across multiple client domains in a single batch
Why use TXT Record Checker?
- Complete email auth analysis — checks SPF, DKIM, and DMARC in a single run
- Issue detection — identifies configuration problems like missing records or weak policies
- Verification record identification — detects Google, Facebook, Microsoft, and Apple domain verification entries
- Batch processing — check hundreds of domains at once instead of querying them one by one
- Structured output — parsed SPF includes, DMARC policies, and record counts ready for analysis
- Pay-per-event pricing — costs scale with actual usage, just $0.001 per domain checked
Input parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
domains | string[] | Yes | — | List of domains to check TXT records for. Enter bare domain names (e.g., google.com). |
Example input
{"domains": ["google.com","github.com","example.com"]}
Output example
Each domain produces one result object with TXT record count, parsed SPF and DMARC data, DKIM presence, verification records, and any issues detected.
| Field | Description |
|---|---|
domain | The queried domain name |
txtRecordCount | Total number of TXT records found |
spf | Parsed SPF record (found, record text, includes, policy) |
dmarc | Parsed DMARC record (found, policy, report URI) |
hasDkim | Whether DKIM records were detected |
verificationRecords | Domain verification entries (Google, Facebook, etc.) |
issues | Array of detected configuration problems |
error | Error message if check failed |
checkedAt | ISO timestamp of the check |
{"domain": "google.com","txtRecordCount": 12,"spf": {"found": true,"record": "v=spf1 include:_spf.google.com ~all","includes": ["_spf.google.com"],"policy": "~all"},"dmarc": {"found": true,"policy": "reject","reportUri": "mailto:mailauth-reports@google.com"},"hasDkim": true,"verificationRecords": ["google-site-verification=..."],"issues": [],"error": null,"checkedAt": "2026-03-01T12:00:00.000Z"}
How much does it cost?
TXT Record Checker uses Apify's pay-per-event pricing:
| Event | Price | Description |
|---|---|---|
| Start | $0.035 | One-time per run |
| Domain checked | $0.001 | Per domain checked |
Examples:
- 10 domains: $0.035 + 10 x $0.001 = $0.045
- 100 domains: $0.035 + 100 x $0.001 = $0.135
- 1,000 domains: $0.035 + 1,000 x $0.001 = $1.035
Using the Apify API
The Apify API lets you control TXT Record Checker programmatically. Schedule runs, read datasets, manage webhooks, and more. See the Apify API reference for details.
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });const run = await client.actor('automation-lab/txt-record-checker').call({domains: ['google.com', 'github.com'],});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientclient = ApifyClient('<YOUR_API_TOKEN>')run = client.actor('automation-lab/txt-record-checker').call(run_input={'domains': ['google.com', 'github.com'],})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
Integrations
Connect TXT Record Checker with other apps and services using Apify integrations. You can integrate with Make, Zapier, Slack, Google Sheets, Google Drive, n8n, and many more. Set up a webhook to get a Slack notification when issues are detected in email authentication records, or push results to Google Sheets for a compliance dashboard across all your domains.
Tips and best practices
- Check all sending domains — if your organization uses multiple domains for email, check every one to ensure consistent authentication
- Look at the issues array — the
issuesfield highlights specific configuration problems; an empty array means no issues were found - Compare before and after — run the checker before and after making DNS changes to verify your updates took effect
- Use with SPF and DMARC actors — for deeper analysis of SPF or DMARC records, use the dedicated SPF Record Checker or DMARC Record Checker actors
- Schedule weekly audits — email authentication records can be accidentally modified; periodic checks catch regressions early
FAQ
What is the difference between TXT Record Checker and the dedicated SPF/DMARC checkers? TXT Record Checker provides a broad overview of all TXT records including SPF, DKIM, DMARC, and verification entries. The dedicated SPF Record Checker and DMARC Record Checker provide deeper parsing of their respective record types (e.g., individual mechanisms, alignment settings).
Can it detect DKIM records?
The actor checks for the presence of DKIM by looking for common DKIM selectors. The hasDkim field indicates whether DKIM records were found. For full DKIM validation, you would need to know the specific selector used by the email provider.
What services can the verification records identify? The actor recognizes domain verification records for Google, Facebook, Microsoft, and Apple. Other service-specific TXT records are included in the raw output but may not be explicitly labeled.
What kind of issues does the actor detect?
The issues array reports problems such as missing SPF records, missing DMARC records, multiple SPF records (which violates the SPF spec), weak DMARC policies (e.g., p=none), and other common misconfigurations. An empty issues array means no problems were found.