Overview
Wikidata is a free, collaboratively edited knowledge base maintained by the Wikimedia Foundation that stores structured data behind Wikipedia and other Wikimedia projects. You can query its billions of facts using the SPARQL query language or the simpler Action API—read-only queries do not require authentication. It is the go-to source for structured, multilingual, open knowledge about people, places, events, and concepts.
Beginner Tip
Start with the Wikidata Query Service (https://query.wikidata.org) to interactively build and test SPARQL queries before integrating them into your app—it provides autocomplete and instant results without any setup.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Wikidata",
"description": "Collaboratively edited knowledge base operated by the Wikimedia Foundation",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
entities Map of entity IDs (e.g., Q42) to their full data objects. entities[id].labels Human-readable names for the entity in multiple languages, keyed by language code. entities[id].descriptions Short descriptions of the entity in multiple languages. entities[id].claims Structured statements about the entity, organized by property ID (P-numbers). entities[id].sitelinks Links to corresponding pages on Wikimedia sites like Wikipedia, keyed by wiki name. Implementation Example
const url = "https://www.wikidata.org/w/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →GENESIS
The GENESIS API provides access to official statistical data from the Federal Statistical Office of Germany (Destatis).
Socrata
Socrata is a powerful open data platform that gives you access to thousands of government and civic datasets from around the world.
Yelp
Yelp provides programmatic access to find local business via REST API.
18F
18F provides programmatic access to unofficial us federal government api development via REST API.
API Setu
API Setu is an Indian Government platform that aggregates a wide variety of official APIs covering KYC verification, business registration, education records, and employment data.