Jump to content

GET REST not getting it right...


Rikard Ågren

Recommended Posts

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.

REST GET.PNG

Link to comment
Share on other sites

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?

 

REST GET.PNG

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.