Zapier

Connect MrScraper to Zapier to fetch web pages, search the web, and check account usage from no-code Zaps.

Zapier connects apps and services through automated workflows called Zaps. The MrScraper app for Zapier lets a Zap fetch a web page, search the web, or check your account usage, and then pass the results to any other app in Zapier.

Available Actions

The MrScraper app provides three actions. It has no triggers, so start a Zap with another app's trigger, such as Schedule by Zapier, a new spreadsheet row, or a form submission.

ActionDescription
Web FetchFetches a web page as HTML, Markdown, a screenshot, or a combination, using the MrScraper Scraper API.
Web SearchSearches the web and returns result URLs, titles, descriptions, and sources.
Get Account DetailsGets subscription status, token usage, quota, and rate-limit details for your MrScraper account.

Prerequisites

Before you start, make sure you have:

Integration Steps

Add the MrScraper Action

  1. Open the Zap editor and set up a trigger for your Zap.
  2. Click + to add an action step, then search for and select MrScraper.
  3. Choose an Action event: Web Fetch, Web Search, or Get Account Details.

Connect Your MrScraper Account

  1. Under Account, click Sign in to add a new connection.
  2. Complete the connection with your MrScraper account credentials, such as your MrScraper API token.
  3. Save the connection. You can reuse it in any Zap.

Configure the Action

Fill in the action fields described below. You can map values from earlier steps, such as a URL from a spreadsheet row, into any field.

Test and Publish

  1. Click Test step to run the action once and inspect the output.
  2. Map the output fields into the following steps, then publish the Zap.

Action Reference

Web Fetch

Retrieves a known page through the Scraper API. Only url is required. Leave the other fields empty to use the API defaults.

FieldRequiredDescription
urlYesAbsolute HTTP or HTTPS URL of the page to fetch.
htmlNoReturns the page's HTML.
markdownNoReturns the page as Markdown.
screenshotNoCaptures a screenshot as a base64-encoded JPEG. Forces browser rendering.
timeoutNoPage timeout in seconds, from 1 to 300.
geoCodeNoTwo-letter country code for proxy routing, such as us. See Country Codes.
proxyCountryNoCompatibility country option.
browserRenderingNotrue forces browser rendering and false disables it. Leave empty to let the service decide.
superNoRoutes the request through a real device. Independent of browser rendering.
useProxyNoAllows the service's configured proxy. Set to false to disable it.
proxyNoCustom proxy as username:password@host:port.
waitForSelectorNoCSS selector to wait for before returning the page. Requires browser rendering.
waitUntilNoPage lifecycle event to wait for, such as domcontentloaded.
warmStartNoVisits the site's home page before the target URL.
blockResourcesNoBlocks images, CSS, and fonts. Supported only by compatible proxies.
bypassProxyNoLoads static assets such as images, fonts and stylesheets outside the residential proxy to save bandwidth.
cookieJarNoCookie configuration, such as domain=example.org&country=us&max_used=100&max_age=50m.
headersNoRequest headers to send to the target page, as a JSON object.
maxRetriesNoMaximum number of retries. 0 disables retries.
tokenCapNoRunning token total that stops further retries. The first attempt always runs.
discardTokenSecretNoValue sent in the optional x-discard-token-secret header.

Choosing a loading path

Start with browserRendering and super left at their defaults, and change one at a time if the response is not usable. Browser rendering is not always better: some pages load correctly only without it. See Independent Loading Paths.

Searches the web when you don't have a target URL yet.

FieldRequiredDescription
queryYesSearch text.
countryNoTwo-letter country code for the results, such as gb.
numResultsNoNumber of results, from 10 to 100. The search may return fewer.

Each result includes its rank, title, URL, description, and source.

Get Account Details

Takes no input. Returns your subscription status, token usage, token limit, and rate-limit details, which you can use to monitor usage or stop a Zap before you run out of tokens.

Example Workflows

Scheduled Page Fetch to Google Sheets

Fetch a page on a schedule and store the content in Google Sheets, for example to track prices or monitor a listing.

Set Up the Schedule

  1. Add a Schedule by Zapier trigger.
  2. Choose the interval, such as every hour, day, or week.

Fetch the Page

  1. Add a MrScraper action and select Web Fetch.
  2. Enter the page url, and set markdown to true if you want Markdown output.

Save to Google Sheets

  1. Add a Google Sheets action and select Create Spreadsheet Row.
  2. Map the fetched content and the run time into the sheet's columns.

Search and Fetch the Top Results

Search for a topic and fetch each result page.

Search the Web

  1. Add a trigger, such as a new Google Sheets row that contains a search term.
  2. Add a MrScraper action, select Web Search, and map the search term into query.

Loop Through the Results

  1. Add a Looping by Zapier action and select Create Loop From Line Items.
  2. Map the result URLs from the Web Search step into the loop values.

Fetch Each Result

  1. Inside the loop, add a MrScraper action and select Web Fetch.
  2. Map the current loop URL into url.

Save the Results

  1. Add a Google Sheets action and select Create Spreadsheet Row.
  2. Map the page content and URL into the sheet's columns.

Token Usage Alert

Get notified when your account usage runs high.

Check the Account Daily

  1. Add a Schedule by Zapier trigger that runs every day.
  2. Add a MrScraper action and select Get Account Details.

Filter and Notify

  1. Add a Filter by Zapier step that continues only when token usage passes your threshold.
  2. Add a Slack or Email by Zapier action to send the alert.

On this page