Clair API
  • All APIs
  • Pricing
  • Docs
SERP & Search
  • Google Search API
  • Google Maps API
News & Media
  • Google News API
  • Bloomberg News API
  • Associated Press API
  • Reuters News API
Jobs & Hiring
  • Glassdoor API
  • Greenhouse Jobs API
  • Indeed Jobs API
E-commerce
  • Amazon Products API
Company Data & Reviews
  • Trustpilot Reviews API
  • Product Hunt API
  • Crunchbase API
Contact & Lead Data
  • Website Contacts API
Missing a data source? Ask for one →
  • Use cases
  • Comparisons
  • Glossary
Ecommerce and reviews
  • Amazon price monitoring
  • Trustpilot review monitoring
  • MAP enforcement on Amazon
  • Amazon rating monitoring
  • Amazon category research
  • Trustpilot competitor benchmarking
Search and local
  • Google rank tracking
  • Local lead generation
  • Local SEO competitor audit
  • Grounding LLM answers in search results
  • Content research from People also ask
Leads and companies
  • Lead enrichment from company websites
  • Product Hunt launch tracking
  • Startup deal sourcing
  • Account research briefs
Jobs and hiring
  • Salary benchmarking
  • Job market analytics
  • Hiring signals for sales
  • Employer reputation tracking
News
  • Media monitoring
  • Financial news alerts
  • News corpus for research and RAG
Comparisons
  • Clair vs SerpApi
  • Clair vs Google Places API
  • Clair vs Google Custom Search API
  • Clair vs Hunter
GlossarySERPSERP APIPeople also askGoogle place IDASINBuy BoxGTINSalary percentilesTrustScoreWeb scrapingAll 40 terms →
PricingDocs
Dashboard

Use cases / Associated Press API

News corpus for research and RAG

Collect the full text of news stories on a topic, with titles, authors, and dates, as clean JSON. Search AP for the topic, read each article, and write one line per story. The same pattern works with Reuters sections and Bloomberg search.

Last updated September 28, 2026. Response excerpts are recorded from the live API.

Try the Associated Press API →

On this page

  1. Who
  2. Pipeline
  3. Code
  4. Cost
  5. Limits
  6. FAQ

Who

Who runs this, and what for

TeamWhat they decide with it
ResearchersHow a topic was covered over a period, from the text rather than the headlines.
AI engineersWhat current, sourced text to put in a retrieval index so a model can cite news.
AnalystsWhich events and entities recur in coverage of a market or region.

Pipeline

The calls, step by step

  1. 01Search the topic

    AP search takes q with sort=newest and up to 20 pages. Each result has the URL, publish time, and content type; keep articles and skip videos and galleries.

    GET /v1/search?engine=ap_news&q=hurricane&sort=newest&page=1 · results.0

    {
      "position": 1,
      "title": "Powerful Hurricane Polo drenches Mexico’s coast as Nolo takes aim at Hawaii",
      "url": "https://apnews.com/article/hurricane-polo-mexico-nolo-hawaii-a036e08f59c3f3842aaba2ee69bd9d37",
      "published_at": "2026-09-24T08:20:28.000Z",
      "authors": [],
      "content_type": "article",
      "premium": false
    }
    Recorded response. Live values differ.
  2. 02Read each article

    The article endpoint returns the story as paragraphs, with authors and section. AP stories are free to read, so body_truncated is false and the text is complete.

    GET /v1/article?engine=ap_news&url=https%3A%2F%2Fapnews.com%2Farticle%2Fhurricane-polo-mexico-nolo-hawaii-a036e08f59c3f3842aaba2ee69bd9d37 · article

    {
      "title": "Powerful Hurricane Polo drenches Mexico’s coast as Nolo takes aim at Hawaii",
      "url": "https://apnews.com/article/hurricane-polo-mexico-nolo-hawaii-a036e08f59c3f3842aaba2ee69bd9d37",
      "authors": [
        {
          "name": "Desiree Brooks",
          "url": null
        },
        {
          "name": "Megan Janetsky",
          "url": null
        }
      ],
      "section": "World News",
      "access": "free",
      "body_truncated": false,
      "paragraphs": [
        "Hurricane Polo dumped heavy rain on Mexico’s Pacific coast."
      ]
    }
    Recorded response. Live values differ.
  3. 03Store it with its source

    Keep the URL and publish time with every document. A retrieval system that cites the article, with its date, is one readers can check.

    GET /v1/article?engine=ap_news&url=https%3A%2F%2Fapnews.com%2Farticle%2Fhurricane-polo-mexico-nolo-hawaii-a036e08f59c3f3842aaba2ee69bd9d37 · article.url

    "https://apnews.com/article/hurricane-polo-mexico-nolo-hawaii-a036e08f59c3f3842aaba2ee69bd9d37"
    Recorded response. Live values differ.

Code

A script to start from

news_corpus.py

# Build a news corpus for a topic from AP: search, then read each article,
# and write one JSON line per story for analysis or a retrieval index.
import json, os, requests

API = "https://api.clair.im"
HEADERS = {"Authorization": f"Bearer {os.environ['CLAIR_API_KEY']}"}
QUERY = "hurricane"
PAGES = 5

def get(path, **params):
    r = requests.get(f"{API}{path}", headers=HEADERS, timeout=60,
                     params={"engine": "ap_news", **params})
    r.raise_for_status()
    return r.json()

urls = []
for page in range(1, PAGES + 1):
    body = get("/v1/search", q=QUERY, sort="newest", page=page)
    urls += [r["url"] for r in body["results"] if r["content_type"] == "article"]
    if not body["next_page"]:
        break

with open("corpus.jsonl", "w") as f:
    for url in dict.fromkeys(urls):  # keep order, drop repeats
        a = get("/v1/article", url=url)["article"]
        f.write(json.dumps({
            "url": a["url"], "title": a["title"], "section": a["section"],
            "authors": [x["name"] for x in a["authors"]],
            "text": "\n\n".join(a["paragraphs"]),
        }) + "\n")

Set CLAIR_API_KEY to a key subscribed to the Associated Press API. Each call is one request against that API's monthly quota.

Cost

What it costs per month

ScheduleRequestsPlanPer monthPer 1,000
One topic, 100 articles5 search pages plus 100 article calls = 105 requests.105Pay as you go$0.63$6
10 topics, 200 articles each10 × (10 search pages + 200 articles) = 2,100 requests.2,100Pay as you go$12.60$6
Daily top-up: 30 new articles a dayOne search page and 30 articles a day for 30 days = 930 requests.930Pay as you go$5.58$6
The cheapest Clair plan for each volume: the monthly fee plus overage past the included requests. USD, before tax. The free tier covers 200 requests a month for trying the pipeline.

Limits

What to plan for

  • Rights stay with AP. Analysis, research, and retrieval with citations are the usual uses; republishing stories needs an AP license.
  • AP search goes back as far as AP's site search does, up to 20 pages per query. For longer periods, run narrower queries.
  • Section and topic hub pages mix in most-read and right-rail cards. Search results are cleaner for a corpus.

FAQ

Common questions

Can I use Reuters or Bloomberg the same way?

Yes, with limits. Reuters has no keyword search, so list sections or authors. Bloomberg search works, but metered stories return only their public paragraphs.

What format should the corpus be?

JSON lines, one story per line with url, title, date, and text, loads into most analysis and embedding tools without conversion.

How do I avoid duplicates?

Deduplicate on the article URL. AP updates stories in place, so re-reading a URL later gives the latest version.

Related

Keep reading

APIs

  • Associated Press API

Glossary

  • Retrieval-augmented generation (RAG)
  • Wire service

Run it on your own products

200 requests a month free on each API, no card. Enough to run the pipeline on a short list before choosing a plan.

Get API Key →Compare plans
Clair API

Live data APIs for search, news, jobs, marketplaces, companies, reviews, and website contacts. Each call fetches the page and returns clean JSON.

contact@serinlabs.com@clair_api

APIs

SERP & Search
  • Google Search API
  • Google Maps API
News & Media
  • Google News API
  • Bloomberg News API
  • Associated Press API
  • Reuters News API
Jobs & Hiring
  • Glassdoor API
  • Greenhouse Jobs API
  • Indeed Jobs API
E-commerce
  • Amazon Products API
Company Data & Reviews
  • Trustpilot Reviews API
  • Product Hunt API
  • Crunchbase API
Contact & Lead Data
  • Website Contacts API

Use cases

Ecommerce and reviews
  • Amazon price monitoring
  • Trustpilot review monitoring
  • MAP enforcement on Amazon
  • Amazon rating monitoring
  • Amazon category research
  • Trustpilot competitor benchmarking
Search and local
  • Google rank tracking
  • Local lead generation
  • Local SEO competitor audit
  • Grounding LLM answers in search results
  • Content research from People also ask
Leads and companies
  • Lead enrichment from company websites
  • Product Hunt launch tracking
  • Startup deal sourcing
  • Account research briefs
Jobs and hiring
  • Salary benchmarking
  • Job market analytics
  • Hiring signals for sales
  • Employer reputation tracking
News
  • Media monitoring
  • Financial news alerts
  • News corpus for research and RAG

Compare and learn

Comparisons
  • Clair vs SerpApi
  • Clair vs Google Places API
  • Clair vs Google Custom Search API
  • Clair vs Hunter
Glossary
  • SERP
  • SERP API
  • People also ask
  • Google place ID
  • ASIN
  • Buy Box
  • All 40 terms
Developers
  • Documentation
  • Quickstart
  • API catalog
  • Pricing
  • All resources
© 2026 Serin Technologies, LLC
  • Terms of Service
  • Privacy Policy