Build with AdsGuard API
Integrate ads.txt validation and monitoring into your applications with our powerful REST API, real-time webhooks, and official SDKs for your favorite programming languages.
Everything You Need to Integrate
Our comprehensive API provides all the tools you need to build powerful ads.txt management solutions.
RESTful API
Clean, well-documented REST API with JSON responses for easy integration.
Real-time Webhooks
Get instant notifications when ads.txt files change or issues are detected.
Analytics API
Access detailed analytics and reporting data through our comprehensive API.
Multi-domain Support
Monitor and validate ads.txt files across multiple domains with a single API call.
Enterprise Security
Bank-level encryption, rate limiting, and comprehensive authentication.
API Endpoints
Simple, intuitive REST API endpoints for all your ads.txt management needs.
/api/domainsList all domains for your account
/api/domainsAdd a new domain for monitoring
/api/domain/{domain}/ads-txtGet current ads.txt file content and validation status
/api/domain/{domain}/historyGet historical changes and validation reports
Quick Start
Get started with our API in minutes. Here's a simple example to validate a domain's ads.txt file.
// Example: Validate a domain's ads.txt file
const response = await fetch('https://api.adsguard.site/api/domain/example.com/ads-txt', {
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  }
});
const data = await response.json();
console.log(data.validation.status); // 'valid' | 'invalid' | 'warning'
console.log(data.validation.issues); // Array of validation issuesReady to Get Started?
Explore our comprehensive documentation and start building with the AdsGuard API today.
Need Help?
Our developer support team is here to help you succeed. Get in touch for technical assistance, feature requests, or integration guidance.