Wikidata Sparql Entity Scraper avatar

Wikidata Sparql Entity Scraper

Pricing

from $2.99 / 1,000 results

Go to Apify Store
Wikidata Sparql Entity Scraper

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

ZeroBreak

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Wikidata SPARQL Entity Scraper cover

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

ParameterTypeRequiredDefaultDescription
modestringNosearchCollection mode. Search is supported.
actionstringNowbsearchentitiesEntity search action.
searchstringYespythonEntity name, keyword, or alias to search for.
languagestringNoenLanguage used for the search.
maxItemsintegerNo50Maximum number of entities to collect per run. Maximum: 1000.
requestDelayMsintegerNo1000Delay 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:

FieldDescription
entityIdUnique Wikidata entity identifier
entityTitleEntity title, typically the Q-ID
pageidWikidata page ID
concepturiEntity concept URI
repositoryRepository containing the entity
urlDirect Wikidata entity page URL
displayDisplay information, including label and description with language metadata
labelEntity label
entityDescriptionEntity description
matchMatch metadata, including match type, language, and matching text
scrapedAtCollection 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.

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?.