Request a tool
All toolsGuidesMCP serverRequest a toolPlatformsCategories
Wikidata Scraper icon

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.

56 runs on Apify $0.0002 per item ($0.2 / 1,000)
Run this in the cloudRun on Apify →

Developer & Research Tools

How it works

  1. 1
    Open it on Apify

    Hit Run on Apify — it opens the tool in the cloud, no install.

  2. 2
    Set the inputs

    Adjust mode, query, ids (sensible defaults are pre-filled).

  3. 3
    Click Run

    The tool runs on Apify’s cloud and collects the data for you.

  4. 4
    Export 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 forWhenPrice
Item returnedCharged per entity returned.$0.0002
Actor StartCharged 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

FieldWhat it doesType
modeWhat 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
queryFree-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
idsList 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
languageLanguage 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
maxItemsMaximum number of entities to return. In search mode the API caps results at 50 per query.integer
notionConnectorOptional. 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
notionParentIdOptional. 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:

idlabeldescriptionurlenwikiUrlinstanceOf

Export 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 iconDeveloper & Research Tools

Domain Inspector

Bulk-inspect domains: DNS records, RDAP registrar and expiry, redirects, TLS dates, security headers, robots, sitemaps and tech detection.

Ready to run — no setup

GitHub Scraper iconDeveloper & Research Tools

GitHub Scraper

Search GitHub repos or users and export clean rows: stars, forks, language, topics, license, plus user bio, company, location and follower count.

18 use cases

Stack Overflow / Stack Exchange Scraper iconDeveloper & Research Tools

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.

2 use cases

Package Registry Scraper (npm + PyPI) iconDeveloper & Research Tools

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.

2 use cases

arXiv Scraper iconDeveloper & Research Tools

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.

2 use cases

OpenAlex Scholarly Works Scraper iconDeveloper & Research Tools

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.

2 use cases

See all Developer & Research Tools →

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

FieldNotes
modesearch (default) or entities.
querySearch term. Used in search mode.
idsArray of Q-ids, e.g. ["Q42","Q5"]. Used in entities mode. Batched 50/request.
languageTerm language, e.g. en, fr, de. Falls back to the multilingual (mul) value when missing.
maxItemsMax 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 text
  • globecoordinate"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: false diagnostic row with errorCode: "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.