Update a monitor
Change, pause (status: paused) or resume a monitor.
/crawl/v1/monitors/{monitor_id}curl --request PATCH \
--url 'https://factget.dev/crawl/v1/monitors/{monitor_id}' \
--header "Authorization: Bearer $FACTGET_CRAWL_KEY" \
--header 'Content-Type: application/json' \
--data '{
"name": "Updated company watch"
}'Replace IDs and sample values with your own. Examples are not executed in your browser.
Parameters
Path parameters
monitor_idstringrequiredRequest body
originstring | nullnamestring | nullurlsstring[] | nullThe public source URLs for this job.
minItems: 1maxItems: 1000scheduleobject | nullWhen the monitor should run. Set a cron expression and an IANA timezone.
Show nested properties
cronstringrequiredCron schedule, interpreted in the supplied timezone. Example: 0 9 * * * for daily at 09:00.
minLength: 1maxLength: 120timezonestring"UTC"minLength: 1maxLength: 64windowMinutesinteger15watchesobject[] | nullThe page, elements, list items, or intent to watch.
minItems: 1maxItems: 20Show item properties
idstring | nullnamestring | nullmodestring"page", "element"selectorstring | nullselectorTypestring | null"css", "xpath"conditionsobject[]Show item properties
typestringrequiredDeterministic conditions, checked before any LLM.
Allowed:"change_score_at_least", "text_contains", "text_not_contains", "number_changed", "number_rises", "number_falls", "number_change_pct_at_least", "number_crosses", "element_missing", "element_appeared", "status_changed"valuenumber | nulltextstring | nullregexbooleanfalsematchstring"any"Allowed: "any", "all"intentstring | nullgranularitiesstring[] | nullscrapeOptionsobject | nullShow nested properties
onlyMainContentbooleanReturn the main page content, excluding common navigation and page furniture.
Default:trueincludeTagsstring[] | nullInclude the matching HTML elements in the result.
maxItems: 50excludeTagsstring[] | nullExclude the matching HTML elements from the result.
maxItems: 50waitForintegerAdditional time to wait for the page, in milliseconds.
Default:0minimum: 0maximum: 30000jsCodestring | nullstepsobject[] | nullShow item properties
typestring"click"selectorstring | nullxpathstring | nulllabelstring | nullalertsobject | nullShow nested properties
emailbooleantruewebhookobject | nullShow nested properties
urlstringrequiredThe public URL to read.
headersobjectmetadataobjecteventsstring[]deliverystring"instant", "hourly", "daily"noiseobject | nullShow nested properties
patternsstring[]selectorsstring[]statusstring | null"active", "paused"Responses
200Successful Response
The published schema does not define individual response fields for this endpoint. Inspect the returned JSON in your integration.
422Validation Error
detailobject[]Show item properties
locstring | integer[]requiredmsgstringrequiredtypestringrequiredinputobjectctxobjectThe API schema lists the responses above. Long-running operations can also return 202; see async jobs. For application errors, see errors & retries.