API:2/materials
From Guild Wars 2 Wiki
< API:2
Jump to navigationJump to search
/v2/materials
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2015-06-25
- Scope
- none
- Optional
- none
This resource returns information about the categories in material storage.
Parameters
lang
– Request localized information.
Response
If the root endpoint (/v2/materials
) is accessed without specifying an id, a list of all ids is returned. When multiple ids are requested using the ids
parameter, a list of response objects is returned.
For each requested material id, an object with the following properties is returned:
id
(number) – The category id.name
(string) – The category name.items
(array of numbers) – The ids of the items in this category.order
(integer) – The order in which the category appears in the material storage.
Example
https://api.guildwars2.com/v2/materials/38
{ "id": 38, "name": "Festive Materials", "items": [ 36060 , 36061 , 36059 , 36041 , 38130 , 38131 , 38132 , 38133 , 38134 , 38135 , 43319 , 47909 , 48807 , 48805 , 48806] }