API:1/world_names
From Guild Wars 2 Wiki
< API:1
Jump to navigationJump to search
/v1/world_names.json
- HTTP method
- GET
- Format
- json
- API version
- version 1
- Release date
- ?
- Scope
- none
- Optional
- none
This resource returns an unordered list of the localized world names for the specified language.
Parameters
- Optional parameters
lang
– The language to query the names for.
Response
The response is a list of objects with the following properties:
id
(string) – The world id. The first digit indicates the world's region: 1 = North America, 2 = Europe.name
(string) – The name of the world in the specified language.
Example
https://api.guildwars2.com/v1/world_names.json?lang=es
[ { "id": "1015", "name": "Isla de Janthir" }, { "id": "1001", "name": "Roca del Yunque" }, ... ]
Notes
- The second digit of the id is currently correlated with the world's assigned language: 0 = no language, 1 = French, 2 = German, 3 = Spanish. This correlation is not guaranteed to persist in the future, i.e. if new worlds are added or if the language assignments of current worlds are changed.