API:2/backstory/questions

From Guild Wars 2 Wiki
Jump to: navigation, 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 specificed id when accessing the endpoint (v2/backstory/questions/id). Cannot be used when specifying the id or ids parameters.

Parameters

  • lang – (Optional) Request localized information.
  • page - (Optional; integer)
  • page_size - (Optional; integer)
  • id - (Optional) Request the question for the specified id. Cannot be used when specifying the id endpoint or ids parameter.
  • ids - (Optional; Comma Delimited List|all) Request an array of questions for the specified ids or all questions. Cannot be used when using the id endpoint or id parameter.

Response

For each requested Biography question id, an object with the following properties is returned:

  • id (integer) (default/null value: 0) - The id 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"]
 }
]