Scraper API

Learn how to run MrScraper’s AI-powered scraper to extract data by using API.

MrScraper lets you run any scraper you’ve created directly through an API endpoint. This is useful when you want to automate scraping, integrate it into your application, or test requests in tools like Postman.

How to Run a Scraper Through the API

  1. Open your dashboard and select a scraper you’ve already created. If you don’t have one yet, create it first.
  2. In the scraper window, click Settings.
  3. Select AI Scraper API Access and slide to activate it.

    Note

    This turns off the AI chat for this scraper and enables API mode.
  4. After activation, copy the example API request shown on the page.
  5. Paste the request into Postman (or another API tool).

    Note

    You can replace the URL with any URL you want to scrape.
    Hello
  6. You can also run the scraper directly from Rerun an AI Scraper endpoint.

Tip

Ensure to include:

  • x-api-token: Your MrScraper's API token.
  • scraperId: The ID of the scraper you activated
  • url: The webpage you want to scrape