Get ambassador stats
Retrieves aggregated statistics for campaign ambassadors, grouped by individual affiliate. This endpoint provides performance metrics including revenue, commission, order counts, and clicks for ambassadors within a specified date range.
GET
Retrieves aggregated statistics for campaign ambassadors, grouped by individual affiliate. This endpoint provides performance metrics including revenue, commission, order counts, refund amounts, and clicks for ambassadors within a specified date range.
The system will:
Note: Including clicks may increase response time. For optimal performance, combine with specific email filters to limit the number of ambassadors queried.
Request parameters
Request examples
Basic request
With clicks
With clicks
Response example
Response fields
Filter examples
Search filter
Thesearch parameter searches across email, first name, last name, and full name:
Email filter (single)
Filter by a specific ambassador email:Email filter (multiple - comma separated)
Filter by multiple ambassador emails using comma-separated values:First name filter
Filter by ambassador first name (case-insensitive, partial match):Last name filter
Filter by ambassador last name (case-insensitive, partial match):Combined filters
You can combine multiple filters:Pagination
Important notes
Time periods
All metrics (revenue, commission, orders, clicks, refunds) are filtered by the specified date range. Thestart_date and end_date parameters filter tracking events by their occurred_at timestamp (when the sale or click happened), not by when the ambassador joined the campaign.
To analyze different time periods, make separate API calls with different date ranges:
- This Month:
start_date=12/01/2024&end_date=12/31/2024 - Last Month:
start_date=11/01/2024&end_date=11/30/2024 - Year to Date:
start_date=01/01/2024&end_date=12/31/2024 - Custom Range: Any range you specify
Pagination
- Default: 20 results per page
- Maximum: 100 results per page
- Performance: Always use pagination for campaigns with many ambassadors
- All ambassadors shown: Even ambassadors with 0 sales appear in results if they match filters
- Use
total_pagesin the meta response to iterate through all pages
Error responses
400 Bad Request - missing required parameters
401 Unauthorized - invalid API key
429 Too Many Requests - rate limit exceeded
Rate limiting
This endpoint is subject to the standard Public API rate limits:- Frequency Limit: 2-second minimum interval between requests
- Hourly Limit: 40 requests per hour (default, configurable per organization)
Performance tips
To ensure fast response times:- Use Pagination: Always paginate for campaigns with many ambassadors
- Apply Filters: Use email/name filters to narrow results
- Clicks: Only add
include_clicks=truewhen you specifically need click data
Integration examples
JavaScript/Node.js
Python
Ruby
Filtering best practices
Multiple emails
When filtering by multiple emails, use comma-separated values without spaces (or with spaces - both work):- Split on commas
- Trim whitespace
- Convert to lowercase for case-insensitive matching
Search vs specific filters
- Use
searchfor broad queries across all name/email fields - Use
email,first_name, orlast_namefor precise filtering