All free APIs
Free APIKnowledgeNo keyOfficial

Wikidata Query Service & REST API

Query the world's largest open knowledge graph with SPARQL, no key

Wikidata is the structured-data backbone behind Wikipedia: a free, collaborative knowledge graph of people, places, organizations and concepts with stable Q-identifiers. The public SPARQL endpoint runs arbitrary graph queries, and the Wikibase REST API returns labels, descriptions and statements for any entity. Both are open and keyless.

Free tier

Free, no key

Rate limits

SPARQL public endpoint: 60-second query timeout, generous concurrency but throttled on abuse. REST API governed by Wikimedia etiquette; send a User-Agent

Auth

No key

Base URL

https://query.wikidata.org

What you'd build with it

  • Build an entity-resolution tool that maps text mentions to canonical Q-IDs
  • Pull structured facts (birth dates, coordinates, relationships) for enrichment
  • Power a SPARQL-backed reasoning step inside an AI automation
  • Join Wikidata IDs to Wikipedia articles and external databases

Key endpoints

  • GET/sparql?query={sparql}Run a SPARQL query against the full Wikidata graph
  • GET/bigdata/namespace/wdq/sparqlCanonical SPARQL endpoint alias
  • GET/w/rest.php/wikibase/v1/entities/items/{id}Fetch an item's full structured data (REST)
  • GET/w/rest.php/wikibase/v1/entities/items/{id}/labelsGet an item's labels in all languages (REST)
Members

Members get the runnable recipe

Sign in free to copy the example request, see a sample response, and read the gotchas.

Tags

knowledgegraphsparqlreferencelinked-data