Skip to main content
Reporting APIUpdated Jun 2

Endpoints

All endpoints are under https://api.applixir.com and require a client API key in the X-Api-Key (or Authorization: Bearer) header. See Authentication & Keys.

Common parameters

The two paged endpoints (/reports/by-country and /reports/countries) accept these query parameters:

ParameterTypeDefaultDescription
pageint1Page number (1-based)
pageSizeint20Rows per page
sortBystringField to sort by (e.g. revenueAmount, country)
sortDirectionstringascasc or desc

Date filters use the YYYY-MM-DD format (e.g. 2026-05-01). Omit them to use the account default range.


List sites

GET /api/v1/sites

Returns every site (game) on the account — or just the key's allowed sites if the key is site-scoped. Use the returned siteId values to filter the reporting endpoints.

Example

curl https://api.applixir.com/api/v1/sites \
-H "X-Api-Key: axk_live_xxxxxxxxxxxxxxxx"
[
{
"siteId": "3f2c9b18-7a44-4c0e-9b1a-2d6f5e8c1a90",
"name": "Word Tower",
"url": "https://wordtower.example.com",
"framework": "html5",
"status": "live",
"dailyActiveUsers": 42000,
"monthlyActiveUsers": 610000,
"createdAt": "2026-01-14T09:32:00Z"
}
]
FieldDescription
siteIdUnique site identifier — pass to siteIds on the reporting endpoints
name, url, frameworkSite metadata
statuslive (serving), approved, or pending
dailyActiveUsers, monthlyActiveUsersLast reported DAU / MAU (may be null)
createdAtWhen the site was added

Account totals

GET /api/v1/reports/totals

Headline totals across the account (or a filtered subset) for a date range.

Query parameters: siteIds (comma-separated siteId list — omit for all sites), fromDate, toDate.

Example

curl "https://api.applixir.com/api/v1/reports/totals?fromDate=2026-05-01&toDate=2026-05-31" \
-H "X-Api-Key: axk_live_xxxxxxxxxxxxxxxx"
{
"totalImpressions": 1842310,
"totalRequests": 2153998,
"averageCpm": 4.21,
"totalRevenue": 7756.12,
"fillRate": 0.855
}
FieldDescription
totalImpressionsAds successfully fetched and played
totalRequestsAds requested
averageCpmEffective revenue per 1,000 impressions (USD)
totalRevenueTotal earnings (USD)
fillRateImpressions ÷ Requests (0–1)

Revenue by country

GET /api/v1/reports/by-country

Revenue and impressions aggregated by viewer country. Paged and filterable; honors the key's site scope.

Query parameters: siteIds, fromDate, toDate, plus the common paging parameters.

Example

curl "https://api.applixir.com/api/v1/reports/by-country?fromDate=2026-05-01&toDate=2026-05-31&sortBy=revenueAmount&sortDirection=desc" \
-H "X-Api-Key: axk_live_xxxxxxxxxxxxxxxx"
{
"data": [
{
"country": "US",
"revenueAmount": 4120.55,
"cpm": 6.80,
"adRequests": 712430,
"impressions": 605800,
"fillRate": 0.85
}
],
"meta": {
"page": 1,
"pageSize": 20,
"totalRows": 47,
"totalPages": 3,
"sortBy": "revenueAmount",
"sortDirection": "desc"
}
}

Per-site, country, day rows

GET /api/v1/reports/countries

The most granular feed: one row per site × country × day. This is the direct successor to the legacy /api/v1/revenues/countries?apiKey= feed and returns the identical row shape.

Account-level keys only

This feed does not yet support per-site filtering, so a site-scoped key returns 403. Use an account-level key, or use /reports/by-country for filterable country data.

Query parameters: the common paging parameters.

Example

curl "https://api.applixir.com/api/v1/reports/countries?page=1&pageSize=50" \
-H "X-Api-Key: axk_live_xxxxxxxxxxxxxxxx"
{
"data": [
{
"impressions": 18230,
"clicks": 142,
"adRequests": 21540,
"cpm": 5.12,
"revenueAmount": 93.34,
"fillRate": 0.846,
"country": "US",
"createdAt": "2026-05-14T00:00:00Z",
"updatedAt": "2026-05-15T03:10:00Z",
"gameId": "3f2c9b18-7a44-4c0e-9b1a-2d6f5e8c1a90",
"userId": "45e89eff-1f4b-4f4e-95f8-f92fcaf837ab",
"adUnitId": "22793662433",
"gameName": "Word Tower"
}
],
"meta": {
"page": 1,
"pageSize": 50,
"totalRows": 1284,
"totalPages": 26,
"sortBy": null,
"sortDirection": "asc"
}
}
FieldDescription
gameId / gameNameThe site (gameId = siteId)
countryViewer country (ISO code)
impressions, clicks, adRequestsVolume metrics
cpm, revenueAmount, fillRateEffective CPM (USD), revenue (USD), fill rate (0–1)
adUnitIdThe ad unit serving the site
createdAt / updatedAtThe reporting day and when the row was last updated

See also