All seasons of a show with their episodes

GET https://api.api.sh/trakt/v1/show/seasons
1 credit / call media & music try it in the playground →

Every season of a show (number, title, ids, overview, first aired, episode counts, network, rating, images) with each season's episodes (number, title, ids, overview, first aired, runtime, episode type, rating). episodes=false returns the seasons only.

Every response includes credits_used: the credits this call cost.

Part of the Trakt API: 36 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
idrequired string Show: Trakt slug (breaking-bad), Trakt number, IMDb id (tt0903747) or a trakt.tv show link. Example: breaking-bad
episodes boolean Include each season's episodes (default true).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/trakt/v1/show/seasons?id=breaking-bad" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"id": "breaking-bad","count": 6,"seasons": [{"number": 0,"title": "Specials","trakt_id": 3949,"tvdb_id": 439371,"tmdb_id": 3577,"overview": null,"first_aired": "2009-02-18T02:00:00.000Z","episode_count": 10,"aired_episodes": 8,"network": null,"rating": 8.447368621826172,"votes": 114,"images": {"thumb": ["https://media.trakt.tv/images/seasons/000/003/949/thumbs/medium/58727e71f3.jpg.webp"],"poster": ["https://media.trakt.tv/images/seasons/000/003/949/posters/medium/f1ff16fb4a.jpg.webp"]},"episodes": [{"season": 0,"number": 1,"number_abs": null,"title": "Good Cop / Bad Cop","trakt_id": 73476,"imdb_id": "tt2392713","tmdb_id": 62131,"tvdb_id": 3859781,"overview": "Season 1 Minisode 1: Hank and Marie celebrate Valentine's Day.","first_aired": "2009-02-18T02:00:00.000Z","runtime_minutes": 3,"episode_type": "standard","rating": 8.16759967803955,"votes": 185,"comment_count": 2,"images": {"…": "1 fields"}},{"season": 0,"number": 2,"number_abs": null,"title": "Wedding Day","trakt_id": 73477,"imdb_id": "tt2392721","tmdb_id": 62133,"tvdb_id": 3859791,"overview": "Season 1 Minisode 2: Hank and Walt have a discussion on Hank and Marie's wedding day.","first_aired": "2009-02-18T02:00:00.000Z","runtime_minutes": 5,"episode_type": "standard","rating": 7.879300117492676,"votes": 116,"comment_count": 2,"images": {"…": "1 fields"}},"… 8 more"]},{"number": 1,"title": "Season 1","trakt_id": 3950,"tvdb_id": 30272,"tmdb_id": 3572,"overview": "High school chemistry teacher Walter White's life is suddenly transformed by a dire medical diagnosis. Street-savvy former student Jesse Pin…","first_aired": "2008-01-21T02:00:00.000Z","episode_count": 7,"aired_episodes": 7,"network": null,"rating": 8.505573272705078,"votes": 5012,"images": {"thumb": ["https://media.trakt.tv/images/seasons/000/003/950/thumbs/medium/0c78adaabb.jpg.webp"],"poster": ["https://media.trakt.tv/images/seasons/000/003/950/posters/medium/eded236292.jpg.webp"]},"episodes": [{"season": 1,"number": 1,"number_abs": 1,"title": "Pilot","trakt_id": 73482,"imdb_id": "tt0959621","tmdb_id": 62085,"tvdb_id": 349232,"overview": "When an unassuming high school chemistry teacher discovers he has a rare form of lung cancer, he decides to team up with a former student an…","first_aired": "2008-01-21T02:00:00.000Z","runtime_minutes": 59,"episode_type": "series_premiere","rating": 8.374917030334473,"votes": 5046,"comment_count": 32,"images": {"…": "1 fields"}},{"season": 1,"number": 2,"number_abs": 2,"title": "Cat's in the Bag...","trakt_id": 73483,"imdb_id": "tt1054724","tmdb_id": 62086,"tvdb_id": 349233,"overview": "Walt and Jesse attempt to tie up loose ends. The desperate situation gets more complicated with the flip of a coin. Walt's wife, Skyler, bec…","first_aired": "2008-01-28T02:00:00.000Z","runtime_minutes": 49,"episode_type": "standard","rating": 8.119526863098145,"votes": 4176,"comment_count": 18,"images": {"…": "1 fields"}},"… 5 more"]},"… 4 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.