Analytics
5 endpoints. Every call is POST https://api.useburj.com/v1/<path> with a JSON body.
Key numbers for a period
/analytics/overvieweSIMs sold, spend, average price, install and activation rates, failed orders, refunds, top-ups, balance runway, and the change against the previous period of the same length.
Body
fromstringoptionalYYYY-MM-DD, default 30 days ago
tostringoptionalYYYY-MM-DD, default today (max 366 days)
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Trend over time
/analytics/timeseriesOne point per day, week (starting Sunday) or month: eSIMs, orders, spend, installed, activated, expired, top-ups, refunds.
Body
fromstringoptionaltostringoptionalintervalstringoptionalday(default),week,month
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Top countries / packages / sources
/analytics/breakdownRanked with share of eSIMs and spend; countries also get install and activation rates.
Body
dimensionstringoptionalcountry(default),package,sourcefromstringoptionaltostringoptionallimitintegeroptionalDefault 20, max 100
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Live eSIM picture
/analytics/esimsHow many eSIMs are in each state right now, the funnel (sold → ready → installed → activated → expired), and the ones running out of data (≥ 80%) or ending within 3 days.
Body
Send an empty JSON object: {}
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.
Daily statistics (legacy)
/statics/getKept for existing integrations; use /analytics/* for new work.
Body
daysintegerrequiredNumber of days
Errors
Like every authenticated endpoint, it can also return AUTH_UNAUTHORIZED (401), RATE_LIMITED (429) and INTERNAL_ERROR (500). See all error codes.