Custom Connector

Zenscrape Connector

Global

The Zenscrape Connector facilitates seamless integration with the Zenscrape API, providing web-scraping capabilities for rendering web pages and checking API request limits. It acts as a proxy supporting actions for checking remaining requests and scraping web content with customizable parameters.

Type
Virtual machines, Single VM, BYOL
Runs on
Google Compute Engine
Last update
24 Oct 2024
Category
Integration
Overview

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the Zenscrape Connector.

  • getStatus. Retrieves the number of remaining API requests for the provided API key.
  • getScrape. Retrieves rendered web page content for a specified URL with customizable scraping options (GET).
  • postScrape. Sends a POST request to scrape a specified URL with form data (POST).
Documentation

Detailed Integration Documentation

Status Retrieval

ActiongetStatus
PurposeRetrieves the number of remaining API requests available for the provided API key. The primary entry point for monitoring API usage.
ParametersRequired:
apiKey – your API key (register at app.zenscrape.com). Optional:
None.
ConfigurationConfigure the base URL via CONNECTOR_ENV_ZENSCRAPE_BASE_URL (default https://app.zenscrape.com).
OutputSuccessful: JSON with result (success) and remaining_requests (integer). Failure: error details (invalid-api-key).
Workflow exampleExecute getStatus with apiKey and process the response to monitor remaining API requests for usage tracking.

Web Content Scraping (GET)

ActiongetScrape
PurposeRetrieves rendered web page content for a specified URL, with options for premium proxies, location, rendering, and scrolling.
ParametersRequired:
apiKey, url. Optional:
premium (boolean), location (e.g. US), render (boolean), scroll_to_bottom (boolean).
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with result, args, data, form, headers, method (GET), origin, resolved url, plus response headers including X-Zenscrape-RateLimit-Remaining. Failure: error details (invalid-url or invalid-api-key).
Workflow exampleExecute getScrape with apiKey, url, and optional parameters like premium=true or render=true, then extract scraped content for analysis.

Web Content Scraping (POST)

ActionpostScrape
PurposeSends a POST request to scrape a specified URL with form data, allowing dynamic web interactions.
ParametersRequired:
apiKey, url. Optional:
Form data – key-value pairs (e.g. key=value, key_2=value_2).
ConfigurationConfigure the connector with the correct base URL.
OutputSuccessful: JSON with result, args, data, form (submitted data), headers, method (POST), origin, resolved url. Failure: error details (invalid-url or invalid-api-key).
Workflow exampleExecute postScrape with apiKey, url, and form data, then use the result for dynamic web interactions or data extraction.

Example Workflow: Web Scraping and API Usage Monitoring

Check API usageUse getStatus with apiKey to fetch remaining API requests and ensure sufficient quota for scraping tasks.
Scrape content (GET)Execute getScrape with apiKey, url, and optional parameters (premium, location, render, scroll_to_bottom), then extract content.
Scrape with form data (POST)Execute postScrape with apiKey, url, and form data for dynamic web interactions or form validation.
Integrate scraped dataCombine GET and POST results for comprehensive analysis and integrate into dashboards or reporting tools.
Support

For technical support, contact custom-connectors-support@isolutions.sa.

free consultation

Schedule a Free Consultation With Our Specialists

Book a free demo
request

Begin Your Adventure With Experienced Professionals

Send request
help desk

Do You Have Questions or Want More Information? Call Now.

Contact support