Wikidata Sparql Entity Scraper
Pricing
from $2.99 / 1,000 results
Wikidata Sparql Entity Scraper
This Actor executes custom SPARQL queries against Wikidata to extract structured entity records, relationships, and metadata. It collects identifiers, labels, descriptions, and connected properties to support knowledge graph enrichment, semantic web research, and automated data mapping.
Pricing
from $2.99 / 1,000 results
Rating
0.0
(0)
Developer
ZeroBreak
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Wikidata SPARQL Entity Scraper — Knowledge Graph Entity Search

Overview
Wikidata SPARQL Entity Scraper collects structured entity information from Wikidata based on a search query and selected language. It retrieves entity identifiers, labels, descriptions, concept URIs, page links, and matching metadata.
Search for people, places, organizations, concepts, and other entities, then export structured results in JSON, CSV, Excel, or other supported dataset formats.
Features
- Search Wikidata entities by label or alias
- Choose the language for search results
- Collect stable Wikidata entity IDs (Q-IDs)
- Extract entity labels and descriptions
- Capture page IDs and concept URIs
- Retrieve entity page links and repository information
- Collect display labels and descriptions with language metadata
- Extract match type and matching text
- Paginate through search results up to your selected item limit
Collection Mode
Search: Find Wikidata entities matching a keyword or entity name in your selected language.
Input Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode | string | No | search | Collection mode. Search is supported. |
action | string | No | wbsearchentities | Entity search action. |
search | string | Yes | python | Entity name, keyword, or alias to search for. |
language | string | No | en | Language used for the search. |
maxItems | integer | No | 50 | Maximum number of entities to collect per run. Maximum: 1000. |
requestDelayMs | integer | No | 1000 | Delay between requests in milliseconds. |
Example Input
{"mode": "search","action": "wbsearchentities","search": "python","language": "en","maxItems": 50,"requestDelayMs": 1000}
Extracted Data
Each dataset record represents a Wikidata entity and can include the following fields:
| Field | Description |
|---|---|
entityId | Unique Wikidata entity identifier |
entityTitle | Entity title, typically the Q-ID |
pageid | Wikidata page ID |
concepturi | Entity concept URI |
repository | Repository containing the entity |
url | Direct Wikidata entity page URL |
display | Display information, including label and description with language metadata |
label | Entity label |
entityDescription | Entity description |
match | Match metadata, including match type, language, and matching text |
scrapedAt | Collection timestamp |
Example Output
{"entityId": "Q28865","entityTitle": "Q28865","pageid": 32213,"concepturi": "http://www.wikidata.org/entity/Q28865","repository": "wikidata","url": "https://www.wikidata.org/wiki/Q28865","display": {"label": {"value": "Python","language": "en"},"description": {"value": "general-purpose programming language","language": "en"}},"label": "Python","entityDescription": "general-purpose programming language","match": {"type": "label","language": "en","text": "Python"},"scrapedAt": "2026-10-26T00:00:00+00:00"}
The example illustrates the output structure. Actual entities and descriptions depend on your search query and selected language.
Use Cases
- Knowledge research: Find Wikidata entities and identifiers related to a research topic.
- Entity resolution: Match names and aliases to stable Wikidata Q-IDs.
- Dataset building: Create structured entity datasets for controlled vocabularies and knowledge bases.
- Data enrichment: Add entity labels, descriptions, and reference links to existing datasets.
- Dashboard feeds: Refresh entity searches and organize results for analysis.
FAQ
Who is this scraper for?
Researchers, data engineers, analysts, and developers who need structured Wikidata entity information.
Can I search in different languages?
Yes. Set the language parameter to your preferred language code.
What is a Wikidata Q-ID?
A Q-ID is a unique identifier assigned to a Wikidata entity, such as Q28865.
Can I search for aliases?
Yes. Entity searches can match labels and aliases where available.
Can I run it on a schedule?
Yes. Use Apify schedules to repeat searches at your preferred intervals.
How many entities can it collect?
You can configure maxItems up to 1000 per run.
What formats are supported?
Results can be exported as JSON, CSV, Excel, and other supported Apify dataset formats.
Is Web Scraping Legal?
Collecting information that is already public is generally legal. There is no single law that bans all forms of web scraping. The limits are the usual ones: do not break into accounts, do not take private or confidential data, and be careful with personal data and copyrighted works. A site's terms can also restrict how you access it. Facts such as a public name, price, or rating are not the same as republishing someone's article or photo.
This actor collects information from public pages. It does not log in and it does not bypass access controls.
For a longer explanation, see Apify's article Is web scraping legal?.