REST API
The Pipetrace REST API allows you to programmatically access your analytics data. All endpoints return JSON and require authentication.
Base URL
https://api.pipetrace.comAuthentication
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_TOKENGet your API token from Dashboard → Settings → API Keys.
Response Format
All responses follow this structure:
// Success
{
"data": { ... }
}
// Error
{
"error": "ERROR_CODE",
"message": "Human readable message"
}Rate Limits
| Endpoint Type | Limit |
|---|---|
| Analytics queries | 100 requests/minute |
| Site management | 60 requests/minute |
| Tracking (public) | 1000 requests/minute |
Quick Example
curl -X GET \
'https://api.pipetrace.com/api/v1/sites/SITE_ID/analytics/overview?period=7d' \
-H 'Authorization: Bearer YOUR_API_TOKEN'Available Endpoints
See the Endpoints Reference for complete documentation.