Skip to content

Analytics API

Widget funnels, return on investment, screen and plan usage. All requests need a secret key; see REST API for keys, errors and limits.

Impressions → opens → plays → product clicks → add-to-cart per day, from daily rollups

GET /v1/analytics/funnel

Parameters

NameInTypeDescription
fromquerydateFirst day, inclusive; defaults to 30 days ago.
includeTestquery"true" | "false"true: include pk_test_ traffic.
siteIdqueryid
toquerydateLast day, inclusive; defaults to yesterday.
experienceIdquerystring1 to 100 characters
videoIdquerystringOnly this video. Impressions aren't per video, so they read 0. 1 to 100 characters
Terminal window
curl -X GET https://api.loomieo.com/v1/analytics/funnel \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
funnelrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden, out_of_scope
  • 422: validation_failed
  • 429: rate_limited

Direct revenue and orders with video per currency, refunds taken off

GET /v1/analytics/roi

Direct revenue and orders with video per currency, refunds taken off; the two are never summed

Parameters

NameInTypeDescription
fromquerydateFirst day, inclusive; defaults to 30 days ago.
includeTestquery"true" | "false"true: include pk_test_ traffic.
siteIdqueryid
toquerydateLast day, inclusive; defaults to yesterday.
Terminal window
curl -X GET https://api.loomieo.com/v1/analytics/roi \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
roirequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden, out_of_scope
  • 422: validation_failed
  • 429: rate_limited

Uptime and proof of play per screen, and plays per slide, over whole UTC days

GET /v1/analytics/screens

Parameters

NameInTypeDescription
fromrequiredquerydateA UTC day, YYYY-MM-DD.
locationIdqueryid
screenIdqueryid
torequiredquerydateA UTC day, YYYY-MM-DD.
Terminal window
curl -X GET https://api.loomieo.com/v1/analytics/screens \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
reportrequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 404: location_not_found
  • 422: validation_failed
  • 429: rate_limited

Plays counted this billing period against the plan's allowance

GET /v1/analytics/usage

Terminal window
curl -X GET https://api.loomieo.com/v1/analytics/usage \
-H "Authorization: Bearer $LUMIEO_KEY"

Response 200

NameTypeDescription
usagerequiredobject
Errors
  • 401: auth_unauthenticated
  • 403: forbidden
  • 422: validation_failed
  • 429: rate_limited