instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

FEATURE: Added clips timeline and clip upload support.

Open preayham opened this issue 1 year ago • 0 comments

I added the ability to fetch instagram reels (clips) with the graphql API and jsdom to get a needed header called fb_dtsg. The first two commits have been voided and are made up into the third.

How to get the clips timeline:

const feed = client.feed.clipsFeed();
const items = await feed.items();
const isMoreAvailable = feed.isMoreAvailable();

How to upload clips:

await client.publish.video({
  coverImage,
  video,
  isClipVideo: true,
});

preayham avatar Dec 07 '23 04:12 preayham