Try the RankNibbler SEO API

Custom status page check Beta

POST /api/v1/monitors

Type httpcustom: fetch a status document your own endpoint returns, read one field out of it, and check what it says. Use it when "the page loads" isn't the question, but "the queue is healthy" is.

There is no separate endpoint for this: it is the ordinary create a monitor call with type set to "httpcustom". The same settings apply when you update a monitor with PATCH /api/v1/monitors/{id}.

Every type shares the same interval, retries, alerting, maintenance, results and reports. Only the settings below differ. See Check types for how the nine types compare.

Up or down

Reading the field

Settings that apply

SettingNotes
urlThe endpoint returning the status document.
customField requiredThe field to read. Up to 200 characters.
customExpectedThe value it must hold. Up to 200 characters. Empty means the field only has to exist.
Every web settingTimeout, headers, authentication, certificate rules, locations and text checks all still apply.

Create one

What the endpoint returns
  1. {
  2. "status": { "state": "ok", "queueDepth": 12 },
  3. "version": "3.4.1"
  4. }

That monitor goes down as soon as status.state is anything other than ok, even though the page still returns 200.

Related