Search Companies
Search for companies by their original and alternative names.
tmdb.search.company(options: {
query: string;
page?: number;
}): Promise<PaginatedResponse<SearchCompanyItem>>
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | ✅ | Search query text |
page | number | ❌ | Page number (default: 1) |
Reference
Example
const results = await tmdb.search.company({ query: "a24" });
Response
{
"page": 1,
"results": [
{
"id": 41077,
"logo_path": "/1ZXsGaFPgrgS6ZZGS37AqD5uU12.png",
"name": "A24",
"origin_country": "US"
}
],
"total_pages": 1,
"total_results": 1
}
Types
export type SearchCompanyItem = {
id: number;
logo_path: string;
name: string;
origin_country: CountryISO3166_1;
};
type PaginatedResponse<T> = {
page: number;
total_pages: number;
total_results: number;
results: T[];
};