Sep 28, 2023 · The Wikibase REST API is an OpenAPI -based interface that allows users to interact with, retrieve and edit Items and statements on Wikibase instances -- including of course Wikidata. For more information about REST, see the Wikipedia entry on representational state transfer . How to use the API [ edit]
- Using Wikidata's Data
- Wikimedia Projects
- Data Best Practices
- Access Best Practices
- When to Use It?
- Less Verbose RDF Output
- Revisions and Caching
- When to Use them?
Wikidata offers a wide range of general data about everything under the sun. All that data is licensed CC0, "No rights reserved", for the public domain. Changes to APIs and other methods of accessing Wikidata are subject to the Stable Interface Policy. Data sources on this page are not guaranteedto be stable interfaces.
This document is about accessing data from outside Wikimedia projects. If you need to present data from Wikidata in another Wikimedia project, where you can employ parser functions, Lua and/or other internal-only methods, refer to How to use data on Wikimedia projects.
We offer the data in Wikidata freely and with no requirement for attribution under CC-0. In return, we would greatly appreciate it if, in your project, you mention Wikidata as the origin of your data. In so doing you help ensure that Wikidata will stay around for a long time to provide up-to-date and high-quality data. We also promote the best proj...
When accessing Wikidata's data, observe the following best practices: 1. Follow the User-Agent policy – send a good User-Agent header. 2. Follow the robot policy: send Accept-Encoding: gzip,deflateand don’t make too many requests at once. 3. If you get a 429 Too Many Requests response, stop sending further requests for a while (see the Retry-Afterr...
Use search when you need to look for a text string, or when you know the names of the entities you're looking for but not the exact entities themselves. It's also suitable for cases in which you can specify your search based on some very simple relations in the data. Don't use search when the relations in your data are better described as complex.
You can make your search more powerful with these additional keywords specific to Wikidata: haswbstatement, inlabel, wbstatementquantity, hasdescription, haslabel. This search functionality is documented on the CirrusSearch extension page. It also has its own API action.
By default, the RDF data that the Linked Data interface returns is meant to be complete in itself, so it includes descriptions of other entities it refers to. If you want to exclude that information, you can append the query parameter ?flavor=dumpto the URL(s) you request. By appending &flavorto the URL, you can control exactly what kind of data ge...
You can request specific revisions of an entity with the revision query parameter: https://www.wikidata.org/wiki/Special:EntityData/Q42.json?revision=112. The following URL formats are used by the user interface and by the query service updater, respectively, so if you use one of the same URL formats there’s a good chance you’ll get faster (cached)...
Use a dump when your result set is likely to be very large. You'll also find a dump important when setting up your own query service. Don't use a dump if you need current data: the dumps take a very long time to export and even longer to sync to your own query service. Dumps are also unsuitable when you have significant limits on your available ban...
People also ask
What is Wikidata & how does it work?
Does qwikidata support the Wikibase action API?
How do I access the MediaWiki action API?
How can I download information from Wikipedia?
How can I download the complete Wikidata database? Asked 10 years, 6 months ago Modified 2 years, 8 months ago Viewed 11k times 30 Wikidata is a new Wikimedia project: It centralizes access to and management of structured data, such as interwiki references and statistical information.
Access free downloads of wiki content and data that you can use in research, offline reading, bot editing, and other projects. Read more on Meta-Wiki Find technical documentation, and connect with Wikimedia developer communities.
Apr 5, 2023 · The current version of Wikidata Toolkit can be used to automatically download and process dump-files from Wikidata.org in Java. This is useful if you want to process all data in Wikidata.org in a streaming fashion in Java. Advanced query capabilities will be added in upcoming versions.