Cannot access all ids in /v2/titles
Web Programmer
https://api.guildwars2.com/v2/titles?ids=all is returning “all ids are invalid” for you? It’s returning all the title data without error for me.
it will return an idea if I specify it, but if I specify all it says ‘text’: ‘no such id’ or ‘text’: ‘all ids provided are invalid’. I am implementing this in Python.
Here is the code (admittedly I’m using some code from YouTube as I’m learning to work with API’s and Python. I may easily be making a mistake.
import urllib.parse
import requests
from pprint import pprint
main_api = ‘https://api.guildwars2.com/v2/titles?ids=all’
address = ‘address’
url = main_api + urllib.parse.urlencode({’address’:address})
json_data = requests.get(url).json()
pprint(json_data)
*note that it doesn’t matter if I set address to 1, all, or slayer. I get one of the two errors mentioned.
I edited it so that:
main_api=‘https://api.guildwars2.com/v2/titles
ids = ’all’
url = main_api + urllib.parse.urlencode({’ids’: ’all’})
…
and kitten it if a pair of quotation marks wasn’t my error…
The PoF preorder title seems to be missing in the title list
the PoF preoder title seems to be id 279 because I have it and it is missing on https://api.guildwars2.com/v2/titles?ids=all