Registry / search / tmdb-client

tmdb-client

JSON →
library0.1.7jsnpmunverified

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.

npm install tmdb-client
INSTALL
IMPORT
SIG · TMDB-CLIENT
T
tmdb-client
searchjavascriptv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TmdbClient
const TmdbClient = require('tmdb-client');
import TmdbClient from 'tmdb-client';
CJS-only package, does not support ESM imports.
TmdbClient (ESM via createRequire)
import { createRequire } from 'module'; const require = createRequire(import.meta.url); const TmdbClient = require('tmdb-client');
import { TmdbClient } from 'tmdb-client';
For ESM projects, you must use createRequire.
new TmdbClient()
const client = new TmdbClient();
const client = new tmdbClient.TmdbClient();
Constructor is the default export.

Demonstrates importing and using the client to fetch movies and TV shows.

const TmdbClient = require('tmdb-client'); const client = new TmdbClient(); client.findMovie({ pageIndex: 1 }, (err, items) => { if (err) console.error(err); else console.log(items); }); client.findTvById(1399, (err, show) => { if (err) console.error(err); else console.log(show); });
Debug
Known issues
deprecatedPackage is no longer actively maintained. Use tmdb or moviedb instead.
fix
Switch to 'tmdb' or 'moviedb' package.
affects: >=0.0.0
gotchaMany TMDb API v3 endpoints are not implemented. Only movie, TV, season, and episode search are supported.
fix
Use a more complete library like 'moviedb' or 'tmdb' for full API coverage.
affects: >=0.0.0
gotchaCannot call methods as promises; they require callbacks.
fix
Wrap calls in a Promise or use util.promisify.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'tmdb-client'
Package not installed or installed in wrong directory.
fix
Run 'npm install tmdb-client' in your project root.
TypeError: tmdbClient.findMovie is not a function
Incorrect import or client initialization.
fix
Ensure you do 'const TmdbClient = require('tmdb-client');' then 'const client = new TmdbClient();'.
TypeError: Cannot read property 'key' of undefined
Custom API object passed to constructor is missing 'key' property.
fix
Provide a valid API object with host, key, and path.
Upgrade
Version history
0.1.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
48 hits · last 30 days
node
43
Resources
tmdb-client — npm install tmdb-client · libregistry