Discover/AFP API
live

AFP APIafp.com

Access AFP wire news ticker, AFP Factuel fact-check articles, keyword search, region and topic filters, and trending topics via 9 structured endpoints.

Endpoint health
verified 4d ago
get_afp_content_categories
search_factcheck_articles
get_homepage_news_ticker
get_factcheck_homepage
get_factcheck_article
9/9 passing latest checkself-healing
Endpoints
9
Updated
26d ago

What is the AFP API?

The AFP API covers 9 endpoints spanning the real-time AFP wire news ticker and AFP Factuel's full fact-checking catalog. get_homepage_news_ticker returns live dateline, timestamp, and headline fields for breaking dispatches across multiple language locales, while get_factcheck_article delivers structured body blocks, author credits, tags, and publication dates for individual fact-check pieces identified by document ID.

Try it
Language code for the AFP homepage locale.
api.parse.bot/scraper/8f825f5d-d8ad-491e-9e99-729f3f4da791/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/8f825f5d-d8ad-491e-9e99-729f3f4da791/get_homepage_news_ticker?lang=fr' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace afp-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""AFP News & Fact-Check: live wire ticker, search, and drill-down."""
from parse_apis.afp_news_and_fact_check_api import AFP, Region, Topic, Language, ArticleNotFound

client = AFP()

# Get the live news ticker in English — real-time wire dispatches.
ticker = client.newstickers.get(lang=Language.EN)
print(f"Ticker ({ticker.language}): {len(ticker.ticker_items)} items")
for item in ticker.ticker_items[:3]:
    print(f"  [{item.location}] {item.headline} @ {item.timestamp}")

# Search fact-check articles by keyword, capped at 5 results.
for summary in client.articlesummaries.search(query="climat", limit=5):
    print(f"  Found: {summary.title} (doc_id={summary.doc_id})")

# Drill into the first result's full article via the summary→detail nav op.
first = client.articlesummaries.list_by_region(region=Region.EUROPE, limit=1).first()
if first:
    try:
        article = first.details()
        print(f"Detail: {article.title}, by {article.authors}, date={article.date}")
        for block in article.body[:2]:
            if block.type == "text":
                print(f"  [{block.tag}] {block.content[:80]}...")
    except ArticleNotFound as exc:
        print(f"Article gone: {exc.doc_id}")

# Browse by topic (Health) — paginated automatically.
for summary in client.articlesummaries.list_by_topic(topic_id=Topic.SANTE, limit=3):
    print(f"  Health: {summary.title}")

print("exercised: newstickers.get / articlesummaries.search / list_by_region / .details() / list_by_topic")
All endpoints · 9 totalmissing one? ·

Scrape the live news ticker on afp.com homepage showing real-time AFP wire dispatches. Each item includes a dateline location, timestamp, and headline text. Ticker updates continuously with global breaking news. Language determines the AFP homepage locale.

Input
ParamTypeDescription
langstringLanguage code for the AFP homepage locale.
Response
{
  "type": "object",
  "fields": {
    "language": "string indicating the language used",
    "ticker_items": "array of news ticker items with location, timestamp, and headline"
  },
  "sample": {
    "data": {
      "language": "en",
      "ticker_items": [
        {
          "headline": "Saudi Arabia calls for more Mideast war talks under Pakistan, Qatar mediation",
          "location": "Riyadh (AFP)",
          "timestamp": "11/06/2026 - 12:02:00"
        },
        {
          "headline": "Kremlin calls on US, Iran to 'return to negotiating table'",
          "location": "Moscow (AFP)",
          "timestamp": "11/06/2026 - 11:48:56"
        }
      ]
    },
    "status": "success"
  }
}

About the AFP API

News Ticker and Fact-Check Coverage

The get_homepage_news_ticker endpoint accepts an optional lang parameter and returns a ticker_items array where each item carries a dateline location, timestamp, and headline string. This gives a continuous stream of global AFP wire dispatches as they appear on the AFP homepage. For fact-checking content, get_factcheck_homepage returns the current landing-page article list with title, url, doc_id, date, and tags for each item — no parameters required.

Retrieving and Searching Fact-Check Articles

get_factcheck_article takes a required doc_id (e.g. B2GA29E) and returns the full article structure: a body array of typed content blocks (text or image), authors, date, tags, and title. Document IDs are available from search_factcheck_articles, get_factcheck_homepage, get_factcheck_article_list_all, get_factcheck_by_region, and get_factcheck_by_topic. The search endpoint accepts a query string in French and echoes it back alongside matching results ordered by relevance.

Filtering and Browsing

get_factcheck_by_region and get_factcheck_by_topic both support zero-based page pagination and return the same article object shape. Region filtering takes a plain region name string; topic filtering takes a numeric topic_id. To discover valid topic IDs and region names, get_factcheck_trending_topics returns the currently featured tag set with name and url fields that indicate both topic-based and region-based categories.

Content Categories

get_afp_content_categories retrieves AFP's main content product categories from the corporate site — photo, video, text, graphics, fact-check, sport, and similar offerings — each with a name and url. This is useful for mapping AFP's service taxonomy before building deeper integrations against specific content verticals.

Reliability & maintenanceVerified

The AFP API is a managed, monitored endpoint for afp.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when afp.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official afp.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
9/9 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display a live AFP breaking-news ticker widget, populated from ticker_items headline and dateline fields, localized by language code.
  • Build a fact-check monitoring dashboard that polls get_factcheck_homepage and surfaces newly added articles by doc_id and date.
  • Run keyword searches against AFP Factuel using search_factcheck_articles to track how a topic like 'vaccin' or 'climat' is covered over time.
  • Index AFP Factuel article full text and tags by iterating get_factcheck_article_list_all pages and fetching each article via get_factcheck_article.
  • Filter AFP Factuel content by geography using get_factcheck_by_region to build region-specific misinformation tracking feeds.
  • Map trending fact-check topics from get_factcheck_trending_topics to auto-populate filter menus in a newsroom research tool.
  • Catalogue AFP content service offerings by name and URL using get_afp_content_categories to build a product directory for media partnerships.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does AFP have an official developer API?+
AFP offers the AFP Connect platform for licensed media clients, documented at https://www.afp.com/en/agency/services/afp-connect. That service requires a commercial agreement. This Parse API provides structured access to publicly available AFP wire ticker data and AFP Factuel fact-check content without requiring an AFP Connect subscription.
What does `get_factcheck_article` return beyond the article headline?+
get_factcheck_article returns a body array of typed content blocks, where each block has a type field of either text or image and a corresponding content or url value. It also returns authors as a string, date, tags as an array, title, and the doc_id itself. You need a valid doc_id as input, which any of the listing or search endpoints can supply.
Is the AFP Factuel search endpoint multilingual?+
The search_factcheck_articles endpoint is scoped to AFP Factuel, which publishes primarily in French. Query terms should be in French for best results. The get_homepage_news_ticker endpoint does support a lang parameter to select different AFP homepage locales for the wire ticker feed, but that endpoint returns headlines only, not full articles.
Does the API expose AFP article content outside AFP Factuel, such as full wire dispatch text?+
Not currently. The API covers the live wire ticker (headlines, datelines, timestamps) and the full article content for AFP Factuel fact-check pieces. Full body text for general AFP wire dispatches is not included. You can fork this API on Parse and revise it to add an endpoint targeting other AFP content sections.
How does pagination work for the fact-check listing endpoints?+
get_factcheck_article_list_all, get_factcheck_by_region, and get_factcheck_by_topic all accept an optional zero-based integer page parameter and return the corresponding page value in the response alongside the articles array. Omitting the parameter defaults to page 0. There is no total-page-count field returned, so you iterate until you receive an empty or undersized articles array.
Page content last updated . Spec covers 9 endpoints from afp.com.
Related APIs in News MediaSee all →
news.un.org API
Access UN News headlines, stories, and articles organized by topic and region across multiple languages. Search news content, retrieve in-depth reports, and subscribe to RSS feeds for updates on global events and UN initiatives.
toutiao.com API
Browse personalized news feeds, discover trending articles and hot topics, search content across categories, view detailed articles with comments, and explore author profiles on Toutiao. Access video feeds and stay updated with the latest news and trending stories all in one place.
ard.de API
Access breaking news, search articles, and browse the latest stories from Germany's leading public broadcasters ARD and Tagesschau, with filtering by region and topic. Retrieve full article details and discover media content from their digital archives.
afdb.org API
Access comprehensive information about African development initiatives, including country profiles, infrastructure projects, procurement opportunities, publications, and news from the African Development Bank. Search and retrieve detailed data on ongoing projects, tenders, and resources to track development activities across Africa.
nrk.no API
Access the latest news from Norway's leading broadcaster NRK.no, including front-page stories, category-specific articles, regional news, and breaking news updates through a unified search and browsing interface. Stay informed with full article content, RSS feeds, and real-time news ticker notifications across all major topics.
autonews.com API
Stay updated on the automotive industry with instant access to headlines, articles, and news across global regions (Europe, Canada, Asia), specific brands, and industry categories. Search for relevant automotive news, read detailed articles, and browse the latest stories from Automotive News all in one place.
qq.com API
Access the latest news, articles, stock indices, and sports schedules from QQ.com's homepage, and search across multiple news categories to stay informed on hot topics and evening reports. Get real-time data including homepage content, images, links, and live sports schedules all from one unified service.
occrp.org API
Search and discover investigative journalism from OCCRP.org, including articles, investigations, and projects organized by section and region. Get the latest news updates and detailed information about specific investigations to stay informed on organized crime and corruption reporting.