Skip to content

Docs

World News API documentation

The World News API documentation covers every endpoint of the news API: 10 endpoints for search, top headlines by country, newspaper front pages, article extraction, RSS feeds and geo coordinates. Each page lists the parameters, a real JSON example and code you can copy.

  1. Sign up for a free API key: 50 points a day, no credit card.
  2. Pick an endpoint such as Search News and paste its demo code into your project.
  3. Or follow the full quick start tutorial.
  4. Optional: download an SDK for your language.
  5. Optional: try every endpoint in the Postman collection.
cURL · Search News
curl -X GET 'https://api.worldnewsapi.com/search-news?text=earth+quake&language=en&earliest-publish-date=2024-04-01' \
  -H 'x-api-key: myapikey'
200 OKapplication/json
{
  "available": 83,
  "news": [{
    "title": "Nearly 30 aftershocks recorded around NJ quake epicenter since Friday",
    "text": "New Jersey continues to shake after Friday’s ...",
    "publish_date": "2024-04-06 22:44:18",
    "language": "en",
    "source_country": "us",
    "sentiment": -0.545
  }]
}
1 point, plus 0.01 points per returned result Search News reference

Endpoint reference

One global news API, 10 endpoints.

Every endpoint is a plain HTTPS request to api.worldnewsapi.com, with your key in the api-key parameter or the x-api-key header. Each page shows what a call costs in points.

How authentication works

Guides and references

Reference data for an international news API.

The rest of the news documentation: codes for every country and language, the entity types you can filter on, the sources behind them, and how quotas, keys and AI clients work.

SDKs and specs

Use it from your language, or from Postman.

Open-source SDKs for 21 languages, all generated from the same OpenAPI 3 file you can download here.

  • Python
  • JavaScript
  • TypeScript
  • Java
  • PHP
  • Go
  • C#
  • Ruby
  • Kotlin
  • Rust
  • + 11 more
$ pip install worldnewsapi $ npm install worldnewsapi
OpenAPI 3 specificationGenerate a client for any language, or import it into your tools JSON Postman collectionEvery endpoint with example values, ready to send JSON Front page publicationsName, country, language and source-name of every front page CSV Platform overviewThe whole API on a few pages, to share with your team PDF
Rather not download anything?