The Instagram post URL (e.g., photo, video, reel, IGTV).
A promise that resolves to an NBScraperResponse containing an array of download items.
import { savegram } from 'nb-scraper';
(async () => {
const instagramUrl = '[https://www.instagram.com/reel/DG7I2Ezz2sy/?igsh=MTFoN2Z1MDJpeGNj](https://www.instagram.com/reel/DG7I2Ezz2sy/?igsh=MTFoN2Z1MDJpeGNj)';
const result = await savegram(instagramUrl);
if (result.status) {
console.log('Download items:', result.data.items);
} else {
console.error('Error:', result.error);
}
})();
Downloads Instagram media (videos/photos) via the savegram.info service. This function is highly dependent on the target website's dynamic JS, making it prone to breaking changes.