Sometimes, we would like to download the photos from Instagram to our Google Drive with specific tags of interest and make a backup of those photos.
In this tutorial, I'll tell you how you can use Google Apps Script to fetch photos to your Google Drive.
Register a client first and get the client ID which will be used with Instagram API endpoint.
Once you have got the client Id, Copy and paste below code in a new Google Apps Script File. Change the TAG_NAME to your favorite #tag, also change the CLIENT_ID
Note : If the number of photos are large, the script may time out as it will try to download all the photos in single run. To overcome this, operation can be broken as pages and state of the program can be saved either as script property or as an object in ScriptDb, so that on the next run, script will continue fetching photos where it left.
Keywrords : Instagram Photos in Google Drive, Backup Instagram photo in Google Drive, Google Apps Script with Instagram API, Google Apps Script UrlFetch to fetch photos/files, Instagram hash tag API and Google Apps Script