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 /, 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:/ and the key.
How do I get the next episode air date?
Read next_ 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 -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:
{
"status": "Ended",
"next": null,
"last": "2013-09-29"
}A small function that returns the next air date, or a reason when there is none:
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.
| Field | Type | Example |
|---|---|---|
air_date | string or null | "2013-09-29" |
season_number | integer | 5 |
episode_number | integer | 16 |
episode_type | string | "standard" |
id | integer | 62161 |
show_id | integer | 1396 |
name | string | Localized with language |
overview | string | Localized, can be empty |
runtime | integer or null | 56 |
still_path | string or null | "/ |
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
| Endpoint | Returns |
|---|---|
GET /3/tv/{tv_id} | seasons summary, number_of_seasons, status, next_episode_to_air, last_episode_to_air |
GET / | One season with all its episodes |
GET / | One episode with crew and guest_stars |
GET / | Name, type and episode count of each alternate order defined for the series |
GET /3/tv/airing_today and GET /3/tv/on_the_air | Series with an episode today or in the next 7 days |
Fields of an episode:
| Field | Type | Notes |
|---|---|---|
id, show_id | integer | Episode 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_number | integer | Position in the season |
episode_type | string | For example standard |
name, overview | string | Localized with language |
air_date | string or null | YYYY-MM-DD, empty or null when not announced |
runtime | integer or null | Minutes |
still_path | string or null | Join to https:/ |
vote_average, vote_count | number, integer | Currently 0 on episodes |
production_code | string | Studio code, often empty |
crew, guest_stars | array | People 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
- 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.
- 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.
- Request
/3/tv/{tv_id}/season/1with the key as a Bearer header or asapi_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.
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.
{
"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.
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 size | Requests for a full guide | On Lite (20 per minute) | On Pro+ (120 per minute) |
|---|---|---|---|
| 1 season | 2 | 10 guides a minute | 60 guides a minute |
| 5 seasons plus specials | 7 | About 3 guides a minute | About 17 guides a minute |
| 10 seasons | 11 | About 2 guides a minute | About 11 guides a minute |
| 200 followed series, status only | 200 | 10 minutes | Under 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.
| Call | Returns | Parameters | Edge cache |
|---|---|---|---|
GET /3/tv/airing_today | Series with an episode airing today | page, language, timezone | 30 minutes |
GET /3/tv/on_the_air | Series with an episode in the next 7 days | page, language, timezone | 30 minutes |
GET /3/tv/{tv_id} | next_episode_to_air for one series | language | 6 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 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 / 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.
type | Order |
|---|---|
| 1 | Original air date |
| 2 | Absolute |
| 3 | DVD |
| 4 | Digital |
| 5 | Story arc |
| 6 | Production |
| 7 | TV |
amodb returns only this list. It does not offer GET /, so the episodes inside a group are not available. Use the season endpoints for the episode data.
How it compares
| Capability | Scrape episode pages | Free-tier metadata API | amodb |
|---|---|---|---|
| Full season | One page fetch per season | Check their docs | One call, episodes array included |
| Whole series | Crawl every season | Check their docs | One call per season, listed in seasons |
| Air dates | Parse text | Check their docs | air_date plus next_episode_to_air |
| Stills | Download and resize | Check their docs | Fixed sizes on img.amodb.dev, no key |
| Other episode orders | Not available | Check their docs | episode_groups list, group contents not served |
| Languages | One locale per site | Check their docs | 14 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.
- TheTVDB API information: free under $50,000 yearly revenue with attribution and a direct link.
- Trakt Premium API: Standard API free with 500 GET requests per 5 minutes.