Wikipedia Table Extractor
Pricing
from $0.50 / 1,000 results
Go to Apify Store

Wikipedia Table Extractor
Extract structured data from Wikipedia tables as clean JSON. Supports all languages, multiple tables and header detection. Ideal for AI training data and research.
Pricing
from $0.50 / 1,000 results
Rating
0.0
(0)
Developer
Muhammad Naufal
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
3 hours ago
Last modified
Categories
Share
📗 Wikipedia Data Scraper
Extract tables from any Wikipedia page as clean JSON. Supports wikitable, infobox, sortable, and various Wikipedia table layouts.
Features
- Table extraction — wikitable, infobox, sortable, toccolours, plain tables
- colspan/rowspan — merged cells properly replicated
- Page metadata — categories, short description, last-modified, infobox key-values
- Section context — nearest h2/h3 heading for each table
- Link extraction — href links from anchor elements within cells
- Multiple tables — extract one or all tables on a page
- Dict or array — column-header keys or positional col0/col1 format
Sample output
{"page": "https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue","title": "List of largest companies by revenue - Wikipedia","tablesFound": 3,"totalRows": 5,"metadata": {"categories": ["Lists of companies by revenue", "Economic lists"],"description": "Wikimedia list article"},"tables": [{"tableIndex": 0,"tableType": "data","section": "2024 list","headers": ["rank", "company", "country"],"count": 5,"rows": [{"_rowNumber": 1, "rank": "1", "company": "Walmart", "country": "United States", "url": "https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue"},{"_rowNumber": 2, "rank": "2", "company": "Saudi Aramco", "country": "Saudi Arabia", "url": "https://en.wikipedia.org/wiki/List_of_largest_companies_by_revenue"}]}]}
Input
| Field | Type | Default | Description |
|---|---|---|---|
pageUrl | string | List of largest companies | Full Wikipedia URL |
tableIndex | integer | 0 | Which table (0 = first) |
maxResults | integer | 20 | Max rows per table |
outputFormat | string | dict | dict (headers as keys) or array |
includeHeader | boolean | false | Include header row? |
allTables | boolean | false | Extract all tables? |
extractMetadata | boolean | true | Page categories, description, infobox, last-modified |
includeLinks | boolean | false | Extract href links from anchor elements |
sectionContext | boolean | false | Include nearest h2/h3 heading per table |
Pricing
$0.001 per result ($0.50 per 1k rows).