instagram-private-api
instagram-private-api copied to clipboard
FEATURE: Added clips timeline and clip upload support.
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,
});