curl -X POST https://api.stophy.dev/v1/monitor/{id}/run \
-H "Authorization: Bearer $STOPHY_API_KEY"
{
"success": true,
"creditsUsed": 123,
"costUsd": 123,
"requestId": "<string>",
"id": "<string>",
"data": {
"id": "<string>",
"monitorId": "<string>",
"status": "queued",
"trigger": "scheduled",
"scheduledFor": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"estimatedCredits": 123,
"estimatedCostUsd": 123,
"reservedCredits": 123,
"actualCredits": 123,
"actualCostUsd": 123,
"billingStatus": "not_applicable",
"summary": {
"totalPages": 123,
"same": 123,
"changed": 123,
"new": 123,
"removed": 123,
"error": 123
},
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"next": "<string>"
}{
"success": false,
"error": "<string>",
"code": "apiKeyRequired",
"retryable": true,
"retryAfterSeconds": 123,
"requestId": "<string>",
"requiredCredits": 123,
"availableCredits": 123,
"requiredUsd": 123,
"availableUsd": 123,
"billingUrl": "<string>",
"signupUrl": "https://stophy.dev/signup",
"signup": "POST https://api.stophy.dev/v1/signup"
}{
"success": false,
"error": "<string>",
"code": "apiKeyRequired",
"retryable": true,
"retryAfterSeconds": 123,
"requestId": "<string>",
"requiredCredits": 123,
"availableCredits": 123,
"requiredUsd": 123,
"availableUsd": 123,
"billingUrl": "<string>",
"signupUrl": "https://stophy.dev/signup",
"signup": "POST https://api.stophy.dev/v1/signup"
}Monitors
Run a monitor
Check the monitor now, outside its schedule.
POST
/
v1
/
monitor
/
{id}
/
run
curl -X POST https://api.stophy.dev/v1/monitor/{id}/run \
-H "Authorization: Bearer $STOPHY_API_KEY"
{
"success": true,
"creditsUsed": 123,
"costUsd": 123,
"requestId": "<string>",
"id": "<string>",
"data": {
"id": "<string>",
"monitorId": "<string>",
"status": "queued",
"trigger": "scheduled",
"scheduledFor": "2023-11-07T05:31:56Z",
"startedAt": "2023-11-07T05:31:56Z",
"finishedAt": "2023-11-07T05:31:56Z",
"estimatedCredits": 123,
"estimatedCostUsd": 123,
"reservedCredits": 123,
"actualCredits": 123,
"actualCostUsd": 123,
"billingStatus": "not_applicable",
"summary": {
"totalPages": 123,
"same": 123,
"changed": 123,
"new": 123,
"removed": 123,
"error": 123
},
"error": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"next": "<string>"
}{
"success": false,
"error": "<string>",
"code": "apiKeyRequired",
"retryable": true,
"retryAfterSeconds": 123,
"requestId": "<string>",
"requiredCredits": 123,
"availableCredits": 123,
"requiredUsd": 123,
"availableUsd": 123,
"billingUrl": "<string>",
"signupUrl": "https://stophy.dev/signup",
"signup": "POST https://api.stophy.dev/v1/signup"
}{
"success": false,
"error": "<string>",
"code": "apiKeyRequired",
"retryable": true,
"retryAfterSeconds": 123,
"requestId": "<string>",
"requiredCredits": 123,
"availableCredits": 123,
"requiredUsd": 123,
"availableUsd": 123,
"billingUrl": "<string>",
"signupUrl": "https://stophy.dev/signup",
"signup": "POST https://api.stophy.dev/v1/signup"
}No example is recorded: a check reads every page of the monitor and costs what the pages cost.
curl -X POST https://api.stophy.dev/v1/monitor/{id}/run \
-H "Authorization: Bearer $STOPHY_API_KEY"