Skip to content

Add a search.text example for catalog search #2

@TDanks2000

Description

@TDanks2000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions