tmdb_api
2.2.3, released 2 years ago by ratakondalaarun.dev
Dart client-side API package for the TMDB (The Movie Database) API.
WASM-readyCopyleft license
What it does
Provides a client library to interact with TMDB.org API endpoints such as trending movies, tv shows, watch providers, and details. Allows configuring console logs, custom Dio instances, default languages, and interceptors.
AI-written summary of version 2.2.3, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to fetch movie or TV show data from The Movie Database in a Dart or Flutter application.
- You want a pre-built wrapper over the TMDB REST API using Dio.
Skip it when
- You are building an app that does not require movie or media database integrations.
- You prefer to write raw HTTP requests directly without a third-party TMDB wrapper.
Strengths
- Supports a wide range of TMDB v3 endpoints including trending, TV series, videos, and watch providers.
- Built-in logging presets and options for custom Dio instances and interceptors.
Weaknesses
- Dependent on a specific third-party API wrapper which may lag behind official TMDB API updates.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 2
Requires an API key and/or apiReadAccessTokenv4 from The Movie Database (TMDB.org).
final tmdbWithCustomLogs = TMDB(
ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),
);
Map result = await tmdb.v3.trending.getTrending(mediaType = MediaType.all, timeWindow = TimeWindow.day);Alternatives
Packages that do the same job and could replace tmdb_api.
Works with
Packages commonly used together with tmdb_api: ones it builds on, ones built on it, and its own family.