API:2/backstory/answers

From Guild Wars 2 Wiki
Jump to navigationJump to search

/v2/backstory/answers

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 answers that are in the game.

Endpoints

  • None - Request the list of all available answer ids when the root endpoint (v2/backstory/answers) has been accessed.
  • id - (Optional) Request the answer for the specified id when accessing the endpoint (v2/backstory/answers/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 answer 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 answers for the specified ids or all answers. Cannot be used when using the id endpoint or id parameter.

Response

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

  • id (string) (default/null value: 0) - The id of the answer.
  • title (string) (default/null value: "") - The title (or name) of the answer.
  • description (string) (default/null value: "") - The description of the answer; as displayed in-game when presented as an answer choice to a question during the Biography portion of character creation.
  • journal (string) (default/null value: "") - The Story Journal entry for the answer; as displayed in-game.
  • question (integer) (default/null value: 0) - The id of the Biography question that this answers; resolves against v2/backstory/questions.
  • professions (array of string) (default/null value: {}) (Optional) - When present, an array of professions that this answer is available as a choice for.
  • races (array of string) (default/null value: {}) (Optional) - When present, an array of races that this answer is available as a choice for.

Example

https://api.guildwars2.com/v2/backstory/answers

[
 "7-54",
 "188-189",
 "22-109",
 ...,
 "21-106",
 "31-138",
 "183-173"
]

https://api.guildwars2.com/v2/backstory/answers/7-54

 {
   "id": "7-54",
   "title": "Dignity",
   "description": "I'm dignified even when up to my ears in mud. It's what makes people respect me. A serious, thoughtful demeanor is the route to success.",
   "journal": "Though trouble may follow me, I overcome it with dignity.",
   "question": 7
 }

https://api.guildwars2.com/v2/backstory/answers?ids=7-54,22-109

 [
   {
       "id": "7-54",
       "title": "Dignity",
       "description": "I'm dignified even when up to my ears in mud. It's what makes people respect me. A serious, thoughtful demeanor is the route to success.",
       "journal": "Though trouble may follow me, I overcome it with dignity.",
       "question": 7
   },
   {
       "id": "22-109",
       "title": "Dead Sister",
       "description": "My sister was a Seraph. Centaurs killed her while she was out on patrol. They never recovered her body, and it has always bothered me.",
       "journal": "I've made something of myself, and the only thing I regret is that I never recovered my sister's body.",
       "question": 22,
       "races": [
           "Human"
       ]
   }
 ]