Page MenuHomePhabricator

Wikimedia Commons API call
Open, Needs TriagePublic

Description

Wikimedia Commons API call should read subcategories and structured data

API Sandbox https://commons.wikimedia.org/wiki/Special:ApiSandbox
API: https://commons.wikimedia.org/w/api.php

Structured data

Development of Structured Data on Commons is tracked on Phabricator.

Structured Data on Wikimedia Commons is powered by the Wikibase software. Data can be accessed via API; see https://www.mediawiki.org/wiki/Wikibase/API for documentation.

Requirements for the API call

  • The request must query the linked Wikimedia Commons category and its subcategories recursively. The query must take into account possible loops. (MediaWiki API)
  • Text based search results will be added to the result set (MediaWiki API)
  • SDC query results will be added to the result set. (SPARQL)

Event Timeline