API Reference
Conversions & e-commerce
Query registered events, conversions and e-commerce metrics for a site.
These endpoints expose your goals and revenue data. All are GET, site-scoped and authenticated with an API key.
Events
GET /api/v1/sites/{id}/events
Lists the custom events registered for the site, including which are flagged as conversions.
curl "https://app.otusanalytics.com/api/v1/sites/123/events" \
-H "Authorization: Bearer sk_live_xxx"
Conversions
GET /api/v1/sites/{id}/conversions
Returns conversion counts and rates for events flagged as goals — the same data shown in the Conversions section of the Overview report.
E-commerce
GET /api/v1/sites/{id}/ecommerce
Returns revenue metrics — total and net revenue, orders, average order value and top products — powering the E-commerce report. Send purchase and refund events to populate this; see Ecommerce revenue tracking.