Can I get Long Term Statistics from the Rest API?

I am using the Rest API to get historical data from HA. I am using the syntax “http://localhost:8123/api/history/period/xxx

I can only get short term data by using that syntax (not older than about 10 days depending on my configuration). I need to get Long Term Statistics energy data. I can see that the WS Interface supports this when using the “recorder/statistics_during_period” keywords. This does not seem to work in the Rest API. Is that correct? If it should work, can someone give me an example?

That’s correct (afaik). There is no REST api for LTS (yet?)