VibePlayDocs

Docs › Developers

Analytics API

Pull your games' views, plays, retention, traffic sources, reviews and errors into dashboards and spreadsheets with the REST API.

Updated November 17, 2026

The analytics API gives you your own numbers as JSON or CSV. It needs a key with the Read stats permission.

How do I call it?

The base address is https://api.vibeplay.gg/v1. Add format=csv for spreadsheets.

curl -H "Authorization: Bearer vp_live_YOUR_KEY" \
  "https://api.vibeplay.gg/v1/stats/overview?from=2026-11-01&to=2026-11-30"

Every stats endpoint takes from and to (YYYY-MM-DD, UTC days; the default is the last 28 days) and game (a slug; leave it out for all your games).

Which endpoints are there?

EndpointReturns
GET /gamesYour games with lifetime views, plays, players and hours played
GET /stats/overviewReach, plays, players, play time, retention signals, community, errors, and change against the previous period
GET /stats/dailyThe same metrics per day; per_game=1 splits each day by game
GET /stats/breakdown?by=...Metrics per surface, source, medium, campaign, content, term, click_type, sub1 to sub5, referrer, country, device or game
GET /stats/retentionShare of plays still going at 5 s to 20 min, and day 1 / 7 / 30 return rates
GET /stats/visitsOne row per visit; up to 5,000 per page, pass the returned next as cursor (in CSV it is in X-Next-Cursor)
GET /reviewsRatings and the latest reviews
GET /errorsScript errors grouped by message

How fresh are the numbers?

Stats answers are cached for 60 seconds per key and query (X-Cache: HIT or MISS). Polling more often than once a minute returns the same numbers. Server-Timing shows how long the request took on our side.

What do the main metrics mean?

  • views: the game was shown (its Arcade page, a feed card or your ad link).
  • plays: someone pressed Play. play_rate is plays divided by views.
  • engaged_plays: plays of 30 seconds or more.
  • rounds, rounds_finished: reported by the game with VP.state('playing') and VP.state('gameover', { score }). Zero if the game does not report them.
  • d1, d7, d30: of the players who first played on a day, the share who played again exactly 1, 7 or 30 days later.

How do I track ad campaigns?

Every game has a full-screen link: https://apps.vibeplay.gg/p/<slug>. Add utm_source, utm_medium, utm_campaign, utm_content, utm_term and up to five sub1 to sub5. The click IDs fbclid, gclid, ttclid, yclid and msclkid are recognized on their own.

What about privacy?

We never return IP addresses. Player IDs in exports are anonymous and different for every developer.

Still stuck?

Open Support in the studio or the Arcade to send us a ticket, or email hello@vibeplay.gg.

Was this helpful?