Skip to content

Retrieve host statistics

Request

Retrieve aggregated statistics for a host including total revenue and tickets sold.

Security
SessionKey(Required scopes: customeradministrator)
Path
hostintegerrequired

Unique identifier of the requested host

Query
afterstring, (date-time)

Only aggregate statistics for activity after the specified date

beforestring, (date-time)

Only aggregate statistics for activity before the specified date

intervalstring

The time intervals over to breakdown aggregated statistics

Enum:"hour""day""week""month""year"
curl -i -X GET \
  'https://docs.ticketingevents.com/_mock/openapi/hosts/{host}/statistics?after=2019-08-24T14%3A15%3A22Z&before=2019-08-24T14%3A15%3A22Z&interval=hour' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

The host statistics resource was successfully retrieved.

Bodyapplication/json
startstring

The date after which activity must have taken place to be included in the statistics

endstring

The date before which activity must have taken place to be included in the statistics

gross_salesnumber

Total gross sales over the specified period

tickets_soldnumber

Total tickets sold over the specified period

breakdownArray of objects
Response
{ "start": "2025-08-01 00:00:00", "end": "2026-08-01 00:00:00", "gross_sales": 100000, "tickets_sold": 200, "breakdown": [ {}, {} ] }