The Guardian API
theguardian.com
The Guardian - articles, 80 sections, date-filtered search, tags, and authors.
- Actions
- 10
- Category
- News Media
- Login
- Not required
- Output
- JSON
Call the The Guardian API
Submit a task, then poll the job until it settles. This example runs gu_article.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "gu_article",
"params": {
"url": "https://www.theguardian.com/politics/live/2026/apr/08/keir-starmer-iran-war-trump-ceasefire-gulf-strait-of-hormuz-labour-conservatives-liberal-democrats-reform-scotland-holyrood-uk-politics-latest-news-updates"
}
}'10 actions on theguardian.com
Read
Article Content
gu_articleread2 credits / callReturns full article body, author, tags, section, thumbnail, and word count from a URL.
- url
- string · required
Article Search
gu_searchread1 credit / callReturns Guardian articles matching a full-text search with date range and section filtering.
- query
- string · required
- section
- string
- from_date
- string
- to_date
- string
- order_by
- string
- page
- integer
- limit
- integer
Author Articles
gu_authorread2 credits / callReturns Guardian articles by a specific contributor using their profile tag ID.
- author
- string · required
- page
- integer
- limit
- integer
Editor's Picks
gu_editors_picksread1 credit / callReturns editorially curated top articles for a given Guardian section.
- section
- string · required
Latest Articles
gu_latestread3 credits / callReturns the latest Guardian articles optionally filtered by section with author and excerpt.
- section
- string
- page
- integer
- limit
- integer
Most Viewed
gu_most_viewedread3 credits / callReturns the most viewed articles in a given Guardian section.
- section
- string · required
Section News
gu_sectionread1 credit / callReturns Guardian articles by editorial section such as world, business, and technology.
- section
- string · required
- page
- integer
- limit
- integer
Sections List
gu_sections_listread3 credits / callReturns all 80 Guardian editorial sections with IDs and URLs.
Tag Browser
gu_tagread1 credit / callReturns Guardian articles by tag including topics, countries, organizations, and people.
- tag
- string · required
- page
- integer
- limit
- integer
Topic Browser
gu_topicread3 credits / callReturns Guardian articles by topic keyword, resolving the tag automatically.
- topic
- string · required
- page
- integer
- limit
- integer
The Guardian API questions
- Is there an API for The Guardian?
- The Guardian does not offer a public data API for this, but Anakin Wire provides 10 maintained endpoints for theguardian.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape The Guardian data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when theguardian.com changes its markup, Anakin updates the action.
- Do I need a The Guardian account?
- No. Every The Guardian action listed here runs anonymously — no account and no credentials required.
- What does the The Guardian API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More News Media APIs
7x7
Bay Area news site - local events, article listings, and city guides.
9to5Google
Google and Android news - article details, category archives, and reviews.
ABC News (Australia)
Australian ABC News - article details, topic listings, live blogs, and recommendations.
Al Jazeera
English-language news - latest articles, sections, keyword search, and journalists.
AllSides
News with media bias ratings - headline roundups, story details, and topic browse.
AnandTech
Hardware reviews - benchmarks, articles, and community forums for PC components.