The Guardian News API

The Guardian is a British daily newspaper known for its investigative journalism, covering world news, politics, culture, science, and the environment.

With the World News API you can programmatically access news articles from The Guardian (theguardian.com). On average, over 200 articles per day are indexed from this source.

The source is based in United Kingdom and publishes primarily in the language code en. For every API endpoint that supports the news-sources parameter, use https://www.theguardian.com to retrieve news exclusively from The Guardian.

Historically, you can search news from The Guardian starting January 1st, 2022.



API Examples for The Guardian News

Here are some examples showing how to search news, filter by category, and retrieve specific articles from The Guardian. Be sure to check out the in-depth documentation as each API offers many different parameters to explore.

Search latest news from The Guardian
news-sources=https://www.theguardian.com
GET
https://api.worldnewsapi.com/search-news?news-sources=https://www.theguardian.com
See the full documentation of how to search news.
Search The Guardian news about a specific topic
news-sources=https://www.theguardian.com text=technology
GET
https://api.worldnewsapi.com/search-news?news-sources=https://www.theguardian.com&text=technology
See the full documentation of how to search news by keyword.
Get The Guardian news in the politics category
news-sources=https://www.theguardian.com categories=politics
GET
https://api.worldnewsapi.com/search-news?news-sources=https://www.theguardian.com&categories=politics
See the full documentation of how to search news by category.
Get The Guardian news with sentiment analysis
news-sources=https://www.theguardian.com
GET
https://api.worldnewsapi.com/search-news?news-sources=https://www.theguardian.com

Each article in the response includes a sentiment score ranging from -1 (very negative) to 1 (very positive), enabling sentiment analysis of The Guardian's coverage.

See the full documentation of how to search news.


Frequently Asked Questions about The Guardian News API

How do I get news articles from The Guardian via API?

Use the Search News endpoint with the parameter news-sources=https://www.theguardian.com. This returns only articles published by The Guardian. You can further filter by keyword, category, date range, and more.

How many articles does World News API index from The Guardian daily?

World News API indexes over 200 articles per day from The Guardian. Coverage includes all major sections and categories published on theguardian.com.

Can I search historical articles from The Guardian?

Yes, World News API stores articles from The Guardian starting from January 1st, 2022. Use the earliest-publish-date and latest-publish-date parameters in the Search News endpoint to query historical articles.

Can I combine The Guardian with other news sources in one API call?

Yes, the news-sources parameter accepts a comma-separated list of source URLs. For example, you can retrieve news from The Guardian and other outlets in a single request.

Is there a free plan to access The Guardian news?

Yes! World News API offers a free plan with 50 daily API points — enough to start building and testing with The Guardian news data. Sign up for a free API key to get started. Paid plans start at $39/month for higher volume needs.

Looking for a different news source? Select from the list below or browse all media outlets.