Base URL
All Polymarket API requests are made to the following base URL:
Authentication
Every request must include your API key in the X-API-Key header.
curl https://api.struct.to/v1/markets \
-H "X-API-Key: YOUR_API_KEY"
You can generate an API key from the Struct Dashboard.
Keep your API key secret. Do not expose it in client-side code or public repositories.
Making Your First Request
Generate an API key
Navigate to the API Keys section in your dashboard and create a new key.
Send a request
Use the base URL and your API key to make your first call:curl https://api.struct.to/v1/markets \
-H "X-API-Key: YOUR_API_KEY"
All responses are returned as JSON and wrapped in a standard envelope. See Response Format for the full breakdown.
Rate Limits
Rate limits depend on your plan. See Pricing & Ratelimits for details.