@Kajrietberg Instead you might want to proxy that JS call via an API in a serverless function. Netlify Functions can help you with that by adding your API key (they have env var access) and proxying to that opendata endpoint.
My tweets and posts live here on my own domain these days.
You can explore them here and follow me on Mastodon instead of Twitter where I'm not currently active.