Skip to main content
GET
/
api
/
v1
/
stats
/
popular-markets
Get Popular Markets
curl --request GET \
  --url https://api.entityml.com/api/v1/stats/popular-markets
{
  "top_markets": [
    {}
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.entityml.com/llms.txt

Use this file to discover all available pages before exploring further.

Request

limit
integer
Number of markets to return. Default: 20. Max: 100.
days
integer
Lookback window in days. Default: 30. Max: 365.

Response

top_markets
array
Array of { condition_id, request_count } rows.

Example

from entityml import EntityMLClient

client = EntityMLClient()
popular = client.analytics.get_popular_markets(limit=10, days=7)
print(popular["top_markets"])

Example response

{
  "days": 7,
  "total_unique_markets": 150,
  "top_markets": [
    {
      "condition_id": "0x8213d395e079614d6c4d7f4cbb9be9337ab51648a21cc2a334ae8f1966d164b4",
      "request_count": 82
    }
  ]
}