API:2/continents
From Guild Wars 2 Wiki
< API:2
Jump to navigationJump to search/v2/continents
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2015-02-13
- Scope
- none
- Optional
- none
This resource returns static information about the continents, floors, regions, maps, sectors, points of interest and tasks.
Contents
Parameters
- Optional parameters
lang
– The language to display the texts in.- Possible values:
- en (English, default)
- de (German)
- es (Spanish)
- fr (French)
Subresources
<continent_id>/floors
<continent_id>/floors/<floor_id>/regions
<continent_id>/floors/<floor_id>/regions/<region_id>/maps
<continent_id>/floors/<floor_id>/regions/<region_id>/maps/<map_id>/sectors
<continent_id>/floors/<floor_id>/regions/<region_id>/maps/<map_id>/pois
<continent_id>/floors/<floor_id>/regions/<region_id>/maps/<map_id>/tasks
Response
If the root endpoint (/v2/continents
) 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 continent id, an object with the following properties is returned:
id
(number) – The id of the continent.name
(string) – The name of the continent.continent_dims
(array of two numbers) – The width and height dimensions of the continent.min_zoom
(number) – The minimal zoom level for use with the map tile service.max_zoom
(number) – The maximum zoom level for use with the map tile service.floors
(array of numbers) – A list of floors available for this continent.
Note: There are only two continents, Tyria and Mists.
For each requested sector, an object with the following properties is returned:
id
(number) – The id of the sector.name
(string) – The name of the sector.level
(number) – The level of the sector.coord
(array of two numbers) – The width and height dimensions of the continent.bounds
(array of array of two numbers)chat_link
(string)
Example
https://api.guildwars2.com/v2/continents?ids=all
[ { "name": "Tyria", "continent_dims": [ 32768, 32768 ], "min_zoom": 0, "max_zoom": 7, "floors": [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 18, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -13, -14, -15, -16, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 34, 36, 37, 40, 38, 39, 42, 44, 45 ], "id": 1 }, { "name": "Mists", "continent_dims": [ 16384, 16384 ], "min_zoom": 0, "max_zoom": 6, "floors": [ 1, 3, 5, 6, 7, 9, 10, 13, 14, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, -27, -28, -29, -30, -31, 32 ], "id": 2 } ]