Protect your Sim API key when making requests from client-side apps by using a Cloudflare Worker as a proxy. This worker receives requests from your app, securely adds yourDocumentation Index
Fetch the complete documentation index at: https://docs.sim.dune.com/llms.txt
Use this file to discover all available pages before exploring further.
SIM_API_KEY on the server, and then forwards the requests to the Sim API endpoints.
When to use a proxy:
- Your app makes Sim API calls from the browser (React, Next.js client components, etc.)
- You need to avoid exposing your API key in client-side JavaScript
- You need to handle CORS for browser-based requests
- Server-to-server calls (Node.js backends, Python scripts, etc.) can call the Sim API directly
Sim API Proxy on GitHub
One-click deployment and comprehensive setup instructions for the Cloudflare Worker proxy.