ScrapegraphAI icon

ScrapegraphAI

Turn any webpage into usable data with the ScrapeGraphAI v2 API — scrape, extract, search, crawl, monitor, history, credits.

Actions19

Monitor → Update

AI-generated

Overview

This node updates an existing monitor in the ScrapegraphAI system. It allows users to modify specific fields of a monitor such as the cron interval, webhook URL, output formats, and fetch configuration. This is useful for automating and customizing how and when a monitor triggers and what data it sends.

Use Case Examples

  1. Updating the schedule of a monitor to run every 6 hours using a cron expression.
  2. Changing the webhook URL to a new endpoint to receive monitor payloads.
  3. Modifying the output formats to change how the scraped data is formatted.
  4. Adjusting fetch options to customize how the monitor fetches data from the target webpage.

Properties

Name Meaning
Monitor The specific monitor to update, identified either by selecting from a list or by providing its UUID.
Update Fields The fields to update on the monitor. Only the fields included here will be modified.

Output

JSON

  • id - The unique identifier of the updated monitor.
  • interval - The updated cron interval expression.
  • webhookUrl - The updated webhook URL.
  • formats - The updated array of output formats.
  • fetchConfig - The updated fetch configuration options.

Dependencies

  • Requires an API key credential for ScrapegraphAI to authenticate requests.

Troubleshooting

  • If the monitor ID is not a valid UUID, the node will throw a validation error. Ensure the ID matches the UUID format.
  • If required fields are missing or invalid in the updateFields collection, the update may fail or be ignored.
  • Network or authentication errors may occur if the API key credential is invalid or the ScrapegraphAI service is unreachable.

Discussion