Path of Exile Wiki:Data query API: Difference between revisions
>OmegaK2 No edit summary |
>OmegaK2 No edit summary |
Revision as of 22:35, 10 February 2018
This page contains development information and is intended for developers and not regular end users.
Overview
Just like other wikis the Path of Exile wiki can be accessed through the Mediawiki API. This allows for much faster page editing as well as data retrieval.
In addition cargo can be used to execute powerful mediawikiwiki:Extension:Cargo/Querying_data and retrieve fields from cargo tables.
Using the API to retrieve Path of Exile data
If you need certain data such as item or mod data for your tools it is highly advised to use the cargo API to retrieve it. It will be much faster then scraping the wiki pages and reduce the overhead significantly on both your script and the wiki server.
When using tables, it's advisable to check the documentation of the module or template that adds the fields. You can also check CargoTables to see cargo tables.
Items
All items on the wiki are exposed by Template:Item and are fully powered by semantic media wiki - this means you can query just about any property of an item to create convenient item lists.
Examples
cargoquery
This will return a json list containing the first 5 distinct names of unique items.