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.

GET/api/external/prediction/prediction-categories

What 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.

Response fields of The full category taxonomy prediction markets are sorted under
FieldTypeDescription
categoriesobject[]
categories[].namestring | nullThe category name, e.g. "Economy".
categories[].slugstring | nullThe category slug, e.g. "economy".
categories[].subcategoriesobject[] | null
categories[].subcategories[].namestring | nullThe subcategory name.
categories[].subcategories[].slugstring | nullThe subcategory slug.
categories[].subcategories[].subcategoriesobject[] | null
categories[].subcategories[].subcategories[].namestring | nullThe subcategory name.
categories[].subcategories[].subcategories[].slugstring | nullThe 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