Hexa API

A powerful video streaming API that is easy to use!

Loading...
Loading...

Try It Out

Find IDs at themoviedb.org

Integration Guide

Basic Implementation

To embed a video player in your website, use the following iframe structure:

HTML
<iframe src="https://api.hexa.watch/movie/238" allowfullscreen></iframe>

Styling

Recommended CSS for responsive embedding:

CSS
.player-wrapper { position: relative; padding-bottom: 56.25%; /* 16:9 aspect ratio */ } .player-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

Iframe Embedding

You can embed movies and TV shows directly in your website using an iframe:

Movie Example
TV Show Example

API Reference

GET /movie/:tmdbId

Loads a movie player by TMDB ID

Parameters:

  • tmdbId - The Movie Database ID (required)
GET /tv/:tmdbId/:season/:episode

Loads a TV show episode player

Parameters:

  • tmdbId - The Movie Database ID (required)
  • season - Season number (required)
  • episode - Episode number (required)
GET /list/{type}

Get a list of all available movies or TV shows

Parameters:

  • type - Content type (required): "movie" or "tv"

Examples:

Movies List
http://localhost:3000/list/movie
TV Shows List
http://localhost:3000/list/tv

Contact Us

Have questions, suggestions, or found a bug? We'd love to hear from you!

Join Our Community!

Get support, updates, and connect with others