{"id":17268237,"url":"https://github.com/ratakondalaarun/tmdb_api","last_synced_at":"2025-04-07T11:08:53.097Z","repository":{"id":40578554,"uuid":"240318891","full_name":"RatakondalaArun/tmdb_api","owner":"RatakondalaArun","description":"Dart client library for themoviedb.org(TMDB) API","archived":false,"fork":false,"pushed_at":"2025-03-26T15:54:03.000Z","size":1888,"stargazers_count":25,"open_issues_count":1,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-31T10:04:27.288Z","etag":null,"topics":["dart","dart-package","dartlang","flutter","hacktoberfest","movie-api","pub","themoviedb","tmdb","tmdb-api","tmdb-client-library","tv-api"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/tmdb_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RatakondalaArun.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-02-13T17:21:58.000Z","updated_at":"2025-03-26T15:51:17.000Z","dependencies_parsed_at":"2024-01-25T18:31:15.487Z","dependency_job_id":null,"html_url":"https://github.com/RatakondalaArun/tmdb_api","commit_stats":{"total_commits":225,"total_committers":12,"mean_commits":18.75,"dds":"0.36888888888888893","last_synced_commit":"523b399711bfebdeca56bd2884511fc2747817e4"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatakondalaArun%2Ftmdb_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatakondalaArun%2Ftmdb_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatakondalaArun%2Ftmdb_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RatakondalaArun%2Ftmdb_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RatakondalaArun","download_url":"https://codeload.github.com/RatakondalaArun/tmdb_api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247640465,"owners_count":20971557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","dart-package","dartlang","flutter","hacktoberfest","movie-api","pub","themoviedb","tmdb","tmdb-api","tmdb-client-library","tv-api"],"created_at":"2024-10-15T08:12:51.020Z","updated_at":"2025-04-07T11:08:53.077Z","avatar_url":"https://github.com/RatakondalaArun.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmdb_api\n\n[![Dart Code Analysis](https://github.com/RatakondalaArun/tmdb_api/actions/workflows/analysis.yml/badge.svg)](https://github.com/RatakondalaArun/tmdb_api/actions/workflows/analysis.yml)\n[![CI](https://github.com/RatakondalaArun/tmdb_api/actions/workflows/ci.yml/badge.svg)](https://github.com/RatakondalaArun/tmdb_api/actions/workflows/ci.yml)\n[![pub package](https://img.shields.io/pub/v/tmdb_api?color=dark%20green\u0026include_prereleases\u0026label=pub%20package\u0026logo=dart)](https://pub.dartlang.org/packages/tmdb_api)\n[![style: lint](https://img.shields.io/badge/style-lint-4BC0F5.svg)](https://pub.dev/packages/lint)\n\u003c!-- markdownlint-disable MD033 --\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://www.themoviedb.org/assets/2/v4/logos/v2/blue_square_2-d537fb228cf3ded904ef09b136fe3fec72548ebc1fea3fbbd1ad9e36364db38b.svg\" height=100px\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1609975?s=100\u0026v=4\" height=\"100px\"\u003e  \n\u003c/p\u003e\n\nA TheMovieDatabase client library for dart.\nTo know more about TMDB visit [*offical site*](https://www.themoviedb.org/)\n\n## Getting started\n\n1) **Adding as dependencies**\n\n    [Pub.dev's installation guide](https://pub.dev/packages/tmdb_api#-installing-tab-)\n\n    Add this to your package's pubspec.yaml file:\n\n    ```yaml\n    dependencies:\n      tmdb_api: latest //visit tmdb for latest version number\n    ```\n\n2) **Import it**\n\n    Now in your Dart code, you can use:\n\n    ```dart\n    import 'package:tmdb_api/tmdb_api.dart';\n    ```\n\n3) **Create Instance**\n\n    Now you need to create instance for `TMDB` and `ApiKeys` with your api keys.\n\n    ```dart\n    final tmdbWithCustomLogs = TMDB( //TMDB instance\n        ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),//ApiKeys instance with your keys,\n      );\n    ```\n\n4) **Configuring console logs**\n\n    There are 3 logconfigs presets avaliable.\n\n    - `ConfigLogger.showAll()`: development use.\n    - `ConfigLogger.showRecommended()`: development use.\n    - `ConfigLogger.showNone()`: production use.\n\n    You can add any off this presets to `logConfig` named parameter of `TMDB` instance\n    **Custom Logs**\n\n    ```dart\n    final tmdbWithCustomLogs = TMDB(\n        ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),\n        logConfig: ConfigLogger(\n          showLogs: true,//must be true than only all other logs will be shown\n          showErrorLogs: true,\n        ),\n      );\n    ```\n\n## Example\n\nFor getting Trending movies\n\n```dart\nMap result = await tmdb.v3.trending.getTrending(mediaType = MediaType.all,timeWindow = TimeWindow.day);\n```\n\n### Custom Dio instance\n\n```dart\n    final tmdbWithCustomLogs = TMDB(\n        ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),\n        dio:Dio()// your own dio instance\n      );\n```\n\n### Setting Default api data language\n\n```dart\n    final tmdbWithCustomLogs = TMDB(\n        ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),\n        defaultLanguage:'en-US'// sets default language for all supported endpoints\n      );\n```\n\n### Adding Interceptors\n\n```dart\nfinal tmdbWithCustomLogs = TMDB(\n    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),\n    interceptors:Interceptors()..add(/*your interceptor*/)\n    );\n```\n\nor\n\n```dart\nfinal customDio = Dio();\ncustomDio.interceptors.add(/*your interceptor*/)\n\nfinal tmdbWithCustomLogs = TMDB(\n    ApiKeys('Your API KEY', 'apiReadAccessTokenv4'),\n    dio:dio\n    );\n```\n\nnote:*Use interceptors only when you are not using a custom `Dio` instance*.\n\n## For more API documentation\n\nvisit [offical API documentation](https://developers.themoviedb.org/3/getting-started/introduction)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratakondalaarun%2Ftmdb_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratakondalaarun%2Ftmdb_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratakondalaarun%2Ftmdb_api/lists"}