Rikard Ågren Posted December 15, 2022 Report Share Posted December 15, 2022 Hello Trying to get some values from a .json file using this API but dont seem to get it to work https://www.elprisetjustnu.se/elpris-api Example file: https://www.elprisetjustnu.se/api/v1/prices/2022/12-15_SE3.json I have set it up according to the screendump but I get the following error: "403 Unauthorized. You do not have permission to access this endpoint" Guess I have done something wrong with the Query and Response parameters? Also, I want to be able to modify the [ÅR]/[MÅNAD]-[DAG]_[PRISKLASS] values from the Ladder to be able to get new values every day. These are hourly electricity prices for Sweden. Link to comment Share on other sites More sharing options...
Rikard Ågren Posted December 19, 2022 Author Report Share Posted December 19, 2022 OK, I think I understand how it should be done now. I had missunderstod the use of the Query Parameters. I just have to specify the request as: /api/v1/prices/2022/12-15_SE2.json Then I will be able to get a response with the values However, this means that I can not specify which file I want to read from Ladder? Link to comment Share on other sites More sharing options...
Ivgeny Posted December 19, 2022 Report Share Posted December 19, 2022 Dear Rikard, As far as I understand from the Swedish site, they expect the endpoint path to be used as a query, the latest version provides the option to do so using parameters is quotes like: https://www.elprisetjustnu.se/api/v1/prices/"year"/"value".json Thanks, Ivgeny Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now