agereus.5817:

It’s strange, I can navigate to /v2/title?ids=all but I cannot use that as my url for pulling out JSON data, I get back the response ‘all ids are invalid’. Why is this?

Lawton Campbell.8517:

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.

agereus.5817:

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.

agereus.5817:

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…

Mel.3064:

The PoF preorder title seems to be missing in the title list

Mel.3064:

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