# Wikidata Scraper - Entity Search, IDs and Claims

One of the tools on damistudio.io. Index of all of them: https://damistudio.io/llms.txt

URL: https://damistudio.io/tools/wikidata-scraper/
Run: https://apify.com/dami_studio/wikidata-scraper?fpr=wcqem0
Category: Developer & Research Tools
Pricing: $0.0002 per item ($0.20 per 1,000) on Apify's Free plan, read on 5 November 2026.
Apify name: dami_studio/wikidata-scraper
Latest version: 0.1.30, updated 27 October 2026
From an AI chat: add Apify's connector (https://mcp.apify.com/), sign in with your Apify account, then ask:
  Use the Wikidata Scraper (dami_studio/wikidata-scraper) to look up "Q42" and "Q5" on Wikidata, and return one row per entity: Q-id, label, description, aliases, link.
Preset address for apps that take one: https://mcp.apify.com?tools=dami_studio/wikidata-scraper (runs go on your own Apify account)

Wikidata scraper: search by name, or resolve Q-ids like Q42 into full records. Each row holds the Q-id, label, description, aliases and link; resolved IDs add instance of, occupation, citizenship, a claims summary and the English Wikipedia link. Facts come back as Q-ids.

Inputs:
- `mode` (string): 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).
- `query` (string): 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.
- `ids` (array): 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.
- `language` (string): 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.
- `maxItems` (integer): Maximum number of entities to return. In search mode the API caps results at 50 per query.
- `notionConnector` (string): 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.
- `notionParentId` (string): 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.

Documentation:

**Wikidata scraper for a name search, or a list of Q-ids turned into full records**: the label, description and aliases, what the thing is an instance of, occupation, citizenship, a flattened summary of every other claim, and the English Wikipedia link. No API key, no login.

The awkward part first, because it changes how you use it. Facts in Wikidata point at other Wikidata items, so `occupation` comes back as `Q36180`, not as the word "writer". If you want words, you resolve those IDs in a second pass.

|  |  |
|---|---|
| **Input** | A search term, or a list of Q-ids |
| **Output** | One row per entity: Q-id, label, description, aliases, link. Resolved IDs add instance of, occupation, citizenship, a claims summary and the English Wikipedia article |
| **Ceiling** | 1,000 entities per run resolving IDs, 50 per search |
| **Account needed** | None, and no API key |

## 🔍 What Wikidata Scraper does

`search` mode runs one free-text lookup against Wikidata and returns matching items with their Q-id, label, description and the alias that matched. Wikidata caps this at 50 results, so `maxItems` above 50 in search mode gets you 50.

`entities` mode takes Q-ids and resolves them properly, 50 IDs at a time, as many rounds as your list needs. This is the mode with the real detail in it.

Labels are fetched in your `language`, and in Wikidata's multilingual `mul` bucket as well. That matters more than it sounds: `Q42`'s label lives under `mul`, not under `en`, so asking for English alone would come back blank.

## 📋 What data you get from each Wikidata entity

| What you get | Field |
|---|---|
| The Q-id and its Wikidata page | `id`, `url` |
| Label and short description, in your language | `label`, `description` |
| Other names it goes by | `aliases` |
| What kind of thing it is (P31) | `instanceOf` |
| Occupation (P106) and country of citizenship (P27) | `occupation`, `countryOfCitizenship` |
| Every other property, flattened to plain values | `claimsSummary` |
| The English Wikipedia article | `enwikiTitle`, `enwikiUrl` |

Everything below `aliases` comes from `entities` mode. A search row stops at the first four lines.

## 🚧 What it does not do

- **Search stops at 50 results.** That is Wikidata's cap, and no `maxItems` raises it. Resolve IDs when you need volume.
- **Items only.** Property pages and lexemes are rejected rather than returned.
- **Referenced items stay as Q-ids.** Nothing resolves `Q36180` to "writer" for you.
- **Claims are flattened.** Qualifiers, references and rank are dropped, and the summary is capped at 60 properties with 20 values each.
- **Only the English Wikipedia link** comes back, even when the entity has articles in other languages.
- **No SPARQL.** This is entity search and entity lookup, not the query service.
- **If a batch fails partway through a long ID list, the run ends with a diagnostic row** and the entities already fetched do not land. Split very long lists across runs.
- It is not an official Wikidata tool. Dami's Studio is independent and is not affiliated with or endorsed by Wikidata or the Wikimedia Foundation, or by any other company named on this page.

## Questions people ask

### What does Wikidata Scraper do?

Wikidata scraper: search by name, or resolve Q-ids like Q42 into full records. Each row holds the Q-id, label, description, aliases and link; resolved IDs add instance of, occupation, citizenship, a claims summary and the English Wikipedia link. Facts come back as Q-ids.

### What do I give Wikidata Scraper?

A search term, or a list of Q-ids.

### What do I get back from Wikidata Scraper?

One row per entity: Q-id, label, description, aliases, link. Resolved IDs add instance of, occupation, citizenship, a claims summary and the English Wikipedia article.

### How much does Wikidata Scraper cost?

$0.0002 per item ($0.20 per 1,000) on Apify's Free plan. Paid plans pay a little less. It is billed on your own Apify account.

### Can I run Wikidata Scraper from my AI chat?

Yes, from any app that supports MCP connectors. Add Apify's connector (https://mcp.apify.com/), sign in with your Apify account, and ask for dami_studio/wikidata-scraper. The steps are on the Use with AI page. Each run goes on your own Apify account, at the prices on its Apify page.

### Do I need to write code to use Wikidata Scraper?

No. Open it on Apify, fill in the form, click Run and download the results.
