Not able to connect to http API

Avatar
  • updated

Hi,

I'm trying to fetch energy prices from a public available API with a JSON array.

The data I'm trying to get can be found in this link:

GET https://www.hvakosterstrommen.no/api/v1/prices/2022/10-02_NO5.json

I have tried to play around with the url with different parts in the http settings and in the command settings. Anyone able to make this work?

Image 4113

Avatar
Jürgen Jürgenson

It works for me. I got response from it and it stays connected. How did you add it to bos?


First add the http driver. Then first part of the link add here: 

Then add the command to same driver and last part of the link paste in the command line:


Then you can send the request and it should update with status code OK: