Skip to content

Wikidata API

ozankrkya edited this page Mar 15, 2024 · 4 revisions

Introduction

Wikidata, a project of the Wikimedia Foundation, serves as a centralized database for structured data that powers Wikipedia and its sister projects.

Wikidata is a free and open knowledge base that can be read and edited by both humans and machines.

Wikidata acts as central storage for the structured data of its Wikimedia sister projects including Wikipedia, Wikivoyage, Wiktionary, Wikisource, and others.

WikiData's powerful Application Programming Interface (API), grants developers the ability to programmatically access, query, and contribute to the vast wealth of knowledge stored within WikiData.

Getting Started

To use WikiData API, first, you need to set up your authentication.

Once you have obtained your API credentials, you're ready to start making requests to the WikiData API by following the OpenAPI Swagger documentation of Wikibase.

Depending on your programming environment, you may need to install additional libraries or packages to facilitate HTTP requests. Consult the documentation for your chosen programming language or framework for specific instructions on how to install and use it.

An example set up & implementation in Python

Rate Limiting and Quotas

Some actions of the API can be rate limited.

Normally if your account has the noratelimit right (e.g. Is in the Bot or Admin group)

Screenshot 2024-03-11 at 16 57 42

More information about API rate limits

Error Handling

The Wikibase REST API throws informative error messages. For details visit here.

API users who have set the bot flag and receive a 403 (rest-write-denied) error likely lack the bot user right.

Advanced Topics

Some advanced topics found:

  • Revision History
  • Edit Summaries
  • Data import & Data export
  • Caching
  • Geospatial Data Support (with GeoSPARQL Queries)
  • Language-Based Queries

Sources:

Tutorials:

Documentations:

Example projects:

General:


BOUNSWE2024 - G11

Logo Turquiz App

⏳ Status

  • Implementation Phase 1
  • Design
  • Scenarios & Mockups
  • Software Requirements Specification
  • Forming the Team

🧑🏼‍💻 Team

📝 Diagrams

📆 Lab Reports

📆 Meeting Notes

📍 Milestones

📚 User Scenarios

📚 Resources

🔎 Research

🗂️ Templates

Clone this wiki locally