riad-azz / instagram-video-downloader

Simple website made with Next.js for downloading instagram videos with an API that can be used to integrate it in other applications.
https://instagram-videos.vercel.app
MIT License
211 stars 97 forks source link

API JSON #4

Closed RudReis closed 1 year ago

RudReis commented 1 year ago

image Even with the "export const enableServerAPI = true;" it does not bring the result in json anymore

image

riad-azz commented 1 year ago

Can you explain more? what do you mean bring the result in json?

RudReis commented 1 year ago

Before I took the download link by /api?url= and gave me the result, but now it is not even with the export const enableServerAPI = true;

I use it on my whatsapp bot:

image

RudReis commented 1 year ago

image

riad-azz commented 1 year ago

The enableServerAPI means that the /api/instagram endpoint can be accessed from other websites/applications not that it will enable Instagram API, the Next.js app scrapes the post or reel page and if it doesn't find the "LD+JSON" it will return status code 401.

To use Instagram API you will have to implement their official API because i tried using the Auth cookie but the account just ends up being banned so i removed it.