Saving Instagram images automatically every hour with Node.js or PHP

Sniffagrammers

logo

In this repo you can find Node.js and PHP files to automatically downloading pictures from instagram by https://orsi.me/sniffagram


Prerequisites

Just a web space where to execute a Node.js script.. or PHP script; alternatively you can run the script on your computer.

If you want to run the script automatically you need Crontab installed where you execute the code or a free account to crontaboo.com.

Open the script

Open node/sniffagrammer.js or php/sniffagrammer.php.

Edit the code according to your needs:

// type can be 'tag' or 'user'
const type = 'user'

// if type is 'tag', the script will search for #orsifrancesco
// if type is 'user', the script will search for @orsifrancesco
const value = 'orsifrancesco'

// only for sniffagrammer.js
// you can change the port of the server
const port = 8080

Upload the script on your web space.

If you use Node.js just run node sniffagrammer.js (and open the browser).

If you use PHP you can just upload sniffagrammer.php to your web space.

Open the browser

You should be able to see the output on http://yourWebSpace:8080 (or the port you set, or http://localhost:8080 if you are running the Node.js script on your computer) or http://yourWebSpace/sniffagrammer.php (or http://localhost if you are running the PHP script on the htdocs/ folder of your computer).

Every time you open the URL, the script will call Sniffagram endpoint checking for new images and saving them on images/ folder.

JSON output

Check the result

On images/{type}/ (where type can be tag or user) you will see all the downloaded images.

Every time you download a new image, you will find the hash (wikipedia) of the image path on temp/{type}/.

These files are 0 bytes, they are necessary to prevent downloading the same images (if you delete these files the images will be downloaded again).

folders

Download images automatically every hour

To call the URL automatically, you need to run a crontab (wikipedia) script. If you don’t have crontab installed on your machine you can register at crontaboo.com (the free account gives you the possibility to call URLs every hour).

crontaboo.com

Advanced way to do it

Sniffagram is an independent project that gives you 30 calls a day (enough for a call every hour). It caches the output for 5 minutes.

Due to the high number of requests, sometimes the token used for the project expires prematurely making the service unavailable (usually the expired token is replaced after a few minutes).

For unlimited requests (no cache, every minute) you need to follow the tutorial from the official repo Instagram without API for Node.js or PHP.

Resource Links

⚖️ License

Licensed under MIT

About

Any feedback to @orsifrancesco and coffees are welcome 🙂

Read More
Christeen Lanz

Latest

Sleater-Kinney and Liz Phair Unite for Co-Headlining Tour

Music Sleater-Kinney and Liz Phair are hitting the road...

Foodies! Get Ready to Feast at GTCO Food and Drink Festival 2026

Music Food lovers, it is almost that time again....

Shazmicsoul – Next 2 U Ft Floyd Rhythmic

MusicDOWNLOAD MP3 SONG...

Newsletter

Don't miss

Sleater-Kinney and Liz Phair Unite for Co-Headlining Tour

Music Sleater-Kinney and Liz Phair are hitting the road...

Foodies! Get Ready to Feast at GTCO Food and Drink Festival 2026

Music Food lovers, it is almost that time again....

Shazmicsoul – Next 2 U Ft Floyd Rhythmic

MusicDOWNLOAD MP3 SONG...

“Fame Has Downsides” – Davido Opens Up on Painful Family Struggles

MusicDavido has spoken about the negative side of...

Jury acquits 2 business executives of bribing Navy admiral for government contract

A federal jury has acquitted two business executives of charges that they conspired to bribe a retired four-star U.S. Navy admiral, who is now serving a six-year prison sentence for his conviction on corruption charges By MICHAEL KUNZELMAN Associated Press WASHINGTON -- A federal jury has acquitted two business executives of charges that they conspired

US Business Leaders Optimistic About China Cooperation, Emphasize Importance of Chinese Market

© 2026 China Money Network. All Rights Reserved. Disclaimer: The views, opinions, forecasts, and statements made by our hosts and guests are the personal views of those respective individuals and may or may not be either endorsed or accepted by China Money Network Limited or the companies with which these individuals are employed.

Tesla’s Business Has Become Much More Diversified in Just the Past Five Years. Does That Make Its Stock a Better Buy Today?

Key Points Tesla's energy generation and storage segment generated 27% revenue growth last year. The company's non-automotive segments were able to help offset a double-digit decline in auto revenue in 2025. These 10 stocks could mint the next wave of millionaires › Tesla (NASDAQ: TSLA) is known for its electric vehicles (EVs), and while they