{
  "@context": "https://agentflare.org/schema",
  "type": "Article",
  "tier": "L2-full",
  "title": "Using AgentFlare Newswire and Markets Data",
  "description": "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…",
  "canonical": "https://agentflare.org/guides/using-agentflare-newswire-and-markets-data.html",
  "category": "guides",
  "updated": "2026-11-21",
  "generated_at": "2026-11-21T00:37:02.004Z",
  "facts": [
    {
      "label": "Track",
      "value": "Using AgentFlare data"
    },
    {
      "label": "Level",
      "value": "Beginner"
    },
    {
      "label": "Access",
      "value": "Free / open"
    },
    {
      "label": "Updated",
      "value": "2026-11-21"
    }
  ],
  "data": {
    "topic": "Using AgentFlare Newswire and Markets Data",
    "track": "data",
    "access": "free",
    "generated_at": "2026-11-21T00:37:02.004Z",
    "difficulty": "Beginner",
    "tldr": "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.",
    "intro": "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.",
    "prerequisites": [
      "An AISA crawler token registered at esa.aisa.one",
      "curl and Python 3 with the requests package",
      "Basic familiarity with reading JSON"
    ],
    "steps": [
      {
        "title": "Choose the dataset and archive URL",
        "body": "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.",
        "code": {
          "lang": "text",
          "text": "https://agentflare.org/news/index.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-ai.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-crypto.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-earnings.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-macro.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-markets.data.json\nhttps://agentflare.org/markets/index.data.json\nhttps://agentflare.org/markets/YYYY-MM-DD.data.json\nhttps://agentflare.org/markets/xom.data.json"
        },
        "sources": [
          "S2",
          "S3"
        ]
      },
      {
        "title": "Check the per-request price",
        "body": "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.",
        "code": null,
        "sources": [
          "S4",
          "S5"
        ]
      },
      {
        "title": "Fetch a dated file with your token",
        "body": "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.",
        "code": {
          "lang": "bash",
          "text": "curl -s \\\n  -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \\\n  https://agentflare.org/news/YYYY-MM-DD-ai.data.json\n\ncurl -s \\\n  -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \\\n  https://agentflare.org/markets/YYYY-MM-DD.data.json"
        },
        "sources": [
          "S1",
          "S4",
          "S5"
        ]
      },
      {
        "title": "Read the newswire data object",
        "body": "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.",
        "code": {
          "lang": "python",
          "text": "import requests\n\nurl = 'https://agentflare.org/news/YYYY-MM-DD-ai.data.json'\nheaders = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}\nd = requests.get(url, headers=headers).json()['data']\n\nprint(d['headline'], d['freshness_hours'])\nfor s in d['stories']:\n    print(s['title'], '-', s['why'])\nfor m in d['market']:\n    print(m['id'], m['last'], m['d1'], m['d30'])\nfor i in d['items']:\n    print(i['source'], i['title'], i['url'])"
        },
        "sources": [
          "S2"
        ]
      },
      {
        "title": "Read the markets data object",
        "body": "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.",
        "code": {
          "lang": "python",
          "text": "import requests\n\nurl = 'https://agentflare.org/markets/YYYY-MM-DD.data.json'\nheaders = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}\nd = requests.get(url, headers=headers).json()['data']\n\nprint(d['count'], d['advancers'], d['decliners'])\nfor sec in d['sectors']:\n    print(sec['label'], sec['value'], sec['n'])\nfor s in d['stocks']:\n    print(s['ticker'], s['price_usd'], s['day_change_pct'],\n          s['return_6m_pct'], s['market_cap_usd'], s['pe'], s['sector'])"
        },
        "sources": [
          "S3"
        ]
      }
    ],
    "reference": {
      "title": "Newswire and markets files at a glance",
      "columns": [
        "File",
        "URL pattern",
        "Price per request",
        "Key data fields"
      ],
      "rows": [
        [
          "Newswire index",
          "/news/index.data.json",
          "0.005 USD",
          "data.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 USD",
          "headline, dek, stories, market, prediction_markets, watch, takeaways, faq, items"
        ],
        [
          "Newswire item",
          "/news/<slug>.data.json",
          "0.005 USD",
          "One file per item"
        ],
        [
          "Markets index",
          "/markets/index.data.json",
          "0.01 USD",
          "count, advancers, decliners, sectors, stocks"
        ],
        [
          "Markets daily",
          "/markets/YYYY-MM-DD.data.json",
          "0.01 USD",
          "count, advancers, decliners, sectors, stocks"
        ],
        [
          "Markets per ticker",
          "/markets/xom.data.json",
          "0.01 USD",
          "price_usd, day_change_pct, returns_pct (m1, m3, m6), metrics, company"
        ]
      ],
      "sources": [
        "S2",
        "S3",
        "S4"
      ]
    },
    "pitfalls": [
      {
        "text": "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.",
        "source": "S2"
      },
      {
        "text": "Do not send the crawler token as Authorization: Bearer. Use the X-Crawler-Token header; the older X-AISA-Crawler-Token name is superseded.",
        "source": "S1"
      },
      {
        "text": "Markets files are priced at 0.01 USD per request, double the 0.005 USD newswire rate, so budget loops over many tickers accordingly.",
        "source": "S4"
      },
      {
        "text": "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.",
        "source": "S4"
      }
    ],
    "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": [
      {
        "q": "How much does an AgentFlare .data.json request cost?",
        "a": "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."
      },
      {
        "q": "Which header carries the crawler token?",
        "a": "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."
      },
      {
        "q": "What are the dated archive URLs for newswire and markets?",
        "a": "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."
      },
      {
        "q": "Which fields does a markets stock row contain?",
        "a": "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."
      }
    ],
    "sources": [
      {
        "title": "Header name: X-Crawler-Token",
        "url": "https://esa.aisa.one/cdn/open-verify.html",
        "domain": "esa.aisa.one"
      },
      {
        "title": "AgentFlare Newswire .data.json field reference",
        "url": "https://agentflare.org/news/index.html",
        "domain": "agentflare.org"
      },
      {
        "title": "AgentFlare Markets .data.json field reference",
        "url": "https://agentflare.org/markets/index.html",
        "domain": "agentflare.org"
      },
      {
        "title": "AgentFlare pricing.json (directory price map)",
        "url": "https://agentflare.org/pricing.json",
        "domain": "agentflare.org"
      },
      {
        "title": "AgentFlare llms.txt (header and structure)",
        "url": "https://agentflare.org/llms.txt",
        "domain": "agentflare.org"
      }
    ]
  },
  "analysis_md": "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.\n\nThis 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.\n\n## Before you start\n\n- An AISA crawler token registered at esa.aisa.one\n- curl and Python 3 with the requests package\n- Basic familiarity with reading JSON\n\n## Step by step\n\n### 1. Choose the dataset and archive URL\n\nNewswire 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.\n\n```text\nhttps://agentflare.org/news/index.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-ai.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-crypto.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-earnings.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-macro.data.json\nhttps://agentflare.org/news/YYYY-MM-DD-markets.data.json\nhttps://agentflare.org/markets/index.data.json\nhttps://agentflare.org/markets/YYYY-MM-DD.data.json\nhttps://agentflare.org/markets/xom.data.json\n```\n\n### 2. Check the per-request price\n\nEvery .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.\n\n### 3. Fetch a dated file with your token\n\nSend 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.\n\n```bash\ncurl -s \\\n  -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \\\n  https://agentflare.org/news/YYYY-MM-DD-ai.data.json\n\ncurl -s \\\n  -H 'X-Crawler-Token: YOUR_CRAWLER_TOKEN' \\\n  https://agentflare.org/markets/YYYY-MM-DD.data.json\n```\n\n### 4. Read the newswire data object\n\nIn 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.\n\n```python\nimport requests\n\nurl = 'https://agentflare.org/news/YYYY-MM-DD-ai.data.json'\nheaders = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}\nd = requests.get(url, headers=headers).json()['data']\n\nprint(d['headline'], d['freshness_hours'])\nfor s in d['stories']:\n    print(s['title'], '-', s['why'])\nfor m in d['market']:\n    print(m['id'], m['last'], m['d1'], m['d30'])\nfor i in d['items']:\n    print(i['source'], i['title'], i['url'])\n```\n\n### 5. Read the markets data object\n\nA 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.\n\n```python\nimport requests\n\nurl = 'https://agentflare.org/markets/YYYY-MM-DD.data.json'\nheaders = {'X-Crawler-Token': 'YOUR_CRAWLER_TOKEN'}\nd = requests.get(url, headers=headers).json()['data']\n\nprint(d['count'], d['advancers'], d['decliners'])\nfor sec in d['sectors']:\n    print(sec['label'], sec['value'], sec['n'])\nfor s in d['stocks']:\n    print(s['ticker'], s['price_usd'], s['day_change_pct'],\n          s['return_6m_pct'], s['market_cap_usd'], s['pe'], s['sector'])\n```\n\n## Newswire and markets files at a glance\n\n| File | URL pattern | Price per request | Key data fields |\n| --- | --- | --- | --- |\n| Newswire index | /news/index.data.json | 0.005 USD | data.date, data.digests[] with date, cluster, headline, url, stories |\n| Newswire daily category | /news/YYYY-MM-DD-ai.data.json (also crypto, earnings, macro, markets) | 0.005 USD | headline, dek, stories, market, prediction_markets, watch, takeaways, faq, items |\n| Newswire item | /news/<slug>.data.json | 0.005 USD | One file per item |\n| Markets index | /markets/index.data.json | 0.01 USD | count, advancers, decliners, sectors, stocks |\n| Markets daily | /markets/YYYY-MM-DD.data.json | 0.01 USD | count, advancers, decliners, sectors, stocks |\n| Markets per ticker | /markets/xom.data.json | 0.01 USD | price_usd, day_change_pct, returns_pct (m1, m3, m6), metrics, company |\n\n## Common pitfalls\n\n- 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.\n- Do not send the crawler token as Authorization: Bearer. Use the X-Crawler-Token header; the older X-AISA-Crawler-Token name is superseded.\n- Markets files are priced at 0.01 USD per request, double the 0.005 USD newswire rate, so budget loops over many tickers accordingly.\n- 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.\n\n## Key takeaways\n\n- Newswire .data.json files cost 0.005 USD per request; markets .data.json files cost 0.01 USD per request.\n- 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.\n- Authenticate with X-Crawler-Token, never Authorization: Bearer, and read results from the data object.\n\n## FAQ\n\n**How much does an AgentFlare .data.json request cost?**\nNewswire 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.\n\n**Which header carries the crawler token?**\nUse 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.\n\n**What are the dated archive URLs for newswire and markets?**\nNewswire 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.\n\n**Which fields does a markets stock row contain?**\nEach 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.\n",
  "sources": [
    {
      "title": "Header name: X-Crawler-Token",
      "url": "https://esa.aisa.one/cdn/open-verify.html"
    },
    {
      "title": "AgentFlare Newswire .data.json field reference",
      "url": "https://agentflare.org/news/index.html"
    },
    {
      "title": "AgentFlare Markets .data.json field reference",
      "url": "https://agentflare.org/markets/index.html"
    },
    {
      "title": "AgentFlare pricing.json (directory price map)",
      "url": "https://agentflare.org/pricing.json"
    },
    {
      "title": "AgentFlare llms.txt (header and structure)",
      "url": "https://agentflare.org/llms.txt"
    }
  ],
  "related": [
    {
      "name": "Reading .data.json: A Field Guide for Agents",
      "url": "https://agentflare.org/guides/reading-datajson-a-field-guide-for-agents.html"
    },
    {
      "name": "Building an Agent-Readable Site: HTML, Markdown and .data.json",
      "url": "https://agentflare.org/guides/building-an-agent-readable-site-html-markdown-and-datajson.html"
    }
  ],
  "pricing": {
    "price_usd": 0,
    "method": "402",
    "endpoint": "https://esa.aisa.one/api/v1/access/verify",
    "autopay_hint": "set crawlerAutoPrice=true with the X-Crawler-Token header",
    "onboarding": "https://esa.aisa.one/agent/guide.html"
  },
  "powered_by": "AISA — agent-native search, settlement & delivery (https://aisa.one)"
}