Skip to content

Retrieve event statistics

Request

Retrieve aggregated statistics for an event including total revenue and tickets sold.

Security
SessionKey(Required scopes: customeradministrator)
Path
hostintegerrequired

Unique identifier of the requested host

eventintegerrequired

Unique identifier of the requested event

Query
afterstring, (date-time)

Only return sales transacted on or after the specified date and time

beforestring, (date-time)

Only return sales transacted on or before the specified date and time

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}/events/{event}/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 event 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": [ {}, {} ] }