Hi, I'm using the /generation endpoint from the API to query carbon intensity generation percentages for a range of dates. My query url is https://api.carbonintensity.org.uk/generation/<start date>/<end date>. The range of dates is usually the next 5 days.
However in the last 2 days my query did not produce any data for the new year. I've managed to recreate this in the browser. If I submit the query https://api.carbonintensity.org.uk/generation/2021-12-30/2022-01-02 I don't get data after the 31st. However when I submit a different query https://api.carbonintensity.org.uk/generation/2022-01-01/2022-01-02 the data does appear.
A year has passed and I didn't learn my lesson the first time. The problem is still there...now I just wish I had written down how I worked around it the last time.
Hi, I'm using the
/generation
endpoint from the API to query carbon intensity generation percentages for a range of dates. My query url ishttps://api.carbonintensity.org.uk/generation/<start date>/<end date>
. The range of dates is usually the next 5 days.However in the last 2 days my query did not produce any data for the new year. I've managed to recreate this in the browser. If I submit the query
https://api.carbonintensity.org.uk/generation/2021-12-30/2022-01-02
I don't get data after the 31st. However when I submit a different queryhttps://api.carbonintensity.org.uk/generation/2022-01-01/2022-01-02
the data does appear.