Historical_url reques does not show up
I have followed with all details the step by step process in this lesson, however when I tried to bring the historical_url request, it said 401 error. I don't know if the format have been updated or what's going on but I have been not able to get the historical_url request.
Unfortunately, at some point, the API owners decided to change its structure. That's why the code for this section is broken. Right now, the API has a free plan that has basic functionality, however, even the free plan requires registration.
365 Team, Nikola
I think the following code should work:
The KEY is free to get from https://apilayer.com/
I got it right, just need to change following:
base_url = "https://api.apilayer.com/exchangerates_data"
header = apikey = yourkey
time_period = base_url + "/timeseries" + "?start_date=2017-04-26&end_date=2018-04-26" + "&symbols=GBP"
data = requests.get(time_period, headers = headers).json()
As of now (Sept 2023), even obtaining the free key doesn't help. I couldn't get a response even in the browser with the instructions they specified: "your subscription plan does not support https" - or smth similar worded.
Used api.exchangerate.host as suggested in the comments under one of the first api lessons.
I understand that produce and re-record new videos is a cumbersome undertaking (though as a resource that takes money for teaching should have it's materials up to date, don't you agree? At least, in a year after the initial complaints started).
Suggest you introduce an optional text field under the each video to post corrections, remarks and updates. Not productive time spent looking through all the comments in hopes to find smth. Seen this way implemented in EdX - very helpful.