nordpool-node icon indicating copy to clipboard operation
nordpool-node copied to clipboard

API soon deprecated?

Open SindreLindahl opened this issue 1 year ago • 14 comments

Looking at config (https://github.com/samuelmr/nordpool-node/blob/master/src/config.ts), the nordpool urls seem to go to /marketdata/, but aren't those shutting down soon? Ref: https://www.nordpoolgroup.com/en/trading/Operational-Message-List/2024/03/deprecation-of-market-data-v1-endpoints-20240318095300/

Any plans on updating to v2 API?

SindreLindahl avatar Jun 07 '24 10:06 SindreLindahl

When making requests from node/nodered with this library I'm now receiving 404s. Making a curl query for something like http://www.nordpoolspot.com/api/marketdata/page/10?currency=,EUR,EUR,EUR&endDate=20-06-2024 still works however (probably load balancer and/or A/B test things.)

nagisa avatar Jun 20 '24 13:06 nagisa

This library is not using Nordpool's market data v1 endpoints (which are being deprecated), it's scraping website resources. I'm not planning to add support to official APIs.

samuelmr avatar Jun 22 '24 05:06 samuelmr

I'm now also getting 404s

deanc avatar Oct 08 '24 07:10 deanc

Seems day have launched a new portal. https://www.nordpoolgroup.com/e

Floppe avatar Oct 09 '24 04:10 Floppe

The raw data can be found here now: https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?date=2024-10-09&market=DayAhead&deliveryArea=SE3&currency=SEK

Have not seen if this is a diffrent format yet or just a moved URL adress

zinen avatar Oct 09 '24 06:10 zinen

I switched to using https://api.spot-hinta.fi/TodayAndDayForward in my scripts for now. There are some params you can inject there too but I only need today and tomorrow prices in my app so this will do :)

deanc avatar Oct 09 '24 07:10 deanc

The raw data can be found here now: https://dataportal-api.nordpoolgroup.com/api/DayAheadPrices?date=2024-10-09&market=DayAhead&deliveryArea=SE3&currency=SEK

Have not seen if this is a diffrent format yet or just a moved URL adress

It's definitely a different format. Just from a quick glance at the code there is no Rows property on the object anymore. It should be somewhat trivial to adapt though if someone has the time to make a PR (which I don't today).

deanc avatar Oct 09 '24 07:10 deanc

I did a hack so I could get hourly prices only for now.

https://github.com/samuelmr/nordpool-node/commit/94c741cbaa7bff3ef05c2fe30135e4f87b6b54ff

Floppe avatar Oct 09 '24 08:10 Floppe

This library is not using Nordpool's market data v1 endpoints (which are being deprecated), it's scraping website resources. I'm not planning to add support to official API

I don't understand, the source code clearly indicates urls for nordpool API?

const baseUrl = 'https://www.nordpoolgroup.com/api'

SindreLindahl avatar Oct 09 '24 10:10 SindreLindahl

The emphasis was probably on v1 and not whether it is or isn't nordpool...

nagisa avatar Oct 09 '24 10:10 nagisa

It is "scraping website resources". Not "support to official API". Links in source code goes to official API, no?

Wonder how these urls are usable for free, when nordpool charges huge amount of money (per month) for access to their data?

SindreLindahl avatar Oct 10 '24 07:10 SindreLindahl

I did a hack so I could get hourly prices only for now. 94c741c

Would you like to submit a pull request?

samuelmr avatar Oct 10 '24 16:10 samuelmr

Wonder how these urls are usable for free, when nordpool charges huge amount of money (per month) for access to their data?

I suppose it's just been easier to implement their website that way. Unofficial scrapers like this are usually used by DIY enthusiasts who wouldn't be paying for API usage anyway. Companies that build commercial solutions wouldn't probably resort to scraping since it's a fragile way, as we can see.

samuelmr avatar Oct 10 '24 17:10 samuelmr

I did a hack so I could get hourly prices only for now. 94c741c

Would you like to submit a pull request?

Sure I could do that. Note however I have commented aggregating methods and only use hourly myself.

Floppe avatar Oct 11 '24 07:10 Floppe