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

Mark Zuckerberg’s Meta AI Predicts Unbelievable Bitcoin Price by the End of 2026

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Bitcoin Price Prediction: BTC Just Hit $81,000 for the First Time Since January But the Next 72 Hours May Decide Everything

Bitcoin Price Prediction: BTC Just Hit $81,000 for the First Time Since January But the Next 72 Hours May Decide Everything Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI

Bitcoin Price Prediction: South Carolina Moves Against CBDCs With Zero-Tax BTC Bill

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Altcoins Post Double-Digit Gains as Bitcoin Targets $63K Support; LiquidChain Presale Nears $900,000

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Newsletter

Don't miss

Mark Zuckerberg’s Meta AI Predicts Unbelievable Bitcoin Price by the End of 2026

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Bitcoin Price Prediction: BTC Just Hit $81,000 for the First Time Since January But the Next 72 Hours May Decide Everything

Bitcoin Price Prediction: BTC Just Hit $81,000 for the First Time Since January But the Next 72 Hours May Decide Everything Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI

Bitcoin Price Prediction: South Carolina Moves Against CBDCs With Zero-Tax BTC Bill

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Altcoins Post Double-Digit Gains as Bitcoin Targets $63K Support; LiquidChain Presale Nears $900,000

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Fact Checked by CryptoNews Editorial Team Author CryptoNews Editorial Team Part of the Team Since

Bitcoin Holds $79K as Kevin Warsh Takes Fed Chair; Bitcoin Hyper Presale Tops $32.6M

Author Ahmed Barakat Author Ahmed Barakat Part of the Team Since Aug 2025 About Author Ahmed Balaha is a journalist and copywriter based in Georgia with a growing focus on blockchain technology, DeFi, AI, privacy, digital assets, and fintech innovation. Last updated:  May 14, 2026 Bitcoin price held above $79,000 after the US Senate confirmed

Business seminar in Munich highlights Hong Kong’s strategic roles amidst global shifts (with photos)

Business seminar in Munich highlights Hong Kong's strategic roles amidst global shifts (with photos) ******************************************************************************************      The Hong Kong Economic and Trade Office, Berlin (HKETO Berlin), promoted Hong Kong's unique advantages and strategic roles at the seminar "Hong Kong's strategic role amidst geopolitical tensions" on June 18 (Munich time) in Munich, Germany.             Senior executives, investors

AI for business services: From job fears to productivity

AI for business services: From job fears to productivity

Business Insurance-AZ Achieves Record Response Times for 2026 Arizona Construction Bids

Business Insurance-AZ achieves milestone response speeds for commercial construction bids across Arizona, accelerating documentation delivery to keep local projects moving forward without delay. Phoenix, AZ, June 06-2026, ZEX PR WIRE — Business Insurance-AZ has achieved record-breaking processing speeds and response times for commercial construction bids throughout Arizona, directly supporting the state’s massive infrastructure and advanced manufacturing boom