Wikipedia API

Wikipedia Scraper API for Article Search, Text, Infoboxes, and Sections

Scrappa's Wikipedia API returns public Wikipedia data as structured JSON. Search articles with snippets and hit counts, and read a full article as plain text with sections, infobox pairs, links, images, categories and language links.

500 free credits
No card needed
From $0.20 / 1k
Pay as you go
Structured JSON
Ready for apps
API key access
Test in minutes
2
Endpoints
12
Languages
$0.20
Per 1k requests

Try it now

Make one request. Inspect structured JSON.

Use the first endpoint in this API family with a Scrappa API key. Every account includes 500 free monthly credits, so you can validate the response shape before buying credits.

Request preview
Request
curl -X GET "https://scrappa.co/api/wikipedia/article?title=Albert+Einstein&language=en" \
  -H "Accept: application/json" \
  -H "X-API-KEY: YOUR_API_KEY"
JSON response
{
  "success": true,
  "data": {
    "page_id": 736,
    "title": "Albert Einstein",
    "url": "https://en.wikipedia.org/wiki/Albert_Einstein",
    "description": "German-born theoretical physicist (1879–1955)",
    "is_disambiguation": false,
    "sections": [
      {
        "index": 1,
        "level": 2,
        "number": "1",
        "title": "Life and career",
        "anchor": "Life_and_career"
      },
      {
        "index": 2,
        "level": 3,
        "number": "1.1",
        "title": "Childhood, youth and education",
        "anchor": "Childhood,_youth_and_education"
      }
    ],
    "infobox": [
      {
        "label": "Born",
        "value": "(1879-03-14)14 March 1879, Ulm, Kingdom of Württemberg, German Empire"
      },
      {
        "label": "Died",
        "value": "18 April 1955(1955-04-18) (aged 76), Princeton, New Jersey, U.S."
      }
    ],
    "categories": []
  }
}

What you can build

Structured data for real applications. Here are some ideas.

Knowledge Enrichment

Attach summaries, descriptions and Wikidata ids to entities in your own data.

Structured Facts

Read infobox label and value pairs for people, places and companies.

Content and RAG Pipelines

Load clean article text with sections for retrieval and summarisation.

Topic Research

Search the encyclopedia and follow links and categories to related topics.

Available endpoints

Everything you need in one API.

Scrappa vs MediaWiki Action API (direct)

See how Scrappa compares to MediaWiki Action API (direct).

Plain article text without markup
Scrappa
MediaWiki Action API (direct)
HTML you must clean
Infobox as label and value pairs
Scrappa
MediaWiki Action API (direct)
Parse the HTML yourself
Redirects, disambiguation and 404 mapped
Scrappa
MediaWiki Action API (direct)
Errors inside HTTP 200 bodies
Price per 1k requests
Scrappa
From $0.20
MediaWiki Action API (direct)
Free, but you build the wrapper

Key features

Full article text without markup, plus a short summary
Infobox as label and value pairs, empty when the article has none
Sections, links, images, external links, categories and language links
Redirects followed and reported
Missing articles answer 404; disambiguation pages are flagged
12 languages: en, de, fr, es, it, pt, nl, ja, ru, pl, sv, zh

Frequently asked questions

en, de, fr, es, it, pt, nl, ja, ru, pl, sv and zh. Other language codes answer 422.

Redirects are followed and the original title is returned in redirected_from.

Each successful request uses one Scrappa credit. Failed requests are never charged and the API never answers with HTTP 429. An upstream outage returns a retryable 503.

No. Scrappa is an independent service and is not affiliated with or endorsed by Wikipedia. It returns public Wikipedia data as JSON.

Start using the Wikipedia API

Sign up and get 500 free credits. No credit card required.