Validate ads.txt and sellers.json Over the API, With 1,000 Free Tokens

3rd November 2026

The ads.txt Guru API can check an ads.txt file, check a sellers.json file, and compare a list of domains against the records they should carry, from your own code. Those three tools no longer need a subscription: you pay per call with tokens, and the first 1,000 tokens are free once you verify your email address. This post covers what a call costs, the new sellers.json endpoint, and the tools that make building against the API easier.

Three tools, paid per call
  • validate/adstxt checks an ads.txt or app-ads.txt file, line by line, with the same rules as our free validator.
  • validate/sellersjson checks the sellers.json file an SSP, exchange or ad network publishes, against the IAB Tech Lab's Sellers.json 1.0.
  • compare/adstxt takes the ads.txt records you expect and a list of domains, and checks whether each domain's live file includes them.

All three are paid for with tokens, bought in advance in the Integrate section of your account. No plan is needed for them: a free Basic account with tokens can call all three.

What a call costs
  • validate/adstxt or validate/sellersjson with the file in the request: 1 token, because there is nothing for us to fetch.
  • Either of them with a url: 2 tokens, because we fetch the file first and then check it.
  • compare/adstxt: 1 token per domain in the list, because each domain is a separate request to that domain's web server. One call carries up to 100 domains, the same limit for every caller.

A call is charged when it runs, not when it succeeds: a domain that does not resolve or times out still cost the request. What you are never charged for is work we did not do. A domain we decline to fetch, or one we ran out of time to reach, is settled back out of the cost, and compare/adstxt reports what it charged and what it did not with the results.

Every metered response carries X-Tokens-Cost and X-Tokens-Balance headers with the settled figures, so a client can pace itself instead of waiting to be refused.

Packs, and how long tokens last
  • Starter: 10,000 tokens for $10, enough to check 10,000 domains.
  • Standard: 60,000 tokens for $45.
  • Growth: 250,000 tokens for $150.

Tokens are valid for 365 days from your most recent purchase, so topping up keeps everything you hold. When your balance falls to 500 or below we email you, so an integration does not stop without warning. The API Token Terms are the contract tokens are sold under.

On the Ad Network plan the whole API is included and nothing is metered, so you do not need tokens at all. Every response's X-Tokens-Metered header says which applies: 0 means your plan covers the call.

New: sellers.json over the API

validate/sellersjson is the API version of our free sellers.json validator (introduced here). Send the file as data, or send a domain as url and we fetch its sellers.json, following the specification's redirect rules. The answer has:

  • an overall outcome and counts of errors, warnings and notices;
  • when we fetched it, what the fetch did: the address, the final address after redirects, the HTTP status, the content type and the time taken;
  • each problem as a finding with a stable key, its level and its IAB code, the number of sellers it applies to, and the first few by position and seller_id.

The key, level and IAB code are what to build on. The title and detail are the same sentences the results page shows, and we may reword them.

New: every ads.txt line checked against its sellers.json

validate/adstxt now also checks each record line against the advertising system's own sellers.json, which is the check the IAB Tech Lab's supply chain validation asks a validator to make. Every line with no error gains a sellers_json block saying whether the advertising system lists the account ID, what it lists it as, and anything that does not match, each finding with its IAB Tech Lab code: a DIRECT line whose account is listed as an intermediary (12050), a RESELLER line whose account is listed as a publisher (13050), an account ID the advertising system does not list at all (12020 or 13020).

It changes nothing else in the answer. The findings are never counted in a line's errors or in error_count, so a file that was valid stays valid: an account the advertising system does not list is often the reseller's to fix, not the publisher's. We read the sellers.json of every advertising system in our registry each night and check against that copy, so it costs no extra tokens. What the sellers.json check means goes through each result.

Try a call in your browser first

The API explorer lists every endpoint, parameter and response, and lets you send a real request from the page: expand an endpoint, choose Try it out and fill in your key, your secret and the parameters. Requests go to the live API and act on your real account. Your credentials are not stored; they stay in the page for as long as it is open.

The explorer is built from the specification the API publishes about itself, at /api/openapi.json (and YAML), so it describes the API as it is deployed today. You can generate a client from the same file. The written documentation has the worked examples and explains when to use each endpoint.

Keep your secret out of URLs

You can send your credentials as two headers, X-API-Key and X-API-Secret, instead of as parameters. A key and secret sent in a URL end up in web server logs along the way; headers do not. The parameter form still works, so nothing you have built needs to change. Every endpoint accepts POST, and the three tools above are POST only, because the files you send them do not fit in a URL.

See what your keys have been doing

The API Activity page under Integrate lists every request made with your credentials: when, the action, the domain or group it acted on, the endpoint, the result, which key made it and where it came from. It shows the requests that changed something by default, which is what you want when you are asking how a record disappeared, and every request on demand. Changes are kept indefinitely, though the address a change came from is cleared after 12 months; requests that only read data are kept for at least 90 days. Below the list, a usage table counts the last 90 days of requests by endpoint.

Getting started
  1. Create a free account and verify your email address. The 1,000 tokens are credited when you verify.
  2. Open Integrate to find your API key and secret.
  3. Try a call in the explorer, then move it into your code.

Get 1,000 free tokens →

Already a customer? Open Integrate for your key, your token balance and your API activity.