The Guardian scraper API: articles as JSON
Send any The Guardian page URL with recipe=guardian and get headline, published, modified and 4 more fields as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 7 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 21 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-bolsonaro-the-amazon-brazil-president-far-right' \
--data-urlencode 'recipe=guardian'
{
"result": {
"article": {
"headline": "Marina Silva on Flávio Bolsonaro: He will try...",
"published": "2026-10-10T13:00:57.000Z",
"modified": "2026-11-11T10:46:21.000Z",
"publisher": "The Guardian"
}
},
"success": true
}
The Guardian API or the page data?
Official API: open
The Guardian has an official API (Guardian Open Platform). Anyone can register for a free developer key to the Content API. Commercial keys are available on request. When you need the public page data instead (fields the API does not return, the official rate limits, or no developer key to apply for), the recipe gives it to you.
Source: Guardian Open Platform on open-platform.theguardian.com, checked November 6, 2026.
How to get The Guardian data as JSON today
- Get a free API key: 5,000 free credits for 21 days, no card.
- Send any The Guardian page URL with
recipe=guardianto the Scrape API (the call). - Get 7 fields as JSON, 5 credits a page, billed only when the call succeeds.
Ujeebu's The Guardian recipe returns headline, published, modified and 4 more fields from any public The Guardian page as JSON: send the URL with recipe=guardian to the Scrape API, 5 credits a page, no The Guardian account or partner approval needed.
What you get from The Guardian
The fields of each page type and a real sample from our last validation, shortened.
Articles recipe=guardian 5 credits a page
| Field | Type | Example |
|---|---|---|
article.headline | text | Marina Silva on Flávio Bolsonaro: He will try to finish his father’... |
article.image | image URL | https://i.guim.co.uk/img/media/dceb7fc630e609286ac8e2d2274a68455da0... |
article.modified | date | 2026-10-12T09:53:09.000Z |
article.published | date | 2026-10-10T13:00:57.000Z |
article.publisher | text | The Guardian |
description | text | Exclusive: Former Brazilian environment minister warns of destructi... |
url | URL | https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-b... |
Sample answer, validated 2026-11-21
{
"article": {
"headline": "Marina Silva on Flávio Bolsonaro: He will try to finish his father’s ‘perverse project’ to destroy the Amazon",
"image": "https://i.guim.co.uk/img/media/dceb7fc630e609286ac8e2d2274a68455da0bcab/0_648_7000_5598/master/7000.jpg?width=1200&height=630&quality=85&auto=format&fit=crop...",
"modified": "2026-11-11T10:46:21.000Z",
"published": "2026-10-10T13:00:57.000Z",
"publisher": "The Guardian"
},
"description": "Exclusive: Former Brazilian environment minister warns of destruction as far-right scion favourite to become president",
"url": "https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-bolsonaro-the-amazon-brazil-president-far-right"
}
One call
Send the page URL and the recipe name to the Scrape API. The recipe brings the extract rules and the settings that work on The Guardian (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-bolsonaro-the-amazon-brazil-president-far-right' \
--data-urlencode 'recipe=guardian'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-bolsonaro-the-amazon-brazil-president-far-right", "recipe": "guardian"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
article = r.json()["result"]["article"]
print(article["headline"], article["published"], article["modified"], article["publisher"])
# Example output: Marina Silva on Flávio Bolsonaro: He... 2026-10-10T13:00:57.000Z 2026-11-11T10:46:21.000Z The Guardian
const params = new URLSearchParams({
url: "https://www.theguardian.com/world/2026/oct/10/marina-silva-flavio-bolsonaro-the-amazon-brazil-president-far-right",
recipe: "guardian",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
const { result } = await res.json();
const article = result.article;
console.log(article.headline, article.published, article.modified, article.publisher);
// Example output: Marina Silva on Flávio Bolsonaro: He... 2026-10-10T13:00:57.000Z 2026-11-11T10:46:21.000Z The Guardian
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
What people build with The Guardian data
Media monitoring
Track the articles published on the topics and companies you follow.
Learn moreContent for AI and RAG
Collect headlines, dates and summaries as structured input for search and LLM pipelines.
Learn morePublishing timeline
Measure when and how often a site publishes, by section.
Price
Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
| Page type | Credits a page | Per 1,000, Starter | Per 1,000, Pro |
|---|---|---|---|
| Article | 5 | $0.82 | $0.50 |
FAQ
The Guardian API vs scraping: which one should I use?
Use the official The Guardian API when it returns what you need. Anyone can register for a free developer key to the Content API. Commercial keys are available on request. Use the page data when you need what the public page shows: Ujeebu's The Guardian recipe returns headline, published, modified and 4 more fields from any public The Guardian page as JSON: send the URL with recipe=guardian to the Scrape API, 5 credits a page, no The Guardian account or partner approval needed.
What does the The Guardian recipe return?
JSON with 7 fields from article (recipe=guardian), for example headline, published, modified, publisher, description. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape The Guardian?
5 credits a page ($0.50 per 1,000 on Pro, $0.82 on Starter). Same price as the page call, no fee for the recipe. Only successful responses are billed; blocked, timed-out and failed requests are free.
Do I need proxies or a headless browser?
No. The recipe brings the settings that work on The Guardian: JavaScript rendering. Send only the URL and recipe=guardian.
What happens when The Guardian changes its pages?
We check The Guardian every day and re-validate the recipe on real pages every week, then fix it when the site changes. Until a fix is live, the API answers 404 "the recipe has no working version" instead of empty data, and that call is free.
Can I change the fields?
Yes. Send your own extract_rules or any setting (js, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.
Related recipes
- SubstackArticle · 5 credits
Yahoo FinancePage · 5 credits
Yahoo NewsSearch results, Article · 5 credits
AFP Fact CheckArticle · 5 credits
Al JazeeraArticle · 5 credits
Ars TechnicaSearch results, Article · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with The Guardian.
Get The Guardian data as JSON today.
5,000 free credits for 21 days. No card.