historical candles: documentation obsolete?

I tried running:

curl “https://serum-api.bonfida.com/candles/BTCUSDC?resolution=3600

this is not working.

I simply got this from:

https://docs.bonfida.com/#get-historical-prices

Can you please provide me an alternative to get historical candles using javascript?

As mentioned in the docs this endpoint is deprecated.