Skip to main content

Monitoring API

The v2 Monitoring API manages the same page monitors and watchlists you see under Hunting → Monitoring on urlquery.net:

  • Page monitors rescan a URL on a schedule and compare each scan with a baseline report: a suspicious page, or one of your own to catch unwanted changes such as an injected script.
  • Watchlists are named sets of indicators, such as one threat's. Every new report that observes any of them is recorded.

Use it to keep watchlists in sync with a feed, a threat intelligence platform or a repository, and to pull what they matched into your own tools. See Monitoring for how matching and page comparison work.

All routes are on https://api.urlquery.net and require x-apikey. You see and change your own page monitors and watchlists, and your team's. When you are in a team, new ones are your team's.

MethodPathQuota classResult
GET/public/v2/monitoring/watchlistsmonitoring_readYour watchlists.
POST/public/v2/monitoring/watchlistsmonitoring_writeCreates a watchlist with indicators.
GET/public/v2/monitoring/watchlists/{watchlist_id}monitoring_readOne watchlist.
PATCH/public/v2/monitoring/watchlists/{watchlist_id}monitoring_writeRenames, pauses or resumes a watchlist.
DELETE/public/v2/monitoring/watchlists/{watchlist_id}monitoring_writeDeletes a watchlist, its indicators and its list of reports.
GET/public/v2/monitoring/watchlists/{watchlist_id}/indicatorsmonitoring_readIts indicators.
POST/public/v2/monitoring/watchlists/{watchlist_id}/indicatorsmonitoring_writeAdds indicators.
DELETE/public/v2/monitoring/watchlists/{watchlist_id}/indicators?kind=&value=monitoring_writeRemoves one indicator.
GET/public/v2/monitoring/watchlists/{watchlist_id}/reportsmonitoring_readThe reports it matched.
GET/public/v2/monitoring/watchlists/{watchlist_id}/statsmonitoring_readReports per day and top indicators.
GET/public/v2/monitoring/pagesmonitoring_readYour page monitors.
POST/public/v2/monitoring/pagesmonitoring_writeCreates a page monitor from a report.
GET/public/v2/monitoring/pages/{monitor_id}monitoring_readOne page monitor.
PATCH/public/v2/monitoring/pages/{monitor_id}monitoring_writeChanges, pauses or resumes a page monitor.
DELETE/public/v2/monitoring/pages/{monitor_id}monitoring_writeDeletes a page monitor and its runs.
GET/public/v2/monitoring/pages/{monitor_id}/runsmonitoring_readIts latest scans and their differences.
POST/public/v2/monitoring/pages/{monitor_id}/baselinemonitoring_writeMakes another report the baseline.

Every call also consumes the account's overall v2 quota. monitoring_write is 10 a minute, 200 an hour and 1,000 a day for every account. The number of page monitors, watchlists and indicators you can have is limited; past a limit, creating or adding returns 409 LIMIT_REACHED.

Watchlists​

Create a watchlist​

Send a name and the indicators, one value per entry:

curl --fail-with-body --request POST \
--header "x-apikey: ${URLQUERY_API_KEY}" \
--header 'content-type: application/json' \
--data '{
"name": "Kit X",
"indicators": [
"evil.example",
"cdn.kit-x.example",
"203.0.113.7",
"hxxps://login[.]example.org/verify",
"*/wp-content/plugins/kit-x/*",
"9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08"
]
}' \
https://api.urlquery.net/public/v2/monitoring/watchlists

urlquery recognises each value's kind:

KindExampleMatches
domainevil.exampleThe registered domain and every subdomain.
fqdncdn.kit-x.exampleThat host name only.
ip203.0.113.7A host the page contacted at that address. IP ranges are not accepted.
urllogin.example.org/verifyThat URL, submitted, final, or loaded by the page.
url_pattern*/wp-content/plugins/kit-x/*Any URL the pattern fits, case-insensitively. * matches any text; a pattern needs a path and at least 6 characters besides *.
sha2569f86…0a08Content with that hash: a page, a script, or a response body. Other hash types are not accepted.

Defanged values (hxxp, [.], [:]) are refanged. Values are stored normalised: lowercased, and a URL without its scheme. A watchlist may start empty.

The response holds the watchlist and what happened to each value:

{
"success": true,
"data": {
"watchlist": {"id": "6f1c2a52-…", "name": "Kit X", "owner": "team", "enabled": true, "indicators": 5, "…": "…"},
"added": [{"kind": "domain", "value": "evil.example"}, "…"],
"skipped": [{"input": "198.51.100.0/24", "code": "invalid", "reason": "IP ranges cannot be monitored; add the addresses"}]
}
}

A value in skipped was not added, with code:

  • invalid: it is not an indicator; reason says why.
  • exists: the watchlist already has it.
  • limit: your limit of indicators, or of URL patterns, was reached. The values that fit were added.

Only reports stored from now on are matched; existing reports are not searched.

Add and remove indicators​

POST .../watchlists/{watchlist_id}/indicators adds up to 500 values at a time, with the same added and skipped response:

curl --fail-with-body --request POST \
--header "x-apikey: ${URLQUERY_API_KEY}" \
--header 'content-type: application/json' \
--data '{"indicators": ["new-gate.example", "*/gate.php"]}' \
"https://api.urlquery.net/public/v2/monitoring/watchlists/${WATCHLIST_ID}/indicators"

To remove one, send its kind and value as GET .../indicators lists them:

curl --fail-with-body --request DELETE --get \
--header "x-apikey: ${URLQUERY_API_KEY}" \
--data-urlencode 'kind=domain' --data-urlencode 'value=evil.example' \
"https://api.urlquery.net/public/v2/monitoring/watchlists/${WATCHLIST_ID}/indicators"

Removing an indicator keeps the reports it already matched.

Read what matched​

GET .../watchlists/{watchlist_id}/reports lists the matched reports you can open, newest first. Each lists the watchlist's indicators it matched and where the report observed them (seen_as): host, ip, sha256, url (the submitted URL), final_url, or request (a URL the page loaded).

{
"items": [{
"report_id": "0b9f…",
"url": "evil.example/login",
"fqdn": "evil.example",
"ip": "203.0.113.7",
"access": "public",
"observed_at": "2026-11-27T10:12:44Z",
"matches": [
{"kind": "domain", "value": "evil.example", "seen_as": ["host", "url"]},
{"kind": "url_pattern", "value": "*/wp-content/plugins/kit-x/*", "seen_as": ["request"]}
]
}],
"hidden": 3,
"page": {"limit": 25, "next_cursor": "…", "has_more": true}
}

Page with limit (1–100, default 25) and cursor (page.next_cursor). On the first page, hidden counts the matched reports you cannot open, such as another account's restricted reports; another account's private reports are never recorded. Matches are kept for two years.

To collect new matches, poll the first page and stop at the first report_id you have already seen.

GET .../watchlists/{watchlist_id}/stats?days=30 sums up the last 7, 30 or 90 days: reports per UTC day, the reports, the distinct sites, how many indicators matched, and the 20 indicators that matched most.

Pause, rename and delete​

PATCH with {"enabled": false} pauses a watchlist, which then records nothing until {"enabled": true}; {"name": "…"} renames it. DELETE removes the watchlist, its indicators and its list of reports; the reports themselves are kept.

Page monitors​

Create a page monitor​

A page monitor starts from a report you can read, its baseline. It takes the report's URL and scan settings (user agent, device, network exit, referer), so later scans differ only when the page does:

curl --fail-with-body --request POST \
--header "x-apikey: ${URLQUERY_API_KEY}" \
--header 'content-type: application/json' \
--data '{"report_id": "'"${REPORT_ID}"'", "interval": "daily"}' \
https://api.urlquery.net/public/v2/monitoring/pages

The first scan runs within a minute. Every field but report_id is optional:

FieldDefaultMeaning
nameThe report's title1–100 characters.
intervaldailyhourly, 6h, daily or weekly. The shortest may not be available to your account.
accessrestrictedThe access of the scans' reports.
checksredirect, new_hosts, new_detectionsPage-level differences that count: also http_status and certificate.
newscript, frameResource types whose new URLs count: also style, image, font, media.
changed{"page": "minor", "script": "minor"}Resource types whose changed content counts, and by how much: exact, minor, moderate or major.
scopesiteCompare the site's resources only, or all.
ignorenoneResource URLs never compared: http or https URLs that name a host, such as https://www.google-analytics.com/*; * matches any text.
onlynoneWhen set, the only resource URLs compared: exact http or https URLs, without *.

Follow the scans​

GET .../pages/{monitor_id}/runs returns the latest scans, newest first (limit 1–100, default 25). A run that differs from the baseline lists changes, such as new_hosts or changed_resources, with the details in resources, new_hosts, new_detections, final_url and http_status. Every scan is compared with the baseline, never with the scan before, so a lasting change shows on every run until you set a new baseline:

curl --fail-with-body --request POST \
--header "x-apikey: ${URLQUERY_API_KEY}" \
--header 'content-type: application/json' \
--data '{"report_id": "'"${RUN_REPORT_ID}"'"}' \
"https://api.urlquery.net/public/v2/monitoring/pages/${MONITOR_ID}/baseline"

Change, pause and delete​

PATCH .../pages/{monitor_id} changes only the fields you send; a list or changed replaces the monitor's, [] clears it, and null or leaving it out keeps it. {"enabled": false} pauses it, and {"enabled": true} resumes it, with you as the account its scans run as. urlquery pauses a monitor by itself when the account its scans run as is disabled or leaves the team, and says so in paused_reason. DELETE removes the monitor and its runs; the reports are kept.

Alerts​

Matches and page changes are also sent as notifications: in the browser on urlquery.net and, where they are enabled for your account, to your email, webhook and chat channels.