Skip to content

Interface: HighlightApi ​

Story highlights on a profile. Reading is open to anyone who may see the profile.

Methods ​

create() ​

ts
create(
   title, 
   storyIds, 
   options?
): Promise<{
[key: string]: unknown;
  id: string;
  items?: object[];
  media_count?: number | null;
  title?: string;
  user?: {
   [key: string]: unknown;
     biography?: string;
     external_url?: string | null;
     follower_count?: number | null;
     following_count?: number | null;
     full_name?: string;
     is_private?: boolean;
     is_verified?: boolean;
     media_count?: number | null;
     pk?: string;
     profile_pic_url?: string | null;
     username?: string;
  };
}>;

Creates a highlight from some of the account's own stories (full ids, or bare pks).

Parameters ​

ParameterType
titlestring
storyIdsreadonly string[]
options?CreateHighlightOptions

Returns ​

Promise<{ [key: string]: unknown; id: string; items?: object[]; media_count?: number | null; title?: string; user?: { [key: string]: unknown; biography?: string; external_url?: string | null; follower_count?: number | null; following_count?: number | null; full_name?: string; is_private?: boolean; is_verified?: boolean; media_count?: number | null; pk?: string; profile_pic_url?: string | null; username?: string; }; }>


delete() ​

ts
delete(highlightId): Promise<void>;

Deletes a highlight; its stories are not deleted.

Parameters ​

ParameterType
highlightIdstring

Returns ​

Promise<void>


edit() ​

ts
edit(highlightId, options): Promise<{
[key: string]: unknown;
  id: string;
  items?: object[];
  media_count?: number | null;
  title?: string;
  user?: {
   [key: string]: unknown;
     biography?: string;
     external_url?: string | null;
     follower_count?: number | null;
     following_count?: number | null;
     full_name?: string;
     is_private?: boolean;
     is_verified?: boolean;
     media_count?: number | null;
     pk?: string;
     profile_pic_url?: string | null;
     username?: string;
  };
}>;

Changes a highlight's title, stories or cover.

Parameters ​

ParameterType
highlightIdstring
optionsEditHighlightOptions

Returns ​

Promise<{ [key: string]: unknown; id: string; items?: object[]; media_count?: number | null; title?: string; user?: { [key: string]: unknown; biography?: string; external_url?: string | null; follower_count?: number | null; following_count?: number | null; full_name?: string; is_private?: boolean; is_verified?: boolean; media_count?: number | null; pk?: string; profile_pic_url?: string | null; username?: string; }; }>


info() ​

ts
info(highlightId): Promise<{
[key: string]: unknown;
  id: string;
  items?: object[];
  media_count?: number | null;
  title?: string;
  user?: {
   [key: string]: unknown;
     biography?: string;
     external_url?: string | null;
     follower_count?: number | null;
     following_count?: number | null;
     full_name?: string;
     is_private?: boolean;
     is_verified?: boolean;
     media_count?: number | null;
     pk?: string;
     profile_pic_url?: string | null;
     username?: string;
  };
}>;

One highlight with its stories. Accepts highlight:123 or 123.

Parameters ​

ParameterType
highlightIdstring

Returns ​

Promise<{ [key: string]: unknown; id: string; items?: object[]; media_count?: number | null; title?: string; user?: { [key: string]: unknown; biography?: string; external_url?: string | null; follower_count?: number | null; following_count?: number | null; full_name?: string; is_private?: boolean; is_verified?: boolean; media_count?: number | null; pk?: string; profile_pic_url?: string | null; username?: string; }; }>


list() ​

ts
list(userId): Promise<object[]>;

The highlights on a profile, without their stories.

Parameters ​

ParameterType
userIdstring

Returns ​

Promise<object[]>

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