Prediction markets API
The full category taxonomy prediction markets are sorted under
The taxonomy prediction events are filed under. Read it to learn the vocabulary an events query can filter by; it answers no question about any one event.
/api/external/prediction/prediction-categoriesWhat it returns
A static, three-level taxonomy (category, subcategory, sub-subcategory) — no chain and no subject in the request at all. Use a category or subcategory slug as a filter on GET /prediction/prediction-events or GET /prediction/prediction-markets.
Chains
This endpoint is not tied to a chain: it takes no chain in its request.
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/prediction/prediction-categories"
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
categories | object[] | |
categories[].name | string | null | The category name, e.g. "Economy". |
categories[].slug | string | null | The category slug, e.g. "economy". |
categories[].subcategories | object[] | null | |
categories[].subcategories[].name | string | null | The subcategory name. |
categories[].subcategories[].slug | string | null | The subcategory slug. |
categories[].subcategories[].subcategories | object[] | null | |
categories[].subcategories[].subcategories[].name | string | null | The subcategory name. |
categories[].subcategories[].subcategories[].slug | string | null | The subcategory slug. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key