dilame / instagram-private-api

NodeJS Instagram private API SDK. Written in TypeScript.
MIT License
5.99k stars 1.14k forks source link

IG reels in search by tag feed #1623

Open simpy25 opened 2 years ago

simpy25 commented 2 years ago

For some reason, reels videos are not showing in get posts by tag name api call results. Is it supposed to be so? I created reels video with tag loooooooop1234, but I do not see it in results list

kingbotss commented 2 years ago

It is not added. You can yourself.

simpy25 commented 2 years ago

@kingbotss but as far as I'm reeding, Instagram Graph API or Instagram Basic Display API doesn't support Reels at all https://developers.facebook.com/docs/instagram-api/ Limitations: Reels are not supported. https://developers.facebook.com/docs/instagram-basic-display-api Unsupported Media — IGTV, Stories, Reels, and Comments are not supported. I'm starting to think that it's not possible at all. Do you know anything about it?

kingbotss commented 2 years ago

You can try whitehat settings and read private api. Then you can.

kingbotss commented 2 years ago

async sections(q) { const { body } = await this.client.request.send({ method: "POST", url: "https://i.instagram.com/api/v1/tags/"+${encodeURI(q)}+"/sections/", form: { tab: 'recent', page: this.page ? this.page : "", max_id: this.nextMaxId ? this.nextMaxId : "", rank_token: this.ranktoken ? this.ranktoken : new chance_1.Chance().guid(), count: 30, include_persistent: true }, }); this.state = body; return body; }

Add it to tag repository file.

hondy15 commented 2 years ago

async sections(q) { const { body } = await this.client.request.send({ method: "POST", url: "https://i.instagram.com/api/v1/tags/"+${encodeURI(q)}+"/sections/", form: { tab: 'recent', page: this.page ? this.page : "", max_id: this.nextMaxId ? this.nextMaxId : "", rank_token: this.ranktoken ? this.ranktoken : new chance_1.Chance().guid(), count: 30, include_persistent: true }, }); this.state = body; return body; }

Add it to tag repository file.

@kingbotss tried this code, doesn't work. No reels in result

kingbotss commented 2 years ago

Maybe app version need to update. My version is 184.0.0. && 204.0..*

kingbotss commented 2 years ago

https://github.com/kingbotss/instagram-private-api/blob/master/src/repositories/tag.repository.ts