Last answered:

25 Sept 2023

Posted on:

27 Dec 2021

1

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.

Please help!

4 answers ( 0 marked as helpful)
Instructor
Posted on:

06 Jan 2022

1

Hi,

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.

Best,
365 Team, Nikola

Posted on:

13 May 2023

0

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()

Posted on:

25 Sept 2023

0

@Nikola Pulev
 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.

Submit an answer