Get a monitor
One monitor, with its schedule and health: `current_interval_seconds`, `next_check_at`, `consecutive_failures`, `last_error`, and `enabled` with `disabled_reason` when it was switched off.
Requires scope: monitors
One monitor, with its schedule and health: current_interval_seconds, next_check_at,
consecutive_failures, last_error, and enabled with disabled_reason when it was switched off.
Scope monitors (or read).
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Path Parameters
The monitor id returned by POST /v1/monitors. An id of another organization answers 404.
1 <= length <= 64Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/monitors/string"{ "id": "0190f5c4-2b7a-7e10-8d3f-6a1c9e4b2d70", "name": "string", "url": "http://example.com", "selector": "string", "js_render": true, "interval_seconds": 60, "current_interval_seconds": 0, "confirm_checks": 1, "webhook_endpoint_id": "string", "enabled": true, "disabled_reason": "string", "last_error": "string", "last_checked_at": "2019-08-24T14:15:22Z", "last_changed_at": "2019-08-24T14:15:22Z", "next_check_at": "2019-08-24T14:15:22Z", "consecutive_failures": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "scope": "page", "max_pages": 1, "include_paths": [ "string" ], "exclude_paths": [ "string" ], "max_credits_per_run": 1, "pages_tracked": 0, "last_run": { "checked": 0, "skipped": 0, "changed": 0, "added": 0, "removed": 0, "credits": 0, "truncated": true }}