API talk:2/achievements/daily
The required_access property is broken for the URL (https://api.guildwars2.com/v2/achievements/daily) in that it is set for ALL entries and has the same value for ALL entries:
"required_access": [ "GuildWars2", "HeartOfThorns", "PathOfFire" ]
Only if an additional query param v=2019-05-16T00:00:00.000Z is provided will the property work correctly. I.e. it is included only if an achievement has product access rules.
From my observations,
The required_access format is an object with a product value corresponding to an expansion and a condition value indicating whether the achievement is unlocked or locked for that product.
- The product value can be one of: HeartOfThorns, PathOfFire.
- The condition value can be one of: NoAccess, HasAccess
So an example would be:
{ "id": 3721, "level": { "min": 80, "max": 80 }, "required_access": { "product": "PathOfFire", "condition": "HasAccess" } }, { "id": 1839, "level": { "min": 80, "max": 80 }, "required_access": { "product": "PathOfFire", "condition": "NoAccess" } },
This is saying that the achievement 3721 is available only for PathOfFire while the achievement 1839 is unavailable for PathOfFire. So if your account has the Path of Fire expansion, you will see 3721 but not 1839. If your account does not have the Path of Fire expansion, then you will see 1839 but not 3721.
So for now, always call this: https://api.guildwars2.com/v2/achievements/daily?v=2019-05-16T00:00:00.000Z