Guides · For publishers · Beginner
robots.txt, llms.txt & Sitemaps for AI Crawlers
AgentFlare keeps robots.txt, llms.txt, sitemap.xml and pricing.json free and open, so an agent can learn the rules and prices before paying. Only .data.json and .full.md files are metered per crawl.
You're reading the full report — free for humans. The machine-readable dataset for this section is open to all agents too — no payment required.
https://esa.aisa.one/api/v1/access/verify
This guide is for publishers who want AI crawlers to find their content and for agent developers who need to read a site before spending money. You will fetch the free discovery files in the order an agent does, interpret what robots.txt, llms.txt and pricing.json say, tell free teasers from paid deep payloads, and send the crawler header correctly. You will also see how AgentFlare publishes the same files, so you can mirror the pattern on your own site and tie it to directory pricing.
How the flow works
Before you start
- curl installed on your machine
- A publisher site or a target site to inspect
- An AISA crawler token only for the paid fetch step
Step by step
Read robots.txt first
robots.txt is the first free file an agent reads. AgentFlare opens the whole site to AI crawlers: the wildcard group and named groups for GPTBot, ClaudeBot, PerplexityBot, Google-Extended, CCBot, Bytespider, Googlebot and Bingbot each carry Allow: /. The last line, Sitemap: https://agentflare.org/sitemap.xml, points to the sitemap. Allowing crawling here does not make deep data free; pricing is enforced separately.
bash curl -s https://agentflare.org/robots.txtFollow llms.txt to the map
llms.txt is a map written for machines. It says every article exists at one path in three forms: HTML, a free Markdown teaser (.md), and a metered .data.json / .full.md (L2). It names the verify endpoint https://esa.aisa.one/api/v1/access/verify, tells agents to set crawlerAutoPrice=true with an X-Crawler-Token header (this replaces the earlier X-AISA-Crawler-Token), and links pricing.json. Each section has its own llms.txt.
bash curl -s https://agentflare.org/llms.txtCheck pricing.json before fetching
pricing.json is the directory price map. Its tiers field splits L1_free (index pages, .html articles, .md teasers, llms.txt, sitemap.xml, robots.txt) from L2_paid (*.data.json and *.full.md). directory_pricing_usd lists a price per directory, and rules gives a urlPattern, mode, price and priority for each. Anything not matched stays free because default_mode is allow. Fetching this file costs nothing.
bash curl -s https://agentflare.org/pricing.jsonFetch the free teaser, then the paid file
Request the .md teaser with no token; it is free. For the deep payload, add the X-Crawler-Token header and an honest User-Agent. One request is at most one charge, and fetching the same URL twice charges twice. Never send the crawler token in Authorization: Bearer, which is reserved for the gateway layer. Keep the token out of logs and show only a prefix.
bash # free teaser curl -s https://PUBLISHER-SITE/research/report.md # paid deep payload curl https://PUBLISHER-SITE/research/report.data.json \ -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \ -A 'MyBot/1.0 (+https://example.com/bot)'Handle 402 and 403 responses
A 402 means payment-side action is needed. Read the error field: invalid_token means register or fix the header, and insufficient_balance means top up and retry. Denials never charge. A 403 access_blocked is a publisher policy choice, and payment does not unlock it. Do not retry that URL; instead pivot to the purchasable pay-mode directories listed in the site's pricing.json. On AgentFlare, the members directory is the blocked one.
bash curl -i https://PUBLISHER-SITE/members/page.data.json \ -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' # a 403 access_blocked means: do not retry, read pricing.json instead curl -s https://PUBLISHER-SITE/pricing.jsonPublish the same files on your site
Mirror the AgentFlare pattern. Keep robots.txt, llms.txt, sitemap.xml and pricing.json open as the free tier, and add a Sitemap line to robots.txt. Put paid rules only on .data.json and .full.md paths. AgentFlare's notes say to import the rules array into cdn-agent Content Controls (ai_publisher_rules), where patternType, mode, price, billingType and priority map 1:1 to the publisher rule schema.
text User-agent: * Allow: / User-agent: GPTBot Allow: / Sitemap: https://PUBLISHER-SITE/sitemap.xml
AgentFlare tiers and directory prices
| Path or directory | Mode | Price USD |
|---|---|---|
robots.txt, llms.txt, sitemap.xml, .html, .md teasers | L1_free | 0 |
/news/ .data.json and .full.md | pay | 0.005 |
/crypto/, /markets/, /social/, /predictions/ | pay | 0.01 |
/research/ and /scholar/ | pay | 0.02 |
/guides/ .data.json and .full.md | allow | 0 |
/members/ .data.json and .full.md | block | 0 |
Common pitfalls
- Allow: / in robots.txt only permits crawling. Deep .data.json and .full.md files are still priced by the rules in pricing.json.
- Do not send the crawler token in Authorization: Bearer. That header is reserved for the gateway layer; the token belongs in X-Crawler-Token.
- Do not top up or retry after a 403 access_blocked. It is a publisher policy, and payment does not unlock the resource.
- Fetching a priced URL twice charges twice. Read pricing.json first and cache what you pay for.
Key takeaways
- Discovery files are free: robots.txt, llms.txt, sitemap.xml and pricing.json let an agent learn rules and prices before paying.
- Teasers (.html, .md) are open for SEO and GEO; only .data.json and .full.md are metered per crawl.
- Send X-Crawler-Token with an honest User-Agent; on 403 access_blocked, pivot to the pay-mode directories in pricing.json.
FAQ
What does an AI agent read first on a publisher site?
The free discovery files: robots.txt for crawl permissions and the sitemap link, llms.txt for the site map and access instructions, and pricing.json for the directory price map. All three cost nothing to fetch.
Does allowing GPTBot in robots.txt make my deep data free?
No. AgentFlare allows many AI crawlers in robots.txt, yet .data.json and .full.md files in priced directories are metered per crawl through the rules in pricing.json.
Which header identifies my crawler?
X-Crawler-Token. Send it with your genuine User-Agent on requests to publisher sites. Without it, priced resources answer 402. Do not use Authorization: Bearer for the crawler token.
How do I see what a directory costs?
Fetch pricing.json and read directory_pricing_usd or the rules array. On AgentFlare, news is 0.005, research and scholar are 0.02, and crypto, markets, social and predictions are 0.01.
How this page is made. Written from 5 primary sources — the AISA agent and publisher documentation and AgentFlare's own files (pricing.json, robots.txt, llms.txt, live responses, .data.json field lists). Each step links the sources it relies on; steps naming a header, endpoint, error code or figure that the sources do not contain are removed. Refreshed weekly.
Sources & citations
- Header name: X-Crawler-Token esa.aisa.one
- AgentFlare robots.txt agentflare.org
- AgentFlare llms.txt (header and structure) agentflare.org
- AgentFlare pricing.json (directory price map) agentflare.org
- AISA Agent Integration Guide — API reference esa.aisa.one