Background
The examples show search.id for TMDB ID lookup, but many apps start from a typed search box before they have an external ID.
Proposed change
Add an example that searches movies and shows with trakt.search.text, including fields, pagination, and optional extended query options.
Acceptance criteria
- Example uses
trakt.search.text(["movie", "show"], "dune", ...).
- The example shows how to read
result.movie or result.show safely.
- The example mentions pagination metadata returned from the wrapper.
bun run verify passes.
Files likely involved
docs/examples.md
src/endpoints/search.ts
Background
The examples show
search.idfor TMDB ID lookup, but many apps start from a typed search box before they have an external ID.Proposed change
Add an example that searches movies and shows with
trakt.search.text, includingfields, pagination, and optionalextendedquery options.Acceptance criteria
trakt.search.text(["movie", "show"], "dune", ...).result.movieorresult.showsafely.bun run verifypasses.Files likely involved
docs/examples.mdsrc/endpoints/search.ts