Comments and reviews on a movie, show, season, episode or list

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

Members' public comments and reviews (text, spoiler and review flags, likes, replies, the member's rating, language, dates, username) on a movie, show, season, episode or list, sorted the way the site sorts them. Pages with page; next_page is null on the last page.

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
type movie | show | season | episode | list movie, show, season, episode or list (read from a trakt.tv link when one is given). Example: show
idrequired string The title: Trakt slug, Trakt number, IMDb id or a trakt.tv link (a season or episode link also sets season and episode). Example: inception-2010
season integer Season number (0 is specials); for type=season or episode.
episode integer Episode number in the season; for type=episode.
sort newest | oldest | likes | replies | highest | lowest | plays | watched newest (default), oldest, likes, replies, highest, lowest, plays, watched (lists: the first four). Example: likes
page integer Page number, from 1. Pass next_page back as page; null on the last page.
limit integer Items per page, 1-100 (default 20).

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

Example

curl "https://api.api.sh/trakt/v1/comments?type=show&id=breaking-bad&sort=likes" \
  -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)

{"type": "show","sort": "likes","page": 1,"limit": 20,"total": 577,"total_pages": 29,"count": 16,"next_page": 2,"items": [{"id": 29263,"comment": "11/10","spoiler": false,"review": false,"parent_id": null,"created_at": "2014-12-24T06:08:15.000Z","updated_at": "2014-12-24T06:08:15.000Z","replies": 0,"likes": 115,"language": "en","user_rating": 10,"user": {"username": "RodrigoPascoal","slug": "rodrigopascoal","vip": false,"url": "https://app.trakt.tv/users/rodrigopascoal"},"url": "https://app.trakt.tv/comments/29263"},{"id": 52653,"comment": "I have watched a lot of tv-shows in my life, (and when I say 'a lot', I mean A LOT) and this is by far the best show I have ever seen. I am …","spoiler": false,"review": false,"parent_id": null,"created_at": "2015-08-17T23:59:16.000Z","updated_at": "2015-08-17T23:59:16.000Z","replies": 2,"likes": 42,"language": "en","user_rating": 10,"user": {"username": "aamandaconda","slug": "aamandaconda","vip": false,"url": "https://app.trakt.tv/users/aamandaconda"},"url": "https://app.trakt.tv/comments/52653"},"… 14 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.