You are making wrong API call,also missing achievements
But if fix that still not work.
Just to make a link that work.
/
But if fix that still not work.
>>> import urllib.parse ... import requests ... ... main_api = 'https://api.guildwars2.com/v2/achievements/' ... url = main_api + urllib.parse.urlencode({'address': address}) ... json_data = requests.get(url).json() ... print(json_data) {'text': 'no such id'}Doc for API
Just to make a link that work.
>>> import urllib.parse ... import requests ... from pprint import pprint ... ... main_api = 'https://api.guildwars2.com/v2/achievements/' ... url = main_api + urllib.parse.urlencode({'1?lang': 'en'}) ... json_data = requests.get(url).json() ... pprint(json_data)
Output:{'description': 'A few more centaur herds are thinned out.',
'flags': ['Permanent'],
'id': 1,
'locked_text': '',
'name': 'Centaur Slayer',
'requirement': 'Kill centaurs.',
'tiers': [{'count': 10, 'points': 1},
{'count': 100, 'points': 5},
{'count': 500, 'points': 5},
{'count': 1000, 'points': 5}],
'type': 'Default'}
>>> json_data['description']
'A few more centaur herds are thinned out.'