Skip to content

Retrieve News API: get full news articles by id

Retrieve information about one or more news articles by their ids. The ids can be retrieved from the search news or top news APIs, and each article comes back with its full text, summary, image, authors and sentiment.

GET
https://api.worldnewsapi.com/retrieve-news
Cost
0.1 points per news returned
Input
Comma-separated article ids
Auth
api-key or x-api-key
Free plan
Yes

Parameters

ids and api-key (or the x-api-key header) are required.

Parameters

Name Example Description
ids
s r q
2352,2354A comma separated list of news ids.
api-key
s r q
abcd1234Your API key.

Response headers

Every response tells you what the request cost and how many points are left today.

Headers

Response Headers:

  • Content-Type: application/json
  • X-API-Quota-Request: The number of points used by the request
  • X-API-Quota-Used: The number of points used in total today
  • X-API-Quota-Left: The number of points left today (depends on your plan)

The daily count resets at midnight UTC.

Example request

The articles with the ids 2352 and 2354. Sign in and the examples use your own key.

GET https://api.worldnewsapi.com/retrieve-news?ids=2352,2354
curl -X GET 'https://api.worldnewsapi.com/retrieve-news?ids=2352,2354' \
  -H 'x-api-key: myapikey'
Prefer a client library? The SDKs wrap this call in 21 languages as retrieveNewsArticlesByIds, named in each language's style (retrieve_news_articles_by_ids in Python and Ruby).

Example response

200 OKapplication/json
{
    "news": [
        {
            "id": 2352,
            "title": "While China and the US squabble, the world’s debt and climate crises worsen - Amnesty International",
            "text": "...",
            "summary": "...",
            "url": "https://www.amnesty.org/en/latest/news/2020/09/while-china-and-the-us-squabble-the-world-debt-and-climate-crises-worsen/",
            "image": "https://www.amnesty.org/en/wp-content/uploads/2021/06/272748-1024x433.jpg",
            "video": null,
            "publish_date": "2020-09-11 18:05:26",
            "authors": [
                "Amnesty International",
                "William Nee"
            ],
            "language": "en",
            "category": "politics",
            "source_country": "mx",
            "sentiment": -0.176
        },
        {
            "id": 2354,
            "title": "Sexual violence against Hong Kong protesters – what’s going on? - Amnesty International",
            "text": "...",
            "summary": "...",
            "url": "https://www.amnesty.org/en/latest/news/2019/12/sexual-violence-against-hong-kong-protesters/",
            "image": "https://www.amnesty.org/en/wp-content/uploads/2021/06/264281-1024x433.jpg",
            "video": null,
            "publish_date": "2019-12-20 11:14:17",
            "authors": [
                "Amnesty International"
            ],
            "language": "en",
            "category": "politics",
            "source_country": "mx",
            "sentiment": -0.449
        }
    ]
}

Points

Quotas

Calling this endpoint costs
0.1 points
per news returned.

Plans and points

Rate limits and errors

Requests per plan

Free
1 per second, 1 at a time
Starter (console offer)
2 per second, 1 at a time
Reporter
2 per second, 5 at a time
Journalist
10 per second, 10 at a time
Editor
20 per second, 20 at a time

Error codes

402Daily points used up on the free plan. They reset at midnight UTC.

429Too many requests per second, or too many at the same time.

Rate limiting and quotas in detail

Frequently asked questions

How do I retrieve a specific news article by ID?

Use the GET /retrieve-news endpoint with the ids parameter. You can pass one or more comma-separated article IDs that you obtained from the Search News or Top News endpoints.

What data fields are included in a news article response?

Each article includes the title, full text, summary, URL, image URL, video URL, publish date, authors, language, category, source country, and sentiment score.

Can I retrieve the full article text?

Yes. The retrieve-news endpoint returns the complete article text in the text field, along with a shorter summary in the summary field.

Questions? Need help? Ask away