Wikidata Scraper
Resolve names or Q-ids to Wikidata entities for $0.20 per 1,000 plus $0.001 per run. Labels, aliases, instance-of, claims and Wikipedia links.
How it works
- 1Open it on Apify
Hit Run on Apify — it opens the tool in the cloud, no install.
- 2Set the inputs
Adjust
mode,query,ids(sensible defaults are pre-filled). - 3Click Run
The tool runs on Apify’s cloud and collects the data for you.
- 4Export the results
Download as JSON, CSV or Excel, or pipe straight into your app, Google Sheets, or an AI agent.
Pricing
$0.0002 per item = $0.2 per 1,000
| You are charged for | When | Price |
|---|---|---|
| Item returned | Charged per entity returned. | $0.0002 |
| Actor Start | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). | $0.001 |
Pay-per-event pricing: you are billed per result, not per subscription — a run that returns nothing costs nothing beyond the start fee. Billing is handled by Apify on your own account. These are the live Apify store prices, in effect since 2026-08-04, and they are what you are actually charged.
Inputs
| Field | What it does | Type |
|---|---|---|
mode | What to do. "search" runs a free-text entity search and returns matching Q-ids with their label/description. "entities" takes a list of Q-ids and returns full records (aliases, claims, Wikipedia link). | string |
query | Free-text term to search Wikidata for, e.g. "douglas adams" or "eiffel tower". Used only in "search" mode. Leave empty when using "entities" mode. | string |
ids | List of Wikidata item ids to resolve, e.g. ["Q42", "Q5"]. Used only in "entities" mode. Up to 50 ids are fetched per API request automatically. | array |
language | Language code for labels, descriptions and aliases, e.g. en, fr, de, es, ja. Falls back to the multilingual (mul) value when a term isn't available in this language. | string |
maxItems | Maximum number of entities to return. In search mode the API caps results at 50 per query. | integer |
notionConnector | Optional. Write each item as a page into your Notion when the run finishes. Authorize a Notion connector once in Settings → API & Integrations → MCP connectors, then pick it here. Leave empty to skip (default) — results are always saved to the dataset regardless. | string |
notionParentId | Optional. The Notion data source ID of the database to write into (only used if a Notion connector is set). Leave empty to create the pages privately in your workspace instead. | string |
What you get
A structured dataset — each result includes fields like:
idlabeldescriptionurlenwikiUrlinstanceOfExport every run as JSON, CSV or Excel, or send it to your app, a database, Google Sheets, or an AI agent.
Related tools in Developer & Research Tools
Other ready-to-run tools in the same category — all pay-per-use on the Apify cloud.
Domain Inspector
Bulk-inspect domains: DNS records, RDAP registrar and expiry, redirects, TLS dates, security headers, robots, sitemaps and tech detection.
GitHub Scraper
Search GitHub repos or users and export clean rows: stars, forks, language, topics, license, plus user bio, company, location and follower count.
Stack Overflow / Stack Exchange Scraper
Search Stack Overflow and Stack Exchange by keyword or tags. Get structured questions with score, answers, views, tags, author, and link as JSON or CSV.
Package Registry Scraper (npm + PyPI)
Get npm and PyPI package metadata - version, license, repo, keywords, and npm download counts. Search by keyword or look up exact names. No API key needed.
arXiv Scraper
Search arXiv and get clean JSON: titles, abstracts, authors, categories, DOI, dates and PDF links. No API key. Sort by relevance or date; push to Notion.
OpenAlex Scholarly Works Scraper
Search 250M+ OpenAlex papers by keyword. Get titles, authors, venue, year, citations, concepts, OA links and full abstracts as structured JSON. No API key.
Where this tool sits
- Categories
- Developer & Research Tools
- Platforms
- Wikipedia
Wikidata Scraper
Search Wikidata by name or phrase, or resolve a list of Q-ids into full, structured records — straight from the public MediaWiki / Wikibase API. No API key, no login.
Two modes:
- Search — free-text query (e.g.
douglas adams) → matching entities with their Q-id, label and description. - Entities — a list of Q-ids (e.g.
["Q42","Q5"]) → full records: label, description, aliases, instance-of, occupation, citizenship, a simplified claims summary, and the linked Wikipedia article.
Input
| Field | Notes |
|---|---|
mode | search (default) or entities. |
query | Search term. Used in search mode. |
ids | Array of Q-ids, e.g. ["Q42","Q5"]. Used in entities mode. Batched 50/request. |
language | Term language, e.g. en, fr, de. Falls back to the multilingual (mul) value when missing. |
maxItems | Max entities to return (search mode is capped at 50 per query by the API). |
Output
One dataset row per entity.
Search mode rows:
{ ok, id, label, description, aliases[], url }
Entities mode rows:
{ ok, id, label, description, aliases[],
instanceOf[], // P31, as Q-ids
occupation[], // P106, as Q-ids
countryOfCitizenship[], // P27, as Q-ids
claimsSummary, // { Pxx: [simplified values] }
enwikiTitle, enwikiUrl, // linked English Wikipedia article (null if none)
url } // https://www.wikidata.org/wiki/{id}
How claims are simplified
claimsSummary flattens each property's statements into a list of scalar values:
wikibase-entityid→"Q…"(the referenced item; not re-resolved — look it up separately if you need its label)time→ the time string (e.g.+1952-03-11T00:00:00Z)quantity→ the amount (e.g.+1.96)monolingualtext/string→ the textglobecoordinate→"lat,lon"- anything else → compact JSON, trimmed
To keep rows a sensible size, the summary keeps up to 60 properties and up to 20 values per property. instanceOf, occupation and countryOfCitizenship are surfaced as their own fields for convenience (also as Q-ids).
The multilingual (mul) fallback
Many international entities store their canonical label/aliases under Wikidata's special mul (multilingual) language rather than per-language. For example, Q42's label lives under mul, not en. This actor always requests both your chosen language and mul, so you still get label: "Douglas Adams" for Q42.
Pricing
$0.20 per 1,000 rows ($0.0002 each), plus $0.001 each time a run starts. Flat rate — no volume tiers, no plan gates — and you are charged only for rows actually returned.
You are charged one item per genuine entity row (ok: true). You are never charged for:
- empty/invalid input — a single
ok: falsediagnostic row witherrorCode: "BAD_INPUT", - no matches / no existing ids (
NO_RESULTS), - rate limits or network errors (
RATE_LIMITED/NETWORK).
Proxy
The Wikidata API is a public, no-auth JSON API with no anti-bot, so no proxy is required and the default runs without one (saving proxy credits). Only enable Apify Proxy if you hit IP rate limits at very high volume. A descriptive User-Agent is sent on every request per Wikimedia's API etiquette.
Examples
Search:
{ "mode": "search", "query": "douglas adams", "language": "en", "maxItems": 10 }
Resolve entities:
{ "mode": "entities", "ids": ["Q42", "Q5"], "language": "en" }
Billing
Two charges apply: a $0.001 run-start fee each time a run begins, and the $0.0002 per-row fee for entity rows actually delivered. Samples, diagnostics, duplicates, blocked look-ups and no-result runs never incur the per-result fee — a run that returns nothing costs only the $0.001 start fee. Resolving a 50-id batch in entities mode therefore costs $0.011 all-in.