Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.69 KB

API_DOC.md

File metadata and controls

48 lines (36 loc) · 2.69 KB

API Usage

The API is available to use for retrieving gear sheets and sets.

Simple Set Retrieval

When you have a link such as https://share.xivgear.app/share/cd2c8bf4-1fa2-4197-88f5-f305b9a93bdf, or the equivalent https://xivgear.app/#/sl/cd2c8bf4-1fa2-4197-88f5-f305b9a93bdf, the cd2c8bf4-1fa2-4197-88f5-f305b9a93bdf part is the sheet/set ID.

You can retrieve the data by GETing https://api.xivgear.app/shortlink/cd2c8bf4-1fa2-4197-88f5-f305b9a93bdf.

The retrieved JSON data can then be interpreted according to the TSDocs. It is of type TopLevelExport, which then resolves to either SheetExport or SetExport, representing an exported gear planning sheet or individual gear set, respectively.

Detailed Set Retrieval

If you want something more equivalent to the Etro API which also returns derived information about a set (e.g. computed stats of a set), rather than purely the user-specified information (like the items and materia), you can use the https://api.xivgear.app/fulldata/ endpoint. You should not use this if not needed, as it is significantly slower.

To use /fulldata/, specify either a set UUID or a bis link, e.g.:

The fulldata endpoint returns a SheetStatsExport object (even when the original data source was a single set, rather than a full sheet).

The fulldata endpoint accepts some URL query parameters:

  • partyBonus - override the party bonus. Specify as a number, i.e. ?partyBonus=3.