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

    Function threads

    • Alpha

      Scrapes media URLs from Threads posts

      Parameters

      • url: string

        The Threads post URL to scrape

      • options: ThreadsOptions = {}

        Optional configuration for the request

      Returns Promise<NBScraperResponse<ThreadsMediaData>>

      Promise resolving to media URLs from the post

      import { threads } from 'nb-scraper';

      const result = await threads('https://www.threads.net/@username/post/123456789');
      if (result.status) {
      console.log('Images:', result.data.image_urls);
      console.log('Videos:', result.data.video_urls);
      }

      Will not throw errors, returns error response instead

      Rian