API:2/backstory/questions
From Guild Wars 2 Wiki
Jump to navigationJump to search
/v2/backstory/questions
- HTTP method
- GET
- Format
- json
- API version
- version 2
- Release date
- 2016-04-29
- Scope
- none
- Optional
- none
This resource returns information about the Biography questions that are in the game.
Endpoints
- None - Request the list of all available question
ids
when the root endpoint (v2/backstory/questions
) has been accessed. id
- (Optional) Request the question for the specificedid
when accessing the endpoint (v2/backstory/questions/id
). Cannot be used when specifying theid
orids
parameters.
Parameters
lang
– (Optional) Request localized information.page
- (Optional; integer)page_size
- (Optional; integer)id
- (Optional) Request the question for the specifiedid
. Cannot be used when specifying theid
endpoint orids
parameter.ids
- (Optional; Comma Delimited List|all) Request an array of questions for the specifiedids
or all questions. Cannot be used when using theid
endpoint orid
parameter.
Response
For each requested Biography question id
, an object with the following properties is returned:
id
(integer) (default/null value: 0) - Theid
of the question.title
(string) (default/null value: "") - The title (or name) of the question.description
(string) (default/null value: "") - The description of the question; as displayed in-game when presented as a Biography choice during character creation.answers
(array of integer) (default/null value: {}) - The list of answers for this question; resolvable against v2/backstory/answers.order
(integer) (default/null value: 0) - The order in which this question is displayed in-game while answering your characters' Biography questions during character creation.races
(array of string) (default/null value: {}) (Optional) - When present, an array of races that this question is presented to.professions
(array of string) (default/null value: {}) (Optional) - When present, an array of professions that this question is presented to.
Example
https://api.guildwars2.com/v2/backstory/questions
[ 7, 10, 11, 187, 188, 189 ]
https://api.guildwars2.com/v2/backstory/questions/7
{ "id":7, "title":"My Personality", "description":"Trouble may follow me, but I use my ______ to overcome it.", "answers":["7-53","7-54","7-55"], "order":1 }
https://api.guildwars2.com/v2/backstory/questions?ids=187
[ { "id":187, "title":"The Guise I Wear.", "description":"In my line of work, it's important to understand the power of ______.", "answers":["187-184","187-185","187-186"], "order":0, "professions":["Thief"] } ]