Base URL
All Polymarket API requests are made to the following base URL:
https://polymarket-api.struct.to
Authentication
Every request must include your API key in the Authorization header as a Bearer token.
curl https://polymarket-api.struct.to/v1/markets \
-H "Authorization: Bearer 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://polymarket-api.struct.to/v1/markets \
-H "Authorization: Bearer YOUR_API_KEY"
All responses are returned as JSON. A successful response looks like:
{
"status": 200,
"data": { ... }
}
Rate Limits
Rate limits depend on your plan. See Pricing & Ratelimits for details.