SDKs and API
One contract, one SDK for each platform
Every Zapto app talks to Zapto Cloud and to the viewer's IPTV service through one SDK for its platform, built from a single API contract. The apps only build screens, so a rule changed once reaches every app.

What you get
One SDK for each platform
Dart for the phone apps, BrightScript for Roku, Kotlin for Android TV and Fire TV, Swift for Apple TV and TypeScript for Samsung and LG TVs. Each follows the same contract with the same names and rules.
The same building blocks everywhere
Sign-in, settings and theme, account, the IPTV engine, playback, consent, ads, events and purchases are separate modules with the same job on every platform.
Sign-in without passwords
One-time codes on phones, and a QR code or short code on TVs. The SDK never asks for a password on a TV and never writes tokens, codes or passwords to a log.
An IPTV engine built for big playlists
Flash sync opens from the copy saved on the device, checks the provider in the background only when a check is due, and writes only what changed. See Flash sync.
The plan is decided by the cloud
A purchase is checked by Zapto Cloud with the store before the plan unlocks. The device is never trusted for plan status.
Keeps playing when the cloud is away
App settings are cached for offline starts, calls are retried with backoff, and playback does not stop because Zapto Cloud cannot be reached.
SDKs and API on your devices



How your brand uses them
- 1
Your brand is settings
Create the brand and its apps in Brands. Each app gets its own app key, which tells Zapto Cloud which brand and platform is asking.
- 2
The SDK loads your settings
At start, the app reads its theme, layout, features and update rules through the SDK and keeps a copy for the next start. What you publish in Apps & theme arrives this way.
- 3
Viewers sign in and add a service
The SDK handles the one-time code or TV code, saves the viewer's IPTV login to the account and loads the playlist straight from the provider to the device.
- 4
Your CI reports builds
Make a CI key in Releases and let your build system register each build with it. That is the one place where your own systems call the API.
What the SDKs cover
Core
Every call names the app and the device, signs with the viewer's session, renews an expired session once for all waiting calls, waits when told to slow down and retries with backoff.
Sign-in
One-time codes by email or phone, the TV code and QR sign-in, session renewal, sign-out and the list of signed-in devices.
Settings and theme
The app's settings with an offline copy, the update check, the brand theme (colors, fonts, corners, focus style, logos) and the options for Home and Live TV. Apps do not hard-code a color, a font or a brand.
Account
The viewer's account, plan and what it includes, profiles and the PIN, saved servers, server codes and promo code redemption.
IPTV engine
Lists, stream addresses, the TV guide, catch-up and line status, read from the viewer's own provider. Backup addresses are tried when a server address fails.
Flash sync
Shows the saved playlist at once, reads new data as it arrives without blocking the screen, replaces only the sections that changed and keeps the saved copy when a check fails.
Catch-up times done right
Catch-up addresses use the provider server's own time zone, including daylight saving time. The SDK converts the program's start time, so apps never build these addresses themselves.
Playback
A session for each play, a heartbeat every minute that enforces the plan's screen limit, a clear answer when too many screens are in use, and watch progress saved while playing and on pause.
Consent
Wraps the Cookie Panda consent SDK for the platform, saves the viewer's choice to the account so they are not asked again on the next device, and holds ads and analytics until consent is given where the law requires it.
Ads
Video ads through Google IMA. Ads are requested only when the Console's ad settings, the viewer's plan and their consent all allow it, and a failed ad never blocks playback.
Events
Usage events are sent in batches every 30 seconds and when the app goes to the background, and only what the viewer has consented to.
Purchases
A store purchase is sent to Zapto Cloud to be checked, purchases can be restored, and the SDK provides the web checkout address and QR code where a brand sells on the web.
Parental rules on the device
Adult categories are marked on the device from the provider's own flags and category names, because the playlist never goes to the cloud.
CI key for builds
One key for each brand lets your build system register builds on the release page. It is shown once and can be replaced at any time.
Where it applies
The SDKs are what the Zapto apps are built on. You do not write code to launch your brand: you set it up in the Console.
iPhone and iPad
Beta
Android phones and tablets
Beta
Roku
Beta
Android TV and Google TV
Beta
Amazon Fire TV
Beta
Apple TV
Coming soon
Samsung TV
Coming soon
LG TV
Coming soon
Questions
Do we need our own developers to launch?
No. The apps are already built on the SDKs. You set your brand, theme, plans and servers in the Console, and a version of each app is built for your brand.
Which languages are the SDKs written in?
Dart, BrightScript, Kotlin, Swift and TypeScript: one for each family of devices the apps run on. They share one contract, so every app behaves the same way.
How much of the traffic goes through Zapto Cloud?
Very little. Lists, streams and the TV guide go straight from the app to the viewer's IPTV provider. Zapto Cloud is used for sign-in, the account, saved servers, app settings, the update check and usage events.
What happens to viewers if Zapto Cloud is unreachable?
A signed-in app starts from its saved settings and its saved playlist, and playback continues. Things that need the account, such as signing in on a new device, wait until the connection is back.
What can our own systems connect to?
Today the API serves the Zapto apps and the Console. Your build system can register builds with your brand's CI key, and Stripe notifies Zapto Cloud of payments for web checkout.
Launch it under your brand
See your apps, your theme and your plans in a live demo.



