{"id":42109,"library":"tmdb-client","title":"tmdb-client","description":"A client for The Movie Database (TMDb) API v3, version 0.1.7. This package provides methods to search movies, TV shows, seasons, and episodes using pagination or by ID. It uses callbacks and is intended for server-side Node.js. Notable limitations: only basic querying is supported; many API endpoints are omitted. The package is no longer actively maintained and has been deprecated in favor of more complete alternatives like tmdb or moviedb.","status":"deprecated","version":"0.1.7","language":"javascript","source_language":"en","source_url":"git://github.com/thelordofthetimes/tmdb-client","tags":["javascript","tmdb","api","client","movie"],"install":[{"cmd":"npm install tmdb-client","lang":"bash","label":"npm"},{"cmd":"yarn add tmdb-client","lang":"bash","label":"yarn"},{"cmd":"pnpm add tmdb-client","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"CJS-only package, does not support ESM imports.","wrong":"import TmdbClient from 'tmdb-client';","symbol":"TmdbClient","correct":"const TmdbClient = require('tmdb-client');"},{"note":"For ESM projects, you must use createRequire.","wrong":"import { TmdbClient } from 'tmdb-client';","symbol":"TmdbClient (ESM via createRequire)","correct":"import { createRequire } from 'module';\nconst require = createRequire(import.meta.url);\nconst TmdbClient = require('tmdb-client');"},{"note":"Constructor is the default export.","wrong":"const client = new tmdbClient.TmdbClient();","symbol":"new TmdbClient()","correct":"const client = new TmdbClient();"}],"quickstart":{"code":"const TmdbClient = require('tmdb-client');\nconst client = new TmdbClient();\nclient.findMovie({ pageIndex: 1 }, (err, items) => {\n  if (err) console.error(err);\n  else console.log(items);\n});\nclient.findTvById(1399, (err, show) => {\n  if (err) console.error(err);\n  else console.log(show);\n});","lang":"javascript","description":"Demonstrates importing and using the client to fetch movies and TV shows."},"warnings":[{"fix":"Switch to 'tmdb' or 'moviedb' package.","message":"Package is no longer actively maintained. Use tmdb or moviedb instead.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Use a more complete library like 'moviedb' or 'tmdb' for full API coverage.","message":"Many TMDb API v3 endpoints are not implemented. Only movie, TV, season, and episode search are supported.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Wrap calls in a Promise or use util.promisify.","message":"Cannot call methods as promises; they require callbacks.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'0.1.7':14 'activ':60 'altern':71 'api':11,51,78 'basic':46 'callback':34 'client':3,5,79 'complet':70 'databas':9 'deprec':65 'endpoint':52 'episod':26 'favor':67 'id':31 'intend':37 'javascript':76 'like':72 'limit':44 'longer':59 'maintain':61 'mani':50 'method':18 'movi':8,21,80 'moviedb':75 'node.js':42 'notabl':43 'omit':54 'packag':16,56 'pagin':28 'provid':17 'queri':47 'search':20 'season':24 'server':40 'server-sid':39 'show':23 'side':41 'support':49 'tmdb':2,10,73,77 'tmdb-client':1 'tv':22 'use':27,33 'v3':12 'version':13","created_at":"2026-06-04T18:55:40.022960+00:00","updated_at":"2026-06-04T18:55:40.022960+00:00","problems":[{"fix":"Run 'npm install tmdb-client' in your project root.","cause":"Package not installed or installed in wrong directory.","error":"Error: Cannot find module 'tmdb-client'"},{"fix":"Ensure you do 'const TmdbClient = require('tmdb-client');' then 'const client = new TmdbClient();'.","cause":"Incorrect import or client initialization.","error":"TypeError: tmdbClient.findMovie is not a function"},{"fix":"Provide a valid API object with host, key, and path.","cause":"Custom API object passed to constructor is missing 'key' property.","error":"TypeError: Cannot read property 'key' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"git://github.com/thelordofthetimes/tmdb-client","github":"git://github.com/thelordofthetimes/tmdb-client","docs":null,"changelog":null,"pypi":null,"npm":"tmdb-client","openapi_spec":null,"status_page":null,"smithery":null,"categories":["search"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-04","next_check":"2026-09-02","install_tag":null}}