AgentFlare

Guides · Using AgentFlare data · Beginner

Using AgentFlare Newswire and Markets Data

AgentFlare serves newswire data at 0.005 USD per request and markets data at 0.01 USD per request, as dated .data.json files. Fetch them with an X-Crawler-Token header and read the data object field by field.

LevelBeginner
Reading time6 min
Steps54 with code
Sources5primary docs
✓ Open accessFree

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.

⚡ Agents: fetch .data.json → agents: allowed (no charge) · verify at https://esa.aisa.one/api/v1/access/verify

This guide is for developers and agent builders who want structured AgentFlare data instead of scraping article pages. You will learn which dated and per-item .data.json files exist under /news/ and /markets/, what each field in them holds, and what one request costs. You will also fetch a file with curl, then read the newswire stories, the market series and the markets stock list in Python. The guide uses only the published field references and the pricing map, so every path and field name can be copied as written.

How the flow works

Using AgentFlare dataDrawn from the AISA agent and publisher documentation
Reading AgentFlare data: free discovery, then paid datasets: 1. Your agent to AgentFlare: read llms.txt, pricing.json, .md; 2. AgentFlare to Your agent: summaries + prices, $0; 3. Your agent to AgentFlare: GET .data.json + crawler token; 4. AgentFlare to Your agent: 200 full dataset, priced per requestYour agentAgentFlarefree tierAgentFlarepaid tier1. read llms.txt, pricing.json, .md2. summaries + prices, $03. GET .data.json + crawler token4. 200 full dataset, priced per request
Price per paid request, by directoryAgentFlare pricing.json · deep files (.data.json, .full.md) only; HTML and .md are free
USD per request: /research/ $0.02, /scholar/ $0.02, /crypto/ $0.01, /markets/ $0.01, /social/ $0.01, /predictions/ $0.01, /news/ $0.005/research/$0.02/scholar/$0.02/crypto/$0.01/markets/$0.01/social/$0.01/predictions/$0.01/news/$0.005

Before you start

  • An AISA crawler token registered at esa.aisa.one
  • curl and Python 3 with the requests package
  • Basic familiarity with reading JSON

Step by step

  1. Choose the dataset and archive URL

    Newswire files live in /news/ and markets files in /markets/. Newswire has one file per day per category: ai, crypto, earnings, macro and markets. Markets has one file per day plus one file per ticker. Both directories also have an index.data.json, and newswire adds one file per item under its slug. Replace YYYY-MM-DD with the date you want.

    text
    https://agentflare.org/news/index.data.json
    https://agentflare.org/news/YYYY-MM-DD-ai.data.json
    https://agentflare.org/news/YYYY-MM-DD-crypto.data.json
    https://agentflare.org/news/YYYY-MM-DD-earnings.data.json
    https://agentflare.org/news/YYYY-MM-DD-macro.data.json
    https://agentflare.org/news/YYYY-MM-DD-markets.data.json
    https://agentflare.org/markets/index.data.json
    https://agentflare.org/markets/YYYY-MM-DD.data.json
    https://agentflare.org/markets/xom.data.json
  2. Check the per-request price

    Every .data.json and .full.md file is a paid L2 payload, metered per request through the verify endpoint. The pricing map sets newswire at 0.005 USD and markets at 0.01 USD per request. The .html and .md teasers, index pages, llms.txt, sitemap.xml and robots.txt stay free. Each data file also carries a pricing object with price_usd, method, endpoint, autopay_hint and onboarding.

  3. Fetch a dated file with your token

    Send your crawler identity in the X-Crawler-Token header, which replaces the earlier name X-AISA-Crawler-Token still shown on older AISA pages. Do not put the token in Authorization: Bearer, which is reserved for the gateway layer. To let the HTTP 402 payment settle automatically, set crawlerAutoPrice=true as the llms.txt file describes.

    bash
    curl -s \
      -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \
      https://agentflare.org/news/YYYY-MM-DD-ai.data.json
    
    curl -s \
      -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \
      https://agentflare.org/markets/YYYY-MM-DD.data.json
  4. Read the newswire data object

    In a daily newswire file, data holds date, cluster, headline, dek, generated_at and freshness_hours. Each entry in data.stories has title, summary, why, sources and entities. data.market lists id, kind, last, asOf, d1 and a series array; the ai file adds d30 while the crypto file adds symbol, name and d7. data.items lists the underlying links.

    python
    import requests
    
    url = 'https://agentflare.org/news/YYYY-MM-DD-ai.data.json'
    headers = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}
    d = requests.get(url, headers=headers).json()['data']
    
    print(d['headline'], d['freshness_hours'])
    for s in d['stories']:
        print(s['title'], '-', s['why'])
    for m in d['market']:
        print(m['id'], m['last'], m['d1'], m['d30'])
    for i in d['items']:
        print(i['source'], i['title'], i['url'])
  5. Read the markets data object

    A daily markets file has data.count, data.advancers and data.decliners, a data.sectors list of label, value and n, and a data.stocks list. Each stock has ticker, price_usd, day_change_pct, return_6m_pct, market_cap_usd, pe and sector. A per-ticker file such as xom.data.json instead has returns_pct, metrics and company objects.

    python
    import requests
    
    url = 'https://agentflare.org/markets/YYYY-MM-DD.data.json'
    headers = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}
    d = requests.get(url, headers=headers).json()['data']
    
    print(d['count'], d['advancers'], d['decliners'])
    for sec in d['sectors']:
        print(sec['label'], sec['value'], sec['n'])
    for s in d['stocks']:
        print(s['ticker'], s['price_usd'], s['day_change_pct'],
              s['return_6m_pct'], s['market_cap_usd'], s['pe'], s['sector'])

Newswire and markets files at a glance

FileURL patternPrice per requestKey data fields
Newswire index/news/index.data.json0.005 USDdata.date, data.digests[] with date, cluster, headline, url, stories
Newswire daily category/news/YYYY-MM-DD-ai.data.json (also crypto, earnings, macro, markets)0.005 USDheadline, dek, stories, market, prediction_markets, watch, takeaways, faq, items
Newswire item/news/<slug>.data.json0.005 USDOne file per item
Markets index/markets/index.data.json0.01 USDcount, advancers, decliners, sectors, stocks
Markets daily/markets/YYYY-MM-DD.data.json0.01 USDcount, advancers, decliners, sectors, stocks
Markets per ticker/markets/xom.data.json0.01 USDprice_usd, day_change_pct, returns_pct (m1, m3, m6), metrics, company

Common pitfalls

  • The newswire d-fields differ by category: the ai market rows carry d1 and d30, while the crypto market rows carry d1 and d7 plus symbol and name.
  • Do not send the crawler token as Authorization: Bearer. Use the X-Crawler-Token header; the older X-AISA-Crawler-Token name is superseded.
  • Markets files are priced at 0.01 USD per request, double the 0.005 USD newswire rate, so budget loops over many tickers accordingly.
  • Only .data.json and .full.md files are metered. The .html and .md teasers are free, so do not pay for data you only need to skim.

Key takeaways

  • Newswire .data.json files cost 0.005 USD per request; markets .data.json files cost 0.01 USD per request.
  • Dated URLs follow /news/YYYY-MM-DD-ai.data.json and /markets/YYYY-MM-DD.data.json, with per-item and per-ticker files alongside.
  • Authenticate with X-Crawler-Token, never Authorization: Bearer, and read results from the data object.

FAQ

How much does an AgentFlare .data.json request cost?

Newswire files under /news/ cost 0.005 USD per request. Markets files under /markets/ cost 0.01 USD per request. Billing is per request, and the same price applies to the matching .full.md files.

Which header carries the crawler token?

Use X-Crawler-Token. It replaces the earlier X-AISA-Crawler-Token that older AISA pages still show. Never send the token in Authorization: Bearer, which is reserved for the gateway layer.

What are the dated archive URLs for newswire and markets?

Newswire uses https://agentflare.org/news/YYYY-MM-DD-ai.data.json, with crypto, earnings, macro and markets in place of ai. Markets uses https://agentflare.org/markets/YYYY-MM-DD.data.json. Replace YYYY-MM-DD with the date.

Which fields does a markets stock row contain?

Each entry in data.stocks has ticker, price_usd, day_change_pct, return_6m_pct, market_cap_usd, pe and sector. The file also has count, advancers, decliners and a sectors list of label, value and n.

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

  1. Header name: X-Crawler-Token esa.aisa.one
  2. AgentFlare Newswire .data.json field reference agentflare.org
  3. AgentFlare Markets .data.json field reference agentflare.org
  4. AgentFlare pricing.json (directory price map) agentflare.org
  5. AgentFlare llms.txt (header and structure) agentflare.org