Skip to content

Function: paginateContentInsights() ​

ts
function paginateContentInsights(client, options?): AsyncGenerator<{
[key: string]: unknown;
  metrics?: object[];
  thumbnail: {
   [key: string]: unknown;
     caption_text?: string | null;
     creation_time?: number;
     media_id: string;
     media_type?: string;
     media_url?: string | null;
  };
}>;

Walks the whole content list, one item at a time across pages.

Parameters ​

ParameterType
clientPrivateClient
options?Omit<ContentInsightsOptions, "cursor">

Returns ​

AsyncGenerator<{ [key: string]: unknown; metrics?: object[]; thumbnail: { [key: string]: unknown; caption_text?: string | null; creation_time?: number; media_id: string; media_type?: string; media_url?: string | null; }; }>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.