API
Two small HTTP APIs: /api/monitor manages pattern watches, and /api/check looks up a domain or pattern in the filter lists. Everything is JSON.
/api/monitor: pattern watches
The same watches as the Watchlist, over HTTP. The base address is https://isblocked.fyi.
Create a watch
POST /api/monitor
| Field | Type | Notes |
|---|---|---|
domain_pattern | string, required | A pattern as described in Write a pattern. At most 200 characters. |
email | string | Where to send the alerts. |
webhook_url | string | Paid plans only. See below. |
label | string | A name for you. |
At least one of email and webhook_url is required. Because webhooks are not available on a free account, send an email.
curl -X POST https://isblocked.fyi/api/monitor \
-H "Content-Type: application/json" \
-d '{
"domain_pattern": "(^|\\.)example\\.com$",
"email": "you@company.com",
"label": "example.com and subdomains"
}'A 201 response carries the new watch and its key:
{
"id": 123,
"api_key": "…64 hex characters…",
"domain_pattern": "(^|\\.)example\\.com$",
"email": "you@company.com",
"webhook_url": null,
"created_at": "2026-11-12T18:30:00.000Z",
"note": "Save your api_key — it is shown only once and is needed to manage this subscription.",
"emailSent": true
}A confirmation email is sent to email. If that fails, the response still succeeds, with emailSent: false and an emailError.
List watches
GET /api/monitor
Signed in, it returns all your active watches. With an x-api-key header, it returns the watch that key belongs to, including one that was cancelled (see isActive).
curl https://isblocked.fyi/api/monitor -H "x-api-key: YOUR_KEY"{
"subscriptions": [
{
"id": 123,
"domainPattern": "(^|\\.)example\\.com$",
"label": "example.com and subdomains",
"email": "you@company.com",
"webhookUrl": null,
"createdAt": "2026-11-12T18:30:00.000Z",
"isActive": true
}
]
}Change a watch
PATCH /api/monitor, signed in only. An API key is not accepted here.
{ "id": 123, "label": "Main site", "email": "team@company.com" }id is required, together with at least one of label, email and webhook_url. Send null to clear a value. The pattern cannot be changed. The response is { "subscription": { … } }.
Cancel a watch
DELETE /api/monitor with the x-api-key header.
curl -X DELETE https://isblocked.fyi/api/monitor -H "x-api-key: YOUR_KEY"It answers { "ok": true, "cancelled": 1 }. The watch is switched off, like Remove in the dashboard.
Status codes
| Code | When |
|---|---|
| 201 | A watch was created. |
| 200 | A list, a change or a cancellation succeeded. |
| 400 | Invalid JSON or field, a missing pattern, a pattern that is not valid or is too complex, or neither email nor webhook_url given. The error text says which. |
| 401 | No session, or no x-api-key header where one is needed. |
| 403 | A new or changed webhook on an account that does not have webhooks. |
| 404 | No active watch for that key or id. |
An error body looks like { "error": "message" }.
Webhooks and plans
webhook_url is for paid plans, which are not on sale yet. A free account, and a request with no sign-in, gets 403 when it sends one. A webhook set earlier keeps working, and can be left as it is in a PATCH. The payload is described in Read an alert.
/api/check: look up a domain or pattern
Public, no key. It tells you which filter lists a host or pattern is on right now. A pattern lookup returns whole-domain blocks and path rules.
GET /api/check/example.comlooks up one domain.GET /api/check?q=/collect*looks up a path or pattern. A*is a wildcard, and a regex goes between slashes, for exampleq=/g\/collect/.
curl "https://isblocked.fyi/api/check/example.com"
curl "https://isblocked.fyi/api/check?q=/collect*"It is rate limited to 30 requests a minute per IP address. Beyond that you get 429 with X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers.
