What does a TV episode API return?

A TV episode API returns the episodes of a series with their names, air dates and runtimes. In amodb one call, GET /3/tv/{tv_id}/season/{season_number}, returns every episode of a season, and GET /3/tv/{tv_id} holds next_episode_to_air with the next air date. A 10 season series costs 11 requests, and plans start at $5.19 a month with no extra charge for commercial use.

Each episode has episode_number, name, overview, air_date, runtime and still_path. Series ids are numeric, for example 1396 for Breaking Bad. Text fields follow the language parameter in 14 languages, and an overview stays empty when no translation exists. The paths and JSON match TMDB v3, so a TMDB client works after you change the base URL to https://api.amodb.dev/3 and the key.

How do I get the next episode air date?

Read next_episode_to_air.air_date from GET /3/tv/{tv_id}. It is a YYYY-MM-DD string next to season_number and episode_number. When no episode is scheduled, next_episode_to_air is null, and last_episode_to_air still holds the most recent one.

curl
curl -s "https://api.amodb.dev/3/tv/1396?language=en-US" \
  -H "Authorization: Bearer $AMODB_KEY" \
  | jq '{status, next: .next_episode_to_air.air_date, last: .last_episode_to_air.air_date}'

For Breaking Bad the series has ended, so the next date is null:

JSON
{
  "status": "Ended",
  "next": null,
  "last": "2013-09-29"
}

A small function that returns the next air date, or a reason when there is none:

JavaScript
async function nextAirDate(tvId) {
  const res = await fetch(`https://api.amodb.dev/3/tv/${tvId}?language=en-US`, {
    headers: { Authorization: `Bearer ${process.env.AMODB_KEY}` },
  });
  if (!res.ok) throw new Error(`amodb returned ${res.status}`);
  const show = await res.json();
  const next = show.next_episode_to_air;
  if (next && next.air_date) {
    return { date: next.air_date, season: next.season_number, episode: next.episode_number };
  }
  return { date: null, reason: show.status === 'Returning Series' ? 'not scheduled yet' : show.status };
}

next_episode_to_air and last_episode_to_air have the same fields. This table shows them with the values of Breaking Bad's last_episode_to_air, the series finale.

FieldTypeExample
air_datestring or null"2013-09-29"
season_numberinteger5
episode_numberinteger16
episode_typestring"standard"
idinteger62161
show_idinteger1396
namestringLocalized with language
overviewstringLocalized, can be empty
runtimeinteger or null56
still_pathstring or null"/pA0YwyhvdDXP3BEGL2grrIhq8aM.jpg"

Combine the object with status to pick the label. Returning Series with a null next_episode_to_air means a new season is expected but not dated. Ended and Canceled mean no more episodes. air_date is a calendar date without a time of day or time zone, so compare it with today's date and do not count down to the minute. Status values are explained on TV show API.

What data you get

EndpointReturns
GET /3/tv/{tv_id}seasons summary, number_of_seasons, status, next_episode_to_air, last_episode_to_air
GET /3/tv/{tv_id}/season/{season_number}One season with all its episodes
GET /3/tv/{tv_id}/season/{season_number}/episode/{episode_number}One episode with crew and guest_stars
GET /3/tv/{tv_id}/episode_groupsName, type and episode count of each alternate order defined for the series
GET /3/tv/airing_today and GET /3/tv/on_the_airSeries with an episode today or in the next 7 days

Fields of an episode:

FieldTypeNotes
id, show_idintegerEpisode id and series id. show_id is in season lists and in next_episode_to_air, not on the single episode path
episode_number, season_numberintegerPosition in the season
episode_typestringFor example standard
name, overviewstringLocalized with language
air_datestring or nullYYYY-MM-DD, empty or null when not announced
runtimeinteger or nullMinutes
still_pathstring or nullJoin to https://img.amodb.dev/t/p/{size}
vote_average, vote_countnumber, integerCurrently 0 on episodes
production_codestringStudio code, often empty
crew, guest_starsarrayPeople credited on the episode, with the same fields as a cast member

The full reference is on seasons and episodes API, and series fields are on TMDB TV API.

Start in 3 steps

  1. Choose a plan on amodb pricing: 20, 40 or 120 requests per minute. Every plan has every TMDB v3 compatible endpoint, the OMDb compatible endpoint, images, 14 languages and the extensions.
  2. Enter your email and pay, then sign in with the 6 digit code amodb emails you. Your first key is created and shown once; store it in an environment variable.
  3. Request /3/tv/{tv_id}/season/1 with the key as a Bearer header or as api_key.

Example request

The sample fetches season 1 of Breaking Bad (series id 1396) in English. The Go program decodes it into typed structs and prints one line per episode with the air date, the runtime and the still URL. More Go patterns are on TMDB API in Go.

bashgo
curl -s "https://api.amodb.dev/3/tv/1396/season/1?language=en-US" \
  -H "Authorization: Bearer $AMODB_KEY"
package main

import (
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"time"
)

type Episode struct {
	EpisodeNumber int     `json:"episode_number"`
	Name          string  `json:"name"`
	AirDate       string  `json:"air_date"`
	Runtime       int     `json:"runtime"`
	StillPath     *string `json:"still_path"`
}

type Season struct {
	Name         string    `json:"name"`
	SeasonNumber int       `json:"season_number"`
	Episodes     []Episode `json:"episodes"`
}

func main() {
	client := &http.Client{Timeout: 10 * time.Second}
	url := "https://api.amodb.dev/3/tv/1396/season/1?language=en-US"
	req, err := http.NewRequest("GET", url, nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer "+os.Getenv("AMODB_KEY"))
	res, err := client.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	if res.StatusCode != http.StatusOK {
		panic(fmt.Sprintf("amodb returned %s", res.Status))
	}
	var season Season
	if err := json.NewDecoder(res.Body).Decode(&season); err != nil {
		panic(err)
	}
	fmt.Println(season.Name)
	for _, e := range season.Episodes {
		still := "no still"
		if e.StillPath != nil {
			still = "https://img.amodb.dev/t/p/w300" + *e.StillPath
		}
		fmt.Printf("S%02dE%02d  %s  %3d min  %s  %s\n",
			season.SeasonNumber, e.EpisodeNumber, e.AirDate, e.Runtime, e.Name, still)
	}
}

Trimmed response: 2 of the 7 episodes, with one crew member and one guest star each.

JSON
{
  "air_date": "2008-01-20",
  "episodes": [
    {
      "air_date": "2008-01-20",
      "episode_number": 1,
      "episode_type": "standard",
      "id": 62085,
      "name": "Pilot",
      "overview": "When an unassuming high school chemistry teacher discovers he has a rare form...",
      "production_code": "",
      "runtime": 59,
      "season_number": 1,
      "show_id": 1396,
      "still_path": "/ydlY3iPfeOAvu8gVqrxPoMvzNCn.jpg",
      "vote_average": 0,
      "vote_count": 0,
      "crew": [
        {
          "department": "Camera",
          "job": "Director of Photography",
          "credit_id": "52b7029219c29533d00dd2c1",
          "adult": false,
          "gender": 2,
          "id": 2483,
          "known_for_department": "Camera",
          "name": "约翰·托尔",
          "original_name": "约翰·托尔",
          "popularity": 1.1957,
          "profile_path": "/cfL9A6tC7L5Ps5fq1o3WpVKGMb1.jpg"
        }
      ],
      "guest_stars": [
        {
          "character": "Steven Gomez",
          "credit_id": "5271b489760ee35b3e0881a7",
          "order": 8,
          "adult": false,
          "gender": 2,
          "id": 61535,
          "known_for_department": "Acting",
          "name": "史蒂文·迈克尔·奎扎达",
          "original_name": "史蒂文·迈克尔·奎扎达",
          "popularity": 1.7511,
          "profile_path": "/pVYrDkwI6GWvCNL2kJhpDJfBFyd.jpg"
        }
      ]
    },
    {
      "air_date": "2008-01-27",
      "episode_number": 2,
      "episode_type": "standard",
      "id": 62086,
      "name": "Cat's in the Bag...",
      "overview": "Walt and Jesse attempt to tie up loose ends. The desperate situation gets mor...",
      "production_code": "",
      "runtime": 49,
      "season_number": 1,
      "show_id": 1396,
      "still_path": "/AbMoecO0ZZio0LcgeLxlzdyGs6X.jpg",
      "vote_average": 0,
      "vote_count": 0,
      "crew": [
        {
          "department": "Camera",
          "job": "Director of Photography",
          "credit_id": "52b7049c19c2953b63015013",
          "adult": false,
          "gender": 2,
          "id": 17948,
          "known_for_department": "Camera",
          "name": "Reynaldo Villalobos",
          "original_name": "Reynaldo Villalobos",
          "popularity": 0.904,
          "profile_path": "/4YlfhHDRZWhbRgeqT2Bwl1u5p9j.jpg"
        }
      ],
      "guest_stars": [
        {
          "character": "Krazy-8",
          "credit_id": "52725845760ee3046b09426e",
          "order": 504,
          "adult": false,
          "gender": 2,
          "id": 1046460,
          "known_for_department": "Acting",
          "name": "Max Arciniega",
          "original_name": "Max Arciniega",
          "popularity": 1.4399,
          "profile_path": "/eqKAJKPpt41KpsLIkkBnAY4HMAL.jpg"
        }
      ]
    }
  ],
  "name": "Season 1",
  "overview": "High school chemistry teacher Walter White's life is suddenly transformed by...",
  "id": 3572,
  "poster_path": "/91EIXdWxmp2mHNRsSuDW3WyDJLj.jpg",
  "season_number": 1,
  "vote_average": 0
}

Some person names in this reply are in Chinese although the request asked for English, so fall back to original_name or an en-US request when a name does not match your display language.

How do I fetch a whole series?

amodb does not accept season/1 style values in append_to_response, so the season calls stay separate. Read number_of_seasons and the seasons list from the TV details first, then request each season in a loop.

JavaScript
const base = 'https://api.amodb.dev/3';
const headers = { Authorization: `Bearer ${process.env.AMODB_KEY}` };

async function get(path) {
  const res = await fetch(base + path, { headers });
  if (!res.ok) throw new Error(`amodb returned ${res.status} for ${path}`);
  return res.json();
}

const show = await get('/tv/1396');
for (const { season_number } of show.seasons) {
  const season = await get(`/tv/1396/season/${season_number}`);
  console.log(season.name, season.episodes.length);
}

seasons includes season 0 when the series has specials, so Breaking Bad costs 1 details call plus 6 season calls. A series with 10 seasons costs 11 requests. Details are cached at the edge for 6 hours, so store the result and refresh it on a schedule.

Series sizeRequests for a full guideOn Lite (20 per minute)On Pro+ (120 per minute)
1 season210 guides a minute60 guides a minute
5 seasons plus specials7About 3 guides a minuteAbout 17 guides a minute
10 seasons11About 2 guides a minuteAbout 11 guides a minute
200 followed series, status only20010 minutesUnder 2 minutes

A few seasons come back with an empty episodes array when no episode data is held, so the episode count you collect can be lower than number_of_episodes. A 429 with status_code 25 means the minute's budget is used up; wait the Retry-After seconds. Per plan limits are on rate limits.

Is there a TV schedule API for today and this week?

Yes. Two list endpoints answer "what is on" without walking every series you track.

CallReturnsParametersEdge cache
GET /3/tv/airing_todaySeries with an episode airing todaypage, language, timezone30 minutes
GET /3/tv/on_the_airSeries with an episode in the next 7 dayspage, language, timezone30 minutes
GET /3/tv/{tv_id}next_episode_to_air for one serieslanguage6 hours

timezone is an IANA name such as Europe/Rome. It decides which calendar day counts as today, so airing_today returns a different set for Asia/Tokyo than for Pacific/Auckland. One request every 30 minutes is 48 a day, enough for a "tonight" strip. Match the returned ids against the series your users follow, then read next_episode_to_air for the episode number. The lists are documented on TMDB trending API.

Stills and runtimes

Use w185 or w300 for list rows and original for full size. The still sizes are w92, w185, w300 and original. An episode can have no still, so render a placeholder when still_path is null. The image host needs no key and keeps files for 30 days, see TMDB image URL.

runtime is in minutes and can be null. To show a binge time for a season, add up runtime over episodes and count null as 0: season 1 of Breaking Bad starts with 59 and 49 minute episodes. Add append_to_response=credits,images to the single episode path for a credits object and a stills list. The episode cast array is empty, and the people sit in crew and guest_stars. Details are on credits API.

Alternate orders with episode groups

Some series are watched in a different order than the one they aired in. GET /3/tv/{tv_id}/episode_groups lists the orders defined for a series. Each entry has id, name, description, type, episode_count, group_count and network. The results array is empty when none are defined.

typeOrder
1Original air date
2Absolute
3DVD
4Digital
5Story arc
6Production
7TV

amodb returns only this list. It does not offer GET /3/tv/episode_group/{id}, so the episodes inside a group are not available. Use the season endpoints for the episode data.

How it compares

CapabilityScrape episode pagesFree-tier metadata APIamodb
Full seasonOne page fetch per seasonCheck their docsOne call, episodes array included
Whole seriesCrawl every seasonCheck their docsOne call per season, listed in seasons
Air datesParse textCheck their docsair_date plus next_episode_to_air
StillsDownload and resizeCheck their docsFixed sizes on img.amodb.dev, no key
Other episode ordersNot availableCheck their docsepisode_groups list, group contents not served
LanguagesOne locale per siteCheck their docs14 languages via language

Free episode data exists: TheTVDB v4 is free under $50,000 yearly revenue with attribution and a direct link, and Trakt's Standard API allows 500 GET requests per 5 minutes. TVmaze is another option; check their site for current terms. The details are on TVDB API, Trakt API and TVmaze API.

How much does the TV episode API cost?

amodb costs $5.19, $6.19 or $7.19 a month for 20, 40 or 120 requests per minute. Plans are prepaid for 1, 3, 6, 12 or 24 months, with 0, 10, 20, 30 or 40 percent off for the longer periods, so Lite on 24 months is $74.74, or $3.11 a month. Card, Apple Pay and Google Pay payments do not renew automatically; Patreon is monthly and renews on Patreon until you cancel there. Every plan has every TMDB v3 compatible endpoint, the OMDb compatible endpoint, images, 14 languages and the extensions, including every endpoint on this page. Refreshing a series costs one request for the details and one per season. There is no free tier. Pick a plan on amodb pricing.

Sources

Read on 2026-10-19.