Skip to main content

Developer Quickstart

This guide walks you through the recommended “upload → wait for processing → play” flow using the AntCDN API.

Key Concepts

  • Asset ID (video ID): Used for API operations (details, delete, etc).
  • Edge Key: The ID you embed in players. You can rotate/revoke Edge Keys without re-uploading the video.
  • Playback: Use our iframe player (player.antcdn.net) or stream HLS playlists from the worker (worker.antcdn.net).

Get Your API Key

In the dashboard, go to Settings → API Keys and create an API key.

Caution

Save your API key somewhere safe, you won’t be able to see it again.

Get a Video to Upload

Any video will do. Need a sample video? Try this one.

You’ll request a pre-signed upload URL, upload the bytes directly to storage, and AntCDN will start processing automatically once the upload completes.

View:

See Your Video in the Dashboard

Navigate to app.antcdn.net to see your video.

Play Your Video

Once processing finishes, create (or use) an Edge Key and embed it.

<!-- Embed the AntCDN player using an Edge Key -->
<iframe
src="https://player.antcdn.net/v1/{edgeKey}/master.m3u8?autoplay=true&muted=true"
frameborder="0"
allowfullscreen>
</iframe>

If you want to stream HLS directly (without the iframe player), see the Video Playback and Video Player sections.