Skip to content
GET /v1/check

Fetch & parse a domain's ads.txt

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/adstxt-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/adstxt-api/v1/check" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/adstxt-api/v1/check", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/adstxt-api/v1/check");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/adstxt-api/v1/check",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "url": "https://theguardian.com/ads.txt",
        "found": true,
        "counts": {
            "direct": 43,
            "comments": 29,
            "reseller": 53,
            "advertising_systems": 34
        },
        "domain": "theguardian.com",
        "records": [
            {
                "publisher_id": "pub-2012933198307164",
                "relationship": "DIRECT",
                "advertising_system": "google.com",
                "certification_authority_id": null
            },
            {
                "publisher_id": "3722",
                "relationship": "DIRECT",
                "advertising_system": "aps.amazon.com",
                "certification_authority_id": null
            },
            {
                "publisher_id": "2888",
                "relationship": "DIRECT",
                "advertising_system": "appnexus.com",
                "certification_authority_id": null
            },
            {
                "publisher_id": "7012",
                "relationship": "DIRECT",
                "advertising_system": "appnexus.com",
                "certification_authority_id": null
            },
            {
                "publisher_id": "184842",
                "relationship": "DIRECT",
                "advertising_system": "indexexchange.com",
                "certification_authority_id": "50b1c356f2c5c8fc"
            },
            {
                "publisher_id": "185406",
                "relationship": "DIRECT",
                "advertising_system": "indexexchange.com",
                "certification_authority_id": "50b1c356f2c5c8fc"
            },
            {
                "publisher_id": "205118",
                "relationship": "DIRECT",
                "advertising_system": "indexexchange.com",
                "certification_authority_id": "50b1c356f2c5c8fc"
            },
            {
                "publisher_id": "205545",
                "relationship": "DIRECT",
                "advertising_system": "indexexchange.com",
                "certification_authority_id": "50b1c356f2c5c8fc"
            },
            {
                "publisher_id": "157189",
                "relationship": "DIRECT",
                "advertising_system": "pubmatic.com",
                "certification_authority_id": "5d62403b186f2ace"
            },
            {
                "publisher_id": "157207",
                "relationship": "DIRECT",
                "advertising_system": "pubmatic.com",
                "certification_authority_id": "5d62403b186f2ace"
            },
            {
                "publisher_id": "157203",
                "relationship": "DIRECT",
                "advertising_system": "pubmatic.com",
                "certification_authority_id": "5d62403b186f2ace"
            },
            {
                "publisher_id": "157206",
                "relationship": "DIRECT",
                "advertising_system": "pubmatic.com",
                "certifica
…