Sales and Attendee Reports
Learn to generate sales and attendee reports using Eventbrite API.
Eventbrite API provides the facility to generate reports. It allows generating two types of reports: sales activity and attendees for an event.
Sales report
We can generate the report of our sales for an event. The following URL uses the GET
method to generate the report:
https://www.eventbriteapi.com/v3/organizations/{organization_id}/reports/sales/?event_ids={event_id}
Request parameters
The request parameters required for this API call are as follows:
Object | Type | Category | Description |
| array[string] | required | This object provides the IDs of the events whose sales reports are required. |
| string | optional | This object provides the status of the event. The possible values are: |
| string | optional | This object provides the start date of the event. |
| string | optional | This object provides the end date of the event. |
| string | required | It is a filter, and we can include more than one filter. |
| string | optional | This object groups the return data by specified variable. The possible values are
|
| number | optional | This object provides the time period in units of the selected |
| string | optional | This object provides the date period. The possible values are |
| string | optional | This object provides the time zone of the event. If unspecified, by default, the value is the time zone of the first event. |
Response parameters
The object array in the output JSON response has the following important parameters:
Object | Type | Description |
| string | This object provides the event’s time zone. |
| array[string] | This object provides a list of IDs for public events. |
| string | This object provides the date of the event when it happens. |
| string | This object provides the topic related to the event. |
| string | This is the local start time of the event. |
| string | This object is the ISO 4217 3-letter currency. |
| number | This is the final price of the ticket. |
| number | The price of the ticket with any other charges. |
| number | This is the quantity of the tickets. |
| number | This object provides the total amount of fees. |
| number | This object provides the total amount of royalty. |
Let’s run an example to retrieve the sale report of an event. Click “Run” to execute the code.
import requestsimport jsonurl = 'https://www.eventbriteapi.com/v3/organizations/{{ORGANIZATION_ID}}/reports/sales/?event_ids={{EVENT_ID}}'headers = {'Authorization': 'Bearer {{PRIVATE_TOKEN}}'}response = requests.request("GET", url, headers=headers).json()print(json.dumps(response, indent=4))
Attendee report
We can generate the report of our attendees for an event. The following URL uses the GET
method to generate the report:
https://www.eventbriteapi.com/v3/organizations/{ORGANIZATION_ID}/reports/attendees/?event_ids={EVENT_ID}
Request parameters
The request parameters are the same as for the sales report.
Response parameters
The object array in the output JSON response has the following important attributes:
Object | Type | Description |
| string | This object provides the event’s time zone. |
| array[string] | This object generates a list of public events ids. |
| string | This object provides the date of the event when it happens. |
| string | This object provides the topic related to the event. |
| string | This is the local start time of the event. |
| number | This object provides the total number of attendees. |
| number | This object provides the total number of orders. |
import requestsimport jsonurl = 'https://www.eventbriteapi.com/v3/organizations/{{ORGANIZATION_ID}}/reports/attendees/?event_ids={{EVENT_ID}}'headers = {'Authorization': 'Bearer {{PRIVATE_TOKEN}}'}response = requests.request("GET", url, headers=headers).json()print(json.dumps(response, indent=4))