Developer API & SDKs

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.

Free tier available
Rate limited & secure
Always up-to-date

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.

GET/api/domains

List all domains for your account

POST/api/domains

Add a new domain for monitoring

GET/api/domain/{domain}/ads-txt

Get current ads.txt file content and validation status

GET/api/domain/{domain}/history

Get 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.

JavaScript Example
// 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 issues

Ready 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.