---
title: "REST API: Get Attendance Stats"
type: "wiki"
space: "Axero Documentation"
author: "Anonymous User"
created: 2020-07-07T20:13:38Z
updated: 2026-09-28T01:12:39Z
tags: ["API"]
url: "https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/42839/rest-api-get-attendance-stats"
---

# REST API: Get Attendance Stats

[Open API Guide](https://my.axerosolutions.com/spaces/5/axero-documentation/api-guide?id=42839)
GET/api/events/\{EventID\}/attendancestats

Get an event's attendance statistics.

## Request

### Request Header
| Header | Required | Value | Description |
| :--- | :--- | :--- | :--- |
| `Authorization` | YES | `Bearer YOUR_TOKEN` | Bearer token for the authenticated user. Required only on a site that allows members only; otherwise the call runs as a guest. [Learn how to create Bearer tokens](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens). |
### Required Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `EventID` | Integer | YES | Path | Unique ID of the event |
### Optional Parameters
| Parameter | Type | Required | Location | Description |
| :--- | :--- | :--- | :--- | :--- |
| `Instance` | String | NO | Query | For a recurring event, the date \(ISO 8601\) of the occurrence you want statistics for. A value that is not a date answers 500. |
## Example

### Request Header

```
Authorization: Bearer YOUR_TOKEN
```

### Request URL

`https://your-site.com/api/events/153/attendancestats`

### Success Response

```
{
  "Invited": 0,
  "Attending": 2,
  "NotAttending": 0,
  "MaybeAttending": 0,
  "AwaitingResponse": 0
}
```

### Error Response

```
{
  "Message": "The request is invalid."
}
```

## Error Handling

| Status Code | Likely Cause | Next Action |
| :--- | :--- | :--- |
| 400 Bad Request | EventID in the path is not an integer. | Send the event's numeric ID. |
| 401 Unauthorized | No valid Bearer token on a site that allows members only; on other sites the call runs as a guest. | Check token validity. [Learn how to create Bearer tokens →](https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/108973/creating-bearer-tokens) |
| 403 Forbidden | User does not have sufficient permissions. | Confirm the user has the required roles for this action. |
| 500 Server Error | Instance is not a date, or another internal failure. | Send Instance as an ISO 8601 date; then retry later. |

## Rate Limits

While Axero does not enforce hard rate limits by default, we recommend the following best practices to ensure optimal performance:

- **Sustained Request Rate:** Do not exceed 5 API calls per second
- **Sequential Processing:** Wait for each request to complete before sending the next in automated workflows
- **Concurrent Connections:** If parallel processing is required, limit to 3 or fewer simultaneous requests
- **Response Timeout:** Ensure API responses complete within 15 seconds during testing

Axero may implement temporary rate restrictions if excessive API usage affects overall site performance. For high-volume integrations, contact Axero to discuss your requirements.
