Search movies, shows, episodes, people and lists
Searches Trakt by text and returns ranked matches with full details (ids for IMDb, TMDB, TVDB and Trakt, overview, ratings, genres, runtime, images). Every search filter the site supports can be added. The search answers one ranked page; limit sets its size (up to 100).
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
| name | type | description |
|---|---|---|
queryrequired | string | Search text. Example: dune |
type | string | Comma-separated kinds: movie, show, episode, person, list (default movie,show). Example: movie,show |
fields | string | Fields to search in, comma separated: title, tagline, overview, people, translations, aliases, name, biography, description. |
limit | integer | Items per page, 1-100 (default 20). |
years | string | Release year or range, e.g. 2024 or 2010-2019. |
genres | string | Genre slugs, comma separated (action,thriller; see /trakt/v1/reference?kind=genres). |
languages | string | Two-letter language codes, comma separated (en,ko). |
countries | string | Two-letter country codes, comma separated (us,gb). |
runtimes | string | Runtime range in minutes, e.g. 30-60. |
studio_ids | string | Trakt studio ids, comma separated. |
ratings | string | Trakt rating range 0-100, e.g. 75-100. |
votes | string | Trakt vote count range as min-max, e.g. 1000-100000. |
tmdb_ratings | string | TMDB rating range 0-10, e.g. 7-10. |
tmdb_votes | string | TMDB vote count range. |
imdb_ratings | string | IMDb rating range 0-10, e.g. 8-10. |
imdb_votes | string | IMDb vote count range. |
rt_meters | string | Rotten Tomatoes critics score range 0-100. |
rt_user_meters | string | Rotten Tomatoes audience score range 0-100. |
metascores | string | Metacritic score range 0-100. |
certifications | string | Certification slugs, comma separated (pg-13,r; see /trakt/v1/reference?kind=certifications). |
networks | string | Show networks by name, comma separated (HBO,Netflix); shows only. |
network_ids | string | Trakt network ids, comma separated; shows only. |
status | string | Show status, comma separated: returning series, continuing, in production, planned, upcoming, pilot, canceled, ended; shows only. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/trakt/v1/search?query=dune" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/trakt/v1/search",
params={"query": "dune"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/trakt/v1/search");
url.searchParams.set("query", "dune");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"query": "dune","type": "movie,show","applied_filters": {},"limit": 20,"count": 20,"items": [{"type": "movie","score": 578730123365189600,"movie": {"type": "movie","title": "Dune: Part Two","year": 2024,"trakt_id": 537449,"slug": "dune-part-two-2024","imdb_id": "tt15239678","tmdb_id": 693134,"tvdb_id": null,"url": "https://app.trakt.tv/movies/dune-part-two-2024","tagline": "Long live the fighters.","overview": "Follow the mythic journey of Paul Atreides as he unites with Chani and the Fremen while on a path of revenge against the conspirators who de…","released": "2024-03-01","first_aired": null,"runtime_minutes": 167,"certification": "PG-13","country": "us","language": "en","languages": ["en"],"status": "released","network": null,"aired_episodes": null,"genres": ["science-fiction","adventure"],"subgenres": ["desert","creature","… 1 more"],"rating": 8.607898712158203,"votes": 52256,"comment_count": 254,"trailer": "https://youtube.com/watch?v=U2Qp5pL3ovA","homepage": "https://www.warnerbros.com/movies/dune-part-two","airs": null,"original_title": "Dune: Part Two","images": {"logo": ["https://media.trakt.tv/images/movies/000/537/449/logos/medium/01f3448b1f.png.webp"],"thumb": ["https://media.trakt.tv/images/movies/000/537/449/thumbs/medium/57ded5bd60.jpg.webp"],"banner": ["https://media.trakt.tv/images/movies/000/537/449/banners/medium/73e053ffcd.jpg.webp"],"fanart": ["https://media.trakt.tv/images/movies/000/537/449/fanarts/medium/b7e56e851f.jpg.webp"],"poster": ["https://media.trakt.tv/images/movies/000/537/449/posters/medium/2acc44f507.jpg.webp"],"clearart": ["https://media.trakt.tv/images/movies/000/537/449/cleararts/medium/cae83da34c.png.webp"]},"updated_at": "2026-11-05T08:07:49.000Z"}},{"type": "movie","score": 578730123365189600,"movie": {"type": "movie","title": "Dune","year": 2021,"trakt_id": 287071,"slug": "dune-2021","imdb_id": "tt1160419","tmdb_id": 438631,"tvdb_id": null,"url": "https://app.trakt.tv/movies/dune-2021","tagline": "It begins.","overview": "Paul Atreides, a brilliant and gifted young man born into a great destiny beyond his understanding, must travel to the most dangerous planet…","released": "2021-10-21","first_aired": null,"runtime_minutes": 155,"certification": "PG-13","country": "us","language": "en","languages": ["en"],"status": "released","network": null,"aired_episodes": null,"genres": ["science-fiction","adventure"],"subgenres": ["betrayal","dystopia","… 7 more"],"rating": 8.174033164978027,"votes": 66666,"comment_count": 361,"trailer": "https://youtube.com/watch?v=w0HgHet0sxg","homepage": "https://www.warnerbros.com/movies/dune","airs": null,"original_title": "Dune","images": {"logo": ["https://media.trakt.tv/images/movies/000/287/071/logos/medium/d70f600678.png.webp"],"thumb": ["https://media.trakt.tv/images/movies/000/287/071/thumbs/medium/c896f44850.jpg.webp"],"banner": ["https://media.trakt.tv/images/movies/000/287/071/banners/medium/202a7fa244.jpg.webp"],"fanart": ["https://media.trakt.tv/images/movies/000/287/071/fanarts/medium/4257cce705.jpg.webp"],"poster": ["https://media.trakt.tv/images/movies/000/287/071/posters/medium/ac59f28ad6.jpg.webp"],"clearart": ["https://media.trakt.tv/images/movies/000/287/071/cleararts/medium/549f72963a.png.webp"]},"updated_at": "2026-11-05T08:07:51.000Z"}},"… 18 more"],"cached": false,"credits_used": 1}