NB Scraper Docs - v1.3.0
    Preparing search index...

    Function savegram

    • 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.

      Parameters

      • url: string

        The Instagram post URL (e.g., photo, video, reel, IGTV).

      Returns Promise<NBScraperResponse<SavegramResult>>

      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);
      }
      })();

      Puruu Puruu