Posted on:

11 Nov 2022

1

Doesn't show the status code 400 anymore

# Just a reference for others
invalid_url_2 = "https://api.exchangerate.host" + "/2019-14-01"
response = requests.get(invalid_url_2)
response
# this date also works. counting the month after 2019

data = response.json()
print(json.dumps(data, indent = 3))
# this shows the data for the date '2020-02-01'

0 answers ( 0 marked as helpful)

Submit an answer