Teleport API

Integrer Teleport i løsningen din ved hjelp av innebygging og API-er

Overview

  • With the Teleport API you can view, manage and broadcast to your Teleport feeds.
  • Simple REST APIs that return JSON, images or video, easily used from any website or app.
  • Get your API key in the console under Settings → API. Either the primary or the secondary key works. It gives full access to all the feeds of your account, so keep it secret.
  • Send your API key in an Authorization: Bearer YOUR_API_KEY header. Don't put it in URLs: they're kept in logs and browser history and can be passed on to other sites.
  • For images, videos and players in a web page, use an ACCESSKEY instead. Get it in the console from the feed's Share & embed → Access keys. Access keys only let people view, so they're safe to use on a public website. A share link's key also works as ACCESSKEY, with the share link's role; that can be more than view access, so keep those private.
  • FEEDID is in the feed's portal URL (/view?feed=FEEDID) and on the feed's API tab in the console.
  • Times are in UTC, in ISO 8601 format, e.g. 2026-09-21T01:25:47Z.

Example

curl -H "Authorization: Bearer YOUR_API_KEY" "https://www.teleport.io/api/v2/feed-get?feedid=FEEDID"

Player embedding

The embed code is as follows:

<iframe width="WIDTH" height="HEIGHT" src="https://www.teleport.io/player?feedid=FEEDID&frametime=FRAMETIME&playmode=PLAYMODE&playmodespossible=PLAYMODESPOSSIBLE&framesizingmode=FRAMESIZINGMODE&showsplashbadge=SHOWSPLASHBADGE&showoverlaybadge=SHOWOVERLAYBADGE&overlayopacity=OVERLAYOPACITY&backgroundcolor=BACKGROUNDCOLOR&videoplayspeed=VIDEOPLAYSPEED&imageplayspeed=IMAGEPLAYSPEED&playframeskipinterval=PLAYFRAMESKIPINTERVAL&playframecount=PLAYFRAMECOUNT&accesskey=ACCESSKEY" frameborder="0" allow="fullscreen" allowfullscreen></iframe>
  • You can also embed the player without black bars, sized automatically, using the script method.
  • You can embed multiple players on one page by using multiple embed codes.
  • Leave out any option you don't need; the player then uses its default or the feed's player settings.
  • WIDTH and HEIGHT are pixel values. Use 100% for the width to fill the available space.
  • PLAYMODE is the initial play mode, one of [liveimage, liveimageloop, livevideostream, livetimelapse, livevideoclip, historyimage].
  • PLAYMODESPOSSIBLE is a comma separated list of the play modes to offer.
  • FRAMESIZINGMODE is one of [auto, uniformtofill, uniform].
  • FRAMETIME is the time of a recorded frame to show. If there's no frame at that time, the most recent or live frame is shown. Get it from the player's share option while viewing the frame.
  • SHOWSPLASHBADGE and SHOWOVERLAYBADGE are true or false: show the Teleport splash and brand, and the badge overlay, where your plan allows hiding them.
  • OVERLAYOPACITY is the opacity of the player's overlay, from 0 to 1. The default is 0.5.
  • BACKGROUNDCOLOR is a CSS color, e.g. black or %23000000 (write # as %23 in URLs).
  • IMAGEPLAYSPEED controls how fast images change in the live image loop and history image play modes. Formats: ?.??sec, ?.??fps or ?.??x.
  • PLAYFRAMESKIPINTERVAL is the interval between played frames in the live image loop and history image play modes, one of [sec, min, 5min, 15min, hour, day, month]. Custom values aren't supported yet. Email us if you need one.
  • PLAYFRAMECOUNT is how many frames to play, from 1 to 1000. It applies to the live image loop play mode only.
  • VIDEOPLAYSPEED controls how fast time-lapse video plays. Formats: ?.??sec, ?.??fps or ?.??x; x multiplies the video's original speed.
  • ACCESSKEY embeds the player with an access key, giving view access to the feeds it covers, including non-public ones.
  • More coming soon! Please contact us for any help.

Example player with uniform sizing and the live image loop as the initial play mode

Demo code

V2 player embedding

The V2 player has a minimal UI and began as support for non-interactive scenarios such as digital signage and lobby TVs with a custom playlist. UI is being added, and it will replace the V1 player shortly.

Demo code

Access feed images

Access a live feed image

GET
https://www.teleport.io/api/v2/frame-get?feedid=FEEDID&sizecode=SIZECODE&accesskey=ACCESSKEY
  • Returns the feed's current image as JPEG.
  • SIZECODE is one of [x480, x768, x1080, x2160, x4320] image sizes.
  • The image is at most the size asked for. It's smaller when the feed doesn't have that size, so an image is returned whenever one exists.
  • Add &sizematch=SIZEMATCH to choose how SIZECODE is matched. SIZEMATCH is one of [c, e, d]: c (the default) returns the closest size; e returns exactly that size, else a 404; d returns the default size, x768, and needs no SIZECODE.
  • HTTP method: GET

Demo code

Access a recorded feed image

GET
https://www.teleport.io/api/v2/frame-get?feedid=FEEDID&frametime=FRAMETIME&sizecode=SIZECODE&timematch=TIMEMATCH&accesskey=ACCESSKEY
  • Returns the image recorded at FRAMETIME as JPEG.
  • FRAMETIME is the frame's time, accurate to the second, e.g. 2026-09-21T01:25:47Z.
  • SIZECODE is one of [x480, x768, x1080, x2160, x4320] image sizes. The image is at most that size, smaller when the feed doesn't have it.
  • Add &sizematch=SIZEMATCH to choose how SIZECODE is matched. SIZEMATCH is one of [c, e, d]: c (the default) returns the closest size; e returns exactly that size, else a 404; d returns the default size, x768, and needs no SIZECODE.
  • TIMEMATCH is one of [exact, closest-past, closest-future, closest-any]. The default, exact, returns a 404 when there's no frame at exactly FRAMETIME; the others return the closest frame before, after or either side of it.
  • HTTP method: GET

Demo code

Access recorded time-lapse video

Find a video

GET
https://www.teleport.io/api/v2/video-get?feedid=FEEDID&videoquery=VIDEOQUERY&videotype=VIDEOTYPE&videopartnumber=VIDEOPARTNUMBER&sizecode=SIZECODE&querydata=QUERYDATA&accesskey=ACCESSKEY
  • Returns the MP4 video data of the video, or video part, matching the query by name and type. With QUERYDATA set to true, it returns JSON with the video's details instead.
  • VIDEOQUERY is the full or partial name or tags of the time-lapse profile to match, e.g. 'all-time' or 'recent'. To be more precise, use a | separated list: profile | video name, tags or speed, e.g. "all-time|108,000x", "recent|Last 30 days" (name) or "recent|last-30-days" (tags). Set tags on the profile and its videos to simplify queries. Encode spaces as %20 or +.
  • VIDEOTYPE is one of [live, complete, completeorlive]. completeorlive returns the complete video, or the live video if there's no complete one.
  • VIDEOPARTNUMBER is the part to return, starting at 0. Long videos are split into parts.
  • SIZECODE is one of [x480, x768, x1080, x2160, x4320] video sizes. It matches a video of that size if the profile has one and it has been made.
  • QUERYDATA set to true returns JSON with the video's details, such as its duration, parts and their ids.
  • HTTP method: GET

Get a specific video part

GET
https://www.teleport.io/api/v2/video-get?feedid=FEEDID&videoresourceid=VIDEORESOURCEID&videoid=VIDEOID&videopartid=VIDEOPARTID&rt=RT&accesskey=ACCESSKEY
  • Returns the MP4 video data of a specific video part. Get the ids from a QUERYDATA=true query. Videos are split into parts to avoid 20–50 GB files.
  • RT is the video's timestamp, so you get the latest version of a live video. Get it from the QUERYDATA=true result.
  • HTTP method: GET

Demo code

Manage feeds

Get feed information

GET
https://www.teleport.io/api/v2/feed-get?feedid=FEEDID&accesskey=ACCESSKEY
  • Returns the feed's properties as JSON, such as its name, description and current frame time.
  • HTTP method: GET

Demo code

Set feed state

POST
https://www.teleport.io/api/v2/feed-setstate?feedid=FEEDID&feedstate=FEEDSTATE&feedstateautoenable=true|false&feedstateautodisableinterval=FEEDSTATEAUTODISABLEINTERVAL&feedstateautoarchiveinterval=FEEDSTATEAUTOARCHIVEINTERVAL
  • Changes the feed's state immediately.
  • FEEDSTATE is one of [capture, view, disable, archive].
  • FEEDSTATEAUTODISABLEINTERVAL and FEEDSTATEAUTOARCHIVEINTERVAL are optional positive ISO 8601 durations, e.g. P1D for 1 day or PT1H for 1 hour. P0D turns them off.
  • Needs your API key. Don't call this method from browser-side code, as it would expose your API key.
  • HTTP method: POST

Demo code

Manage recorded frames

Query recorded frames

GET
https://www.teleport.io/api/v2/frame-query?feedid=FEEDID&starttime=STARTTIME&endtime=ENDTIME&interval=INTERVAL&accesskey=ACCESSKEY
  • Returns JSON with the times of the frames recorded from STARTTIME to ENDTIME (Frames), for use with frame-get or frame-delete.
  • STARTTIME and ENDTIME are times, e.g. 2026-09-21T01:25:47Z.
  • INTERVAL is optional, the seconds between returned frames. Use it to thin out the result, e.g. 3600 for frames 1 hour apart.
  • HTTP method: GET

Demo code

Delete recorded frames

DELETE
https://www.teleport.io/api/v2/frame-delete?feedid=FEEDID&frametime=FRAMETIME
  • Permanently deletes the frame recorded at FRAMETIME. Use frame-query to get frame times.
  • FRAMETIME is the frame's exact time, e.g. 2026-09-21T01:25:47Z.
  • Add &intervallength=INTERVALLENGTH to delete all the frames from FRAMETIME to the end of that interval. INTERVALLENGTH is one of [sec, min, hour, day, month].
  • Needs the API key of the feed's account. Access keys can't delete frames.
  • HTTP method: DELETE

Demo code

Upload an image to a feed

POST
https://www.teleport.io/api/v2/frame-set?feedid=FEEDID&frametime=FRAMETIME&broadcastkey=BROADCASTKEY
  • Uploads an image to the feed as a frame.
  • FRAMETIME is optional, the time the image was taken, e.g. 2026-09-21T01:25:47Z. Without it, the current time is used.
  • Needs the feed's BROADCASTKEY, or your API key in the Authorization header instead.
  • Send the image as the request body with its Content-Type (image/jpeg or image/png), or as a file in a multipart form.
  • Images can be up to 20 MB.
  • HTTP method: POST

Demo code, upload from a file

Demo code, upload from a webcam (supported platforms only)

Import and export with PowerShell

Import recorded images or broadcast live images to Teleport

  • Upload PNG or JPEG images with a PowerShell script.
  • It can also upload live images, for example from a local folder another app saves images to.
  • The script uses the APIs above, so you can easily change it for your needs.
  • Download the Teleport PowerShell broadcast script.

Export recorded images

  • A PowerShell script exports recorded images from Teleport, for integrations or to keep your own copy.
  • The script uses the APIs above, so you can easily change it.
  • Download the Teleport PowerShell export script.
  • Get your API key in the console under Settings → API, and the feed IDs on each feed's API tab.

Run the export script on Windows

  • The script isn't signed, so Windows may warn you. Only run scripts you trust. Right-click the downloaded file, open Properties and select Unblock.
  • To open PowerShell, press Windows + R, type powershell and select OK.
  • Type $PSVersionTable.PSVersion to check the version. If Major is below 4, install the latest PowerShell.
  • Allow scripts to run in this PowerShell window only: Set-ExecutionPolicy -Scope Process Bypass.
  • Go to the folder the script was downloaded to, e.g. cd C:\Users\UserName\Downloads.
  • Type .\teleport-export.ps1 to run the script. It asks for each parameter before the export starts. Type !? at any prompt for help.
  • To pass the parameters on the command line instead: .\teleport-export.ps1 -feedId 'FEEDID' -startTime 20240601T000000 -endTime 20240901T000000 -interval 20000 -sizeCodes ('x480', 'x768', 'x1080', 'x2160', 'x4320') -key 'YOUR_API_KEY' -exportFolder 'C:\TeleportExport\'.
  • -interval is the seconds between exported frames, e.g. 0 exports all frames and 60 exports frames 60 seconds apart.
  • To export only the largest available images, without the scaled down copies, use just the 'x4320' size code or leave -sizeCodes out.
  • To load the script into PowerShell, run . .\teleport-export.ps1 (note the extra dot and space).
  • Then type Teleport-Export to run the export function directly, or Get-Help Teleport-Export -Detailed for help.

Run the export script on Linux or macOS

  • Install PowerShell on Linux or on macOS.
  • Download the export script:
    curl -sL https://blob.teleport.io/apps/powershell/teleport-export.ps1 -o teleport-export.ps1
  • And run it:
    pwsh ./teleport-export.ps1

For example, this exports the 4K and 1080p images between the given dates; interval 0 exports all images.

.\teleport-export.ps1 -feedId 'FEEDID' -sizeCodes 'x2160', 'x1080' -key 'YOUR_API_KEY' -startTime 2021-01-22T00:00:00Z -endTime 2023-01-22T00:00:00Z -interval 0 -exportFolder 'C:\TeleportExport\'

Explore the API and generate code (Swagger)

The Teleport Swagger UI is an always up-to-date reference of the public REST API, with request and response schemas and the option to try each call.

  • Open it at /swagger to browse the API, check the parameters and try calls.
  • Download the OpenAPI document from /swagger/v2/swagger.json to generate clients or for integration tests.
  • Generate client libraries in any language with tools such as OpenAPI Generator or NSwag.
  • Use the Authorize button in Swagger UI to enter your API key; calls then send it in the Authorization header.
Open Swagger UI

Integrer med Teleport

Ønsker du å integrere Teleport med dine egne systemer, eller trenger du spesialfunksjoner skreddersydd for din bedrift? Teamet vårt kan hjelpe deg med å bygge den rette løsningen.

Kontakt oss