API:2/account/luck

From Guild Wars 2 Wiki
< API:2‎ | account
Jump to: navigation, search

/v2/account/luck

HTTP method
GET
Format
json
API version
version 2
Release date
2019-04-08
Scope
account
progression
unlocks
Optional
none

This resource returns the total amount of luck consumed on an account. This endpoint is only accessible with a valid API key.

Parameters

  • access_token (optional) – Can be used to specify an API key for the request if it is not given in the request header.

Response

The endpoint returns an array with a singular object containing the following:

  • id (string) – The string "luck".
  • value (number) – The amount of luck consumed

If an account has no luck an empty array ([]) will be returned.

Example

Request

https://api.guildwars2.com/v2/account/luck
Authorization: Bearer <API key>

Response

[
  {
    "id": "luck",
    "value": 4295449
  }
]

Notes

  • This includes any luck consumed beyond the 4,295,450 required to hit the cap for magic find from luck.
  • The response is an array due to the way luck is stored internally.