People List
Query the people that have been changed in the last 24 hours.
Query the people that have been changed in the last 24 hours, or since a specified date.
async people_list(): Promise<PaginatedResponse<ChangeResultItem>>TMDB Reference: People List
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
page | number | ❌ | Page number for paginated results. Defaults to 1 if not specified. |
start_date | string | ❌ | The start date for the range of changes to query. |
end_date | string | ❌ | The end date for the range of changes to query. |
Returns
A PaginatedResponse of ChangeResultItem objects containing
the associated people changes ids.
Example
import { TMDB } from "@lorenzopant/tmdb";
const tmdb = new TMDB("your-api-key");
const peopleChanges = await tmdb.changes.people_list();
console.log(peopleChanges);
// {
// page: 1,
// results: [
// { id: 123, adult: false },
// { id: 456, adult: false },
// ...
// ],
// total_pages: 10,
// total_results: 200
// }