🍿 @lorenzopant/tmdb

Configuration

Type definitions for the ConfigurationAPI responses.

These types represent the data structures returned by the ConfigurationAPI methods.


ConfigurationResponse

The top-level response returned by configuration.details(). Contains image configuration settings used to construct valid image URLs.

Prop

Type

The images field is the primary reason to call configuration.details() — it provides the live base URLs and valid size options directly from TMDB, which may differ from the static constants exported by this package.


ImageConfiguration

Describes the image hosting configuration returned by TMDB, including base URLs and all supported sizes for each image type. Used within ConfigurationResponse.

Prop

Type

Prefer secure_base_url over base_url in all production environments. Combine it with one of the size arrays and a file path to build a complete image URL:

https://image.tmdb.org/t/p/{size}/{file_path}

For example: https://image.tmdb.org/t/p/w500/abc.jpg. See the Images configuration reference for the full list of size constants.


ConfigurationLanguage

Represents a single language entry as returned by configuration.languages(). Each entry corresponds to a language TMDB has recorded in its database.

Prop

Type

This differs from the Language type used in request parameters. ConfigurationLanguage is a response shape describing a language entry; Language is the input type used to filter or localize API responses.


ConfigurationCountry

Represents a single country entry as returned by configuration.countries(). Country codes follow the ISO 3166-1 alpha-2 standard.

Prop

Type

For the list of country codes accepted as input (e.g., the region option), see the CountryISO3166_1 type.


ConfigurationTimezone

Represents a single timezone entry as returned by configuration.timezones(). Each entry maps an ISO 3166-1 country code to one or more IANA timezone identifiers.

Prop

Type

For the Timezone type used as a constructor option, see the Timezone types reference.


ConfigurationJob

Represents a single department and its associated job titles, as returned by configuration.jobs(). These are used throughout TMDB to categorize crew members on movies and TV series.

Prop

Type

On this page