Base URL
Authentication
Include your API key in theAuthorization header of every request using the Bearer scheme:
Common Parameters
Customer ID
| Parameter | Type | Description |
|---|---|---|
customerId | String (required) | Your pixel account identifier |
Time Range Parameters
You must specify eitherdays or both start and end:
| Parameter | Type | Description |
|---|---|---|
days | Integer | Number of days to look back (minimum: 1) |
start | ISO 8601 datetime | Start of the time range (UTC) |
end | ISO 8601 datetime | End of the time range (UTC) |
Important: When providingstartandend,endmust be later thanstart. Timestamps are truncated to the hour (minutes and seconds are ignored), so 2025-12-05T10:59Z is treated as 2025-12-05T10:00:00Z.
Context Type
| Parameter | Type | Description |
|---|---|---|
context | String (enum) | The section context for analytics data |
searches- Analytics for search queriescollections- Analytics for collection views
Term Filter
| Parameter | Type | Description |
|---|---|---|
term | String (optional) | Filter analytics for a specific search term or collection name |
Metrics Reference
When using the Time Series endpoint, you must specify one of the following metrics:| Metric | Value | Description |
|---|---|---|
| Total Queries | totalQueries | Total number of search queries or collection views |
| Click-Through Rate | clickThroughRate | Percentage of queries that resulted in clicks |
| Add to Cart Rate | addToCartRate | Percentage of queries that resulted in add-to-cart actions |
| Conversion Rate | conversionRate | Percentage of queries that resulted in purchases |
| Average Order Value | averageOrderValue | Average monetary value of purchases |
| Total Revenue | totalRevenue | Total revenue generated |
| Total Clicks | totalClicks | Total number of clicks on results |
| Total Add to Carts | totalAddToCarts | Total number of add-to-cart actions |
| Total Purchases | totalPurchases | Total number of completed purchases |
| Sessions Count | sessionsCount | Total number of unique sessions |
Endpoints
Get Available Accounts
Retrieves all pixel IDs associated with your account.404: No pixel ids found for your account
Overview Analytics
Provides high-level analytics overview for the specified time period. Optionally filter by a specific search term or collection.customerId(required)context(required):searchesorcollectionsdaysORstart+end(required): Time rangeterm(optional): Filter analytics for a specific search term or collection name
totalQueries: Total number of queries in the time periodclickThroughRate: Decimal representation of CTR (0.241 = 24.1%)addToCartRate: Decimal representation of ATC rateconversionRate: Decimal representation of conversion rateaverageOrderValue: Average order value in currency unitstotalRevenue: Total revenue generatedsessionsCount: Number of unique user sessions
Search Terms Analytics
Returns analytics data for search terms within the specified period, sorted by total queries in descending order.customerId(required)context(required):searchesorcollectionsdaysORstart+end(required): Time rangelimit(optional): Number of terms to return (1-1000, default: 100)
term: The search term or collection nametotalQueries: Number of times this term was queriedtotalRevenue: Revenue generated from this termclickThroughRate: CTR for this specific termaddToCartRate: ATC rate for this termconversionRate: Conversion rate for this term
Funnel Analytics
Provides funnel conversion analytics showing the progression from queries to purchases. Optionally filter by a specific search term or collection.customerId(required)context(required):searchesorcollectionsdaysORstart+end(required): Time rangeterm(optional): Filter analytics for a specific search term or collection name
totalQueries: Total queries at the top of the funneltotalClicks: Number of result clickstotalAddToCarts: Number of add-to-cart actionstotalPurchases: Number of completed purchases at the bottom of the funnel
Time Series Analytics
Returns time-series data for a specific metric over the specified period. Optionally filter by a specific search term or collection.customerId(required)context(required):searchesorcollectionsdaysORstart+end(required): Time rangemetric(required): One of the metrics listed in the Metrics Reference sectionterm(optional): Filter analytics for a specific search term or collection name
- Returns a JSON object with an array of datapoints
- Each datapoint contains a
timestamp(ISO 8601 datetime) andvaluefor that time interval - Time series data is provided in UTC timezone
- Granularity automatically adjusts based on the time period:
- Hourly: For time periods up to 100 hours
- Daily: For time periods between 100 hours and 100 days
- Weekly: For time periods between 100 days and 100 weeks
- Monthly: For time periods between 100 weeks and 100 months
- Yearly: For time periods greater than 100 months
Error Responses
The API uses standard HTTP status codes:| Status Code | Description |
|---|---|
| 200 | Success |
| 400 | Bad Request - Invalid parameters or validation error |
| 403 | Forbidden - Invalid account permissions |
| 404 | Not Found - Resource not found |
| 500 | Internal Server Error |
Common Validation Errors
- Cannot use
dayswithstartorend: You must use eitherdaysOR thestart/endcombination, not both - Must use
startandendtogether: If you providestart, you must also provideend, and vice versa - Missing time range: You must provide either
daysor bothstartandend - End must be greater than start: When using
startandend, the end timestamp must be after the start timestamp - Invalid timestamp format: Timestamps must be in ISO 8601 format (e.g.,
2025-01-01T00:00:00Z)
Data Freshness
The API performs background file synchronization every 15 minutes to ensure data freshness. Analytics data may have a delay of up to 15 minutes from real-time events.Best Practices
URL Encoding
Always URL-encode search terms in query parameters. For example, “lower third” becomes “lower%20third”. Example:Time Ranges
- Use
daysfor recent data - Use
start/endfor specific historical periods
Limit Parameter
Start with smaller limits (e.g., 50) and increase as needed for the/terms endpoint.
Error Handling
Implement retry logic for 5xx errors with exponential backoff.Rate Metrics
When analyzing rates (CTR, conversion rate), remember they are decimal values (0.241 = 24.1%).Time Series Granularity
Time series data granularity automatically adjusts based on the selected time period:- Hourly (≤100 hours): Ideal for short-term analysis and real-time monitoring
- Daily (100 hours - 100 days): Best for weekly and monthly trend analysis
- Weekly (100 days - 100 weeks): Suitable for quarterly and annual comparisons
- Monthly (100 weeks - 100 months): Best for multi-year trend analysis
- Yearly (>100 months): For long-term historical patterns