ByteChef LogoByteChef

ZenRows

ZenRows is a web scraping service with an advanced toolkit and APIs that simplify data extraction from bot-protected websites.

Categories: Analytics

Type: zenrows/v1


Connections

Version: 1

api_key

Properties

NameLabelTypeDescriptionRequired
valueAPI KeySTRINGAPI key can be found in Settings -> API Key.true

Connection Setup

Find API Key

  1. Navigate to your dashboard.
  2. Click on Settings.
  3. Here you can see your API key.

Actions

Scrape URL

Name: scrapeUrl

Extracts HTML data from a given URL.

Properties

NameLabelTypeDescriptionRequired
urlURLSTRINGURL of the site that will be scraped.true
original_statusOriginal StatusBOOLEAN
Options true, false
Return the original HTTP status code from the target page. Useful for debugging in case of errors.false
js_renderJS RenderBOOLEAN
Options true, false
Enable JavaScript rendering with a headless browser. Essential for modern web apps, SPAs, and sites with dynamic content.false

Example JSON Structure

{
  "label" : "Scrape URL",
  "name" : "scrapeUrl",
  "parameters" : {
    "url" : "",
    "original_status" : false,
    "js_render" : false
  },
  "type" : "zenrows/v1/scrapeUrl"
}

Output

Type: STRING

Scrape URL Autoparse

Name: scrapeUrlAutoparse

Get a JSON with the page's data. For most popular websites only.

Properties

NameLabelTypeDescriptionRequired
urlURLSTRINGURL of the site that will be scraped.true
original_statusOriginal StatusBOOLEAN
Options true, false
Return the original HTTP status code from the target page. Useful for debugging in case of errors.false
js_renderJS RenderBOOLEAN
Options true, false
Enable JavaScript rendering with a headless browser. Essential for modern web apps, SPAs, and sites with dynamic content.false

Example JSON Structure

{
  "label" : "Scrape URL Autoparse",
  "name" : "scrapeUrlAutoparse",
  "parameters" : {
    "url" : "",
    "original_status" : false,
    "js_render" : false
  },
  "type" : "zenrows/v1/scrapeUrlAutoparse"
}

Output

Type: STRING

Scrape URL With CSS Selectors

Name: scrapeUrlWithCssSelectors

Extracts specific data from a given URL.

Properties

NameLabelTypeDescriptionRequired
urlURLSTRINGURL of the site that will be scraped.true
css_extractorCSS ExtractorARRAY
Items [{STRING(key), STRING(value)}]
Key-value pairs that will be scraped, where key is arbitrary parameter name and value is CSS element that you want to scrape.true

Example JSON Structure

{
  "label" : "Scrape URL With CSS Selectors",
  "name" : "scrapeUrlWithCssSelectors",
  "parameters" : {
    "url" : "",
    "css_extractor" : [ {
      "key" : "",
      "value" : ""
    } ]
  },
  "type" : "zenrows/v1/scrapeUrlWithCssSelectors"
}

Output

Type: STRING

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.

How is this guide?

Last updated on

On this page