Wikipedia scraper API
The InsightSocial Wikipedia API has 26 endpoints, from 20 credits a call. A page call costs 20 credits, about $0.02 on Pro, and your first 10 calls up to 100 credits each are free.
Wikipedia pages, pageviews, edit history, links, categories, search and Wikidata, as JSON, on any language edition, in the same envelope and on the same credit balance as every other platform on your key.
26 endpoints · from 20 credits a call · 10 free calls up to 100 credits each · no credit card
curl "https://api.insightsocial.app/v1/wikipedia/page?title=Albert+Einstein&lang=en" \-H "x-api-key: $INSIGHTSOCIAL_API_KEY"
What Wikipedia data can you get?
Public Wikipedia data only, in the same JSON envelope as every other platform. Every Wikipedia endpoint is beta: inside data it returns Wikipedia's own structure under our naming rules (snake_case keys, string ids, ISO times where Wikipedia gives a timestamp), not the shared profile and post schema, and fields may change.
Pages and content
A page's lead, images and protection, its text as plain lead, HTML or wikitext with sections, its links and media, or up to 20 pages in one call.
Pageviews
Daily or monthly views of one page by access method and agent, the most-viewed pages of a day or month, and site-wide totals.
Edits and editors
A page's revisions and edit counts, recent changes and logs across an edition, and a user's contributions.
Search, categories and Wikidata
Full-text search, title suggestions, category members, pages near a coordinate, the daily featured feed, and Wikidata entities, search and read-only SPARQL.
What people build with the Wikipedia API
Attention tracking
Follow daily pageviews for a list of companies, people or products as a proxy for public interest, next to their social numbers.
Knowledge for agents
Give an AI agent the lead and sections of a page, or a Wikidata entity, through the same key it uses for everything else.
Edit monitoring
Watch revisions on the pages that matter to you and read the text before and after each change.
Wikipedia API endpoints
All 26 Wikipedia endpoints and their price in credits. 1 are metered: they show a range and charge what the call actually read.
| Endpoint | Credits | What it returns |
|---|---|---|
| /category/members | 20 | List a Wikipedia category's members with sort keys and timestamps, plus the category counts. |
| /feed | 20 | Get a Wikipedia edition's featured article, most-read articles, picture of the day and on-this-day entries for a day. |
| /geosearch | 20 | List Wikipedia pages near a coordinate or a named page, within a radius. |
| /logs | 20 | List public Wikipedia log events by type, page, user or time. |
| /on-this-day | 20 | Get selected Wikipedia anniversaries, births, deaths, events or holidays for a month and day. |
| /page | 20 | Get a Wikipedia page's identity, lead, images, protection and optional assessments and pageviews. |
| /page/backlinks | 20 | List the pages that link to or transclude a Wikipedia page. |
| /page/content | 20 | Get a Wikipedia page's plain-text lead, rendered HTML or wikitext, with sections, links, categories, templates and media. |
| /page/history-stats | 20 | Get a Wikipedia page's edit and editor counts plus its first revision. |
| /page/languages | 20 | List the Wikipedia editions that have a page for the title. |
| /page/links | 20 | List a Wikipedia page's internal links, external URLs, templates, categories or interwiki links. |
| /page/media | 20 | List the images and other media used on a Wikipedia page. |
| /page/pageviews | 20 | Get a Wikipedia page's daily or monthly views by access method and agent. |
| /page/revisions | 20 | List a Wikipedia page's revisions with users, sizes and tags; a reversed date window is swapped for the chosen direction. |
| /pages | 20–260 | Get up to 20 Wikipedia pages in one call, with the lookup status of each requested title. |
| /pageviews/site | 20 | Get a Wikipedia edition's site-wide pageviews or unique-device totals. |
| /pageviews/top | 20 | Get the most-viewed Wikipedia pages of a day or month, including non-article pages. |
| /random | 20 | List random pages in a Wikipedia edition and namespace. |
| /recent-changes | 20 | List recent changes on a Wikipedia edition by type, namespace, page or time. |
| /search | 20 | Search a Wikipedia edition, with snippets, match ranges, totals and suggestions. |
| /search/suggest | 20 | Get title suggestions for a fragment on a Wikipedia edition. |
| /user | 20 | Get a Wikipedia user's block, groups, edit count, registration date, gender and central ids. |
| /user/contributions | 20 | List a Wikipedia user's contributions with sizes, comments, tags and flags. |
| /wikidata/entity | 20 | Get a Wikidata item, property, lexeme or media entity, or resolve a wiki title to its entity. |
| /wikidata/query | 20 | Get a read-only Wikidata SPARQL query result as bindings or an ASK answer. |
| /wikidata/search | 20 | Search Wikidata entities by label, alias or description. |
Parameters, response fields and examples for each endpoint are in the Wikipedia API reference.
InsightSocial vs the official Wikipedia API
Wikimedia's own APIs (the MediaWiki Action API, the REST API and the Wikidata Query Service) are free and open, and ask for a descriptive User-Agent. If Wikipedia is all you need, call them directly.
| InsightSocial API | Official Wikipedia API | |
|---|---|---|
| Access | One key for Wikipedia and 60 other platforms | Free and open |
| Response shape | The same envelope and cursor paging as every other platform on your key | One shape per API: Action, REST, pageviews, SPARQL |
| Billing | One credit balance with your other data | No billing |
| Cost per call | 20 credits | Free |
The official API is the right tool for posting, messaging or managing accounts you own. This one is read-only public data.
How much does the Wikipedia API cost?
Wikipedia calls start at 20 credits. Every endpoint's price is in the table above and in the free GET /v1/endpoints catalogue, so you know the cost before you call. Pro's 10,000 monthly credits cover about 500 pages at 20 credits each.
Failed calls are free
A call that errors or finds nothing costs 0 credits.
Repeats and retries
A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
One balance
API calls and Chrome extension exports share the same credits. The free plan includes 500 a month.
Not writing code?
Connect InsightSocial to Claude or ChatGPT and ask for Wikipedia data in plain English. Same account, same credits.
Wikipedia API: frequently asked questions
If you only need Wikipedia, the free Wikimedia APIs are the simplest choice. This one makes sense when Wikipedia is one source among several: the same key, envelope, cursor paging and credit balance as the social and video endpoints you already call.
Yes. Every page endpoint takes lang, such as de, ja or simple, and defaults to en. /v1/wikipedia/page/languages lists the editions that have a page for a title.
/v1/wikipedia/page/pageviews returns daily or monthly views for a date window, split by desktop, mobile web or app and by user or automated traffic. /v1/wikipedia/pageviews/top returns the most-viewed pages of a day or month.
They return Wikimedia's own structure under our naming rules (snake_case keys, string ids, ISO times where a timestamp is given) rather than the shared profile and post entities, so fields may change. Each endpoint is 20 credits a call, except /v1/wikipedia/pages, which is metered from 20 to 260 by how many titles you send. Calls that fail or find nothing are free.
No. There is no Wikipedia app, OAuth flow or review. One API key in the x-api-key header works for Wikipedia and the other 60 platforms.
Yes. Your first 10 calls priced at 100 credits or less are free, and the free plan includes 500 credits every month. No credit card is needed to get a key.
60 requests a minute and 10 requests in flight at once, per API key. Going over either returns a 429 with a Retry-After header, and a rejected request costs nothing. There is no daily quota: past those two limits, your credit balance is what bounds volume.
List endpoints return rows in data.items and a pagination object with next_cursor and has_more. Send next_cursor back unchanged as the cursor parameter for the next page, and stop when has_more is false. A handful of endpoints page with their own parameter instead; their reference pages name it.
No. A call that errors or finds nothing costs 0 credits. A live fetch costs the endpoint's price, or for a metered endpoint what it actually read. A repeat call is charged again: the full price when it fetches new data, 2 credits when the answer comes from the shared cache. Add fresh=1 to force a new read. Only a retry with the same Idempotency-Key is free.
A call fetches live unless a recent copy is in the shared cache, and every response says which with the cached field; a cached answer costs 2 credits. Add fresh=1 or send Cache-Control: no-cache to skip the cache; that call is charged at the normal price.
Collecting publicly available data is generally treated differently from accessing private data, but the answer depends on your jurisdiction, Wikipedia's terms and what you do with personal data afterwards. The API reads public data only. Talk to a lawyer for anything commercial.
Wikipedia API guides
The same key works for 60 more platforms
- TikTok scraper API
- LinkedIn scraper API
- Twitter/X scraper API
- YouTube scraper API
- Reddit scraper API
- Pinterest scraper API
- Bluesky scraper API
- Truth Social scraper API
- Snapchat scraper API
- Telegram scraper API
- Twitch scraper API
- Kick scraper API
- Rumble scraper API
- Kwai scraper API
- Douyin scraper API
- Xiaohongshu (RedNote) scraper API
- Quora scraper API
- TikTok Shop scraper API
- Weibo scraper API
- Zhihu scraper API
- Substack scraper API
- Nextdoor scraper API
- Amazon scraper API
- App Store scraper API
- Apple Music scraper API
- Behance scraper API
- Dailymotion scraper API
- Deezer scraper API
- DEV Community scraper API
- Discord scraper API
- Dribbble scraper API
- Fandom scraper API
- Flickr scraper API
- GitHub scraper API
- Google Ads Transparency scraper API
- Google News scraper API
- Google Trends scraper API
- Gumroad scraper API
- Hacker News scraper API
- Hugging Face scraper API
- Ko-fi scraper API
- Lemmy scraper API
- Letterboxd scraper API
- Linktree scraper API
- Lnk.Bio scraper API
- Mastodon scraper API
- Medium scraper API
- MyAnimeList scraper API
- npm scraper API
- Polymarket scraper API
- Product Hunt scraper API
- Shopify scraper API
- SoundCloud scraper API
- Spotify scraper API
- Stack Overflow scraper API
- Stan Store scraper API
- Steam scraper API
- Vimeo scraper API
- Yahoo Finance scraper API
- Yelp scraper API