Wikipedia scraper API: public pages as JSON
Send any Wikipedia page URL with recipe=wikipedia and get title, headline, published and 2 more fields as JSON. No selectors to write, no proxies to pick.
- 1 page type
- 5 fields
- 5 credits a page · $0.50 per 1,000
- Working · 100% in 7 days
5,000 free credits for 7 days, no card.
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://en.wikipedia.org/wiki/Photosynthesis' \
--data-urlencode 'recipe=wikipedia'
{
"result": {
"title": "Photosynthesis",
"headline": "biological process to convert light into chem...",
"published": "2001-11-02T21:22:29Z",
"publisher": "Wikimedia Foundation, Inc."
},
"success": true
}
What you get from Wikipedia
The fields of each page type and a real sample from our last validation, shortened.
Public pages recipe=wikipedia 5 credits a page
| Field | Type | Example |
|---|---|---|
article.headline | text | biological process to convert light into chemical energy |
article.published | date | 2001-11-02T21:22:29Z |
article.publisher | text | Wikimedia Foundation, Inc. |
url | URL | https://en.wikipedia.org/wiki/Photosynthesis |
title | text | Photosynthesis |
Sample answer, validated 2026-11-04
{
"article": {
"headline": "biological process to convert light into chemical energy",
"published": "2001-11-02T21:22:29Z",
"publisher": "Wikimedia Foundation, Inc."
},
"url": "https://en.wikipedia.org/wiki/Photosynthesis",
"title": "Photosynthesis"
}
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 Wikipedia (JavaScript rendering).
curl -G 'https://api.ujeebu.com/scrape' \
-H "ApiKey: $UJEEBU_API_KEY" \
--data-urlencode 'url=https://en.wikipedia.org/wiki/Photosynthesis' \
--data-urlencode 'recipe=wikipedia'
import os, requests
r = requests.get(
"https://api.ujeebu.com/scrape",
params={"url": "https://en.wikipedia.org/wiki/Photosynthesis", "recipe": "wikipedia"},
headers={"ApiKey": os.environ["UJEEBU_API_KEY"]},
timeout=120,
)
print(r.json()["result"])
const params = new URLSearchParams({
url: "https://en.wikipedia.org/wiki/Photosynthesis",
recipe: "wikipedia",
});
const res = await fetch(`https://api.ujeebu.com/scrape?${params}`, {
headers: { ApiKey: process.env.UJEEBU_API_KEY },
});
console.log((await res.json()).result);
The answer is {"result": {...}} with the headers Ujb-Recipe and Ujb-Credits. Your own parameters always win over the recipe.
What people build with Wikipedia data
Research datasets
Build datasets of public pages for analysis, search or LLM pipelines.
Learn more
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 |
|---|---|---|---|
| Page | 5 | $0.82 | $0.50 |
FAQ
What does the Wikipedia recipe return?
JSON with 5 fields from page (recipe=wikipedia), for example title, headline, published, publisher, url. The answer is {"result": {...}} with the fields shown on this page.
How much does it cost to scrape Wikipedia?
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 Wikipedia: JavaScript rendering. Send only the URL and recipe=wikipedia.
What happens when Wikipedia changes its pages?
We check Wikipedia 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, proxy_type, wait_for) and it wins over the recipe. The developer guide shows the recipe rules to start from.
Related recipes
GitHubSearch results, Page · 5 credits
Hacker NewsSearch results · 5 credits
Hugging FaceSearch results, Page · 5 credits
LinkedInSearch results, Detail page, Profile · 5 credits
AmazonSearch results, Product page · 5 credits
X (Twitter)Profile · 5 credits
Logos and names belong to their owners. Ujeebu is not affiliated with Wikipedia.
Get Wikipedia data as JSON today.
5,000 free credits for 7 days. No card.