Scanning
Submit one URL with POST /UrlCheck, or up to 50 in one call with
POST /UrlCheck/batch. Either way you get an analyzeId to poll, or a
webhook when the scan is done.
One URL
POST /UrlCheck answers 200 with the finished result when the URL
was scanned recently (a cache hit), or 202 with an analyzeId to poll
with GET /UrlCheck/{analyzeId}. The quickstart walks
through it.
The submit answer also carries "progress": null, "partial": false. A running
scan's progress is read by polling GET /UrlCheck/{analyzeId}; see
While the scan runs.
Many URLs: POST /UrlCheck/batch
For a pipeline that finds URLs in bulk (a mail gateway, a crawler, a ticket queue). The body
is an items array of 1 to 50 scan requests, each the same object
you would send to POST /UrlCheck:
curl -X POST https://api.urlyze.io/UrlCheck/batch \
-H "Content-Type: application/json" \
-H "X-Api-Key: YOUR_API_KEY" \
-d '{
"items": [
{ "url": "https://login-example.com/verify" },
{ "url": "https://example.org", "visibility": "Unlisted" },
{ "url": "https://login-example.com/verify" },
{ "url": "not a url" }
]
}'
The call needs authentication; anonymous batches are refused. The answer is
200 with one result per item, in input order:
{
"results": [
{ "index": 0, "url": "https://login-example.com/verify", "status": 202,
"analyzeId": "3f6c0f2e-…", "scanState": "queued", "fromCache": false,
"error": null, "duplicateOf": null },
{ "index": 1, "url": "https://example.org", "status": 200,
"analyzeId": "9b21d4a0-…", "scanState": "completed", "fromCache": true,
"error": null, "duplicateOf": null },
{ "index": 2, "url": "https://login-example.com/verify", "status": 202,
"analyzeId": "3f6c0f2e-…", "scanState": "queued", "fromCache": false,
"error": null, "duplicateOf": 0 },
{ "index": 3, "url": "not a url", "status": 400,
"analyzeId": null, "scanState": null, "fromCache": false,
"error": "…", "duplicateOf": null }
]
}
| field | meaning |
|---|---|
index | zero-based position of the item in your request |
url | the URL as you submitted it |
status | what POST /UrlCheck would have answered for
this item: 200 (cached), 202 (queued), 400,
401, 429 or 500 |
analyzeId | set on 200 and 202: the id
to poll, and the one the webhook names |
scanState | as on the single endpoint; null when the
item was rejected |
fromCache | true when the answer is an existing scan:
no new scan ran |
error | why the item was rejected; null when it was
accepted |
duplicateOf | set when the same URL appeared earlier in the batch:
that item's index. The URL is submitted once and the repeat carries the first
item's outcome. |
What a batch does not change
- Every item is handled exactly like
POST /UrlCheck. The same validation, the same cache, the same visibility rules. - Quota and the per-minute limit count each URL. A batch of 50 uses 50 scans
of quota (cache hits stay free) and 50 of your per-minute allowance. When the limit runs out
partway through, the remaining items answer
429while the earlier ones are already queued. Resubmit only the items that were refused. See Rate limits. - One item failing does not fail the batch. The call answers
200and each item carries its ownstatus. Check every item'sstatus, not only the HTTP status of the call.
fromCache: true) carries no result body. Fetch it with
GET /UrlCheck/{analyzeId}. It also sends no scan.completed webhook,
because no scan runs.
Knowing when a scan is done
Poll GET /UrlCheck/{analyzeId} every 3–5 seconds, or turn on the
scan.completed webhook and let Urlyze
call you when each scan your workspace submitted finishes. With a webhook, read the cached items
of a batch right away and wait for the event on the rest.
While the scan runs
While scanState is queued or running,
GET /UrlCheck/{analyzeId} carries a progress object with what is
already known about the scan, and partial is true.
progress is never the result: it has no verdict, and
result stays null until scanState is
completed. When the scan completes, progress is null,
partial is false, and result holds the full report — use
it, and discard anything you displayed from progress.
progress is returned only to callers who may read the finished scan: anyone for
Public scans, the link holder for Unlisted scans, the owning workspace for Private scans. API
keys need the ScanRead scope for Unlisted and Private scans, exactly as for the
finished result. Other callers receive the status without progress
(partial: false).
| field | type | present | meaning |
|---|---|---|---|
progress.url | string | queued, running | the URL as submitted |
progress.acceptedAt | date-time (UTC) | queued, running | when the scan was accepted |
progress.visibility | string | queued, running | Public, Unlisted or Private |
progress.startedAt | date-time (UTC) | null | running | when scanning began; null while queued |
progress.elapsedMs | integer | queued, running | milliseconds since acceptedAt, measured by the server |
progress.result | array | null | running | engine
results that are final: each entry is identical to the matching entry of
result.result in the finished report, in the order the engines answered |
progress.enginesPending | string[] | null | running | engines (by repSource) that have not answered yet |
progress.enginesSettling | string[] | null | running | engines that have answered but whose result may still be adjusted while the report is
assembled (today: browser analysis Urlyze.HeadlessScanner and content
inspection Content Inspection). Count them as answered; read their results from
the finished report. |
progress.stage | object | null | running | where the
scan is now: name, startedAt (UTC), elapsedMs |
progress.stagesDone | string[] | null | running | stages already completed, each name once, in order |
progress.screenshotStages | array | null | running | screenshots taken so far (stage, screenshotId,
screenshotUrl, atMs), readable through
GET /api/screenshots/{id} under the same access rules as the scan |
progress.expectedDurationMs | object | null | queued, running | how long scans usually take from acceptance to completion over the last 24
hours: p50, p90 (ms) and samples.
null when too few scans completed in that window. A guide, not a
countdown. |
partial | boolean | always | true
exactly when progress is present |
Notes
- Counting engines. Answered =
progress.result.length + progress.enginesSettling.length; still owed =progress.enginesPending.length. The finished report can contain entries no list named (results computed from the finished scan, such as related-infrastructure pivots), so treat the total as a lower bound. - Engine answers are not the verdict. An entry's
sub_verdictis that one engine's answer. ACleanentry inprogress.resultdoes not mean the scan is clean or the URL is safe: onlyresult.verdicton the finished report says that. - Stage names are an open set (for example
navigate,stage-capture-landing,settle,human-presence, andfinalizeonce every engine has answered and the report is being written). New names can appear at any time; do not fail on an unknown one. A stage name can appear again after it is instagesDone(the scanner may retry). - Screenshots. If the scanner discards a render (for example a retry from
another location produced the better one), that render's screenshots are deleted, and
GET /api/screenshots/{id}answers404. The finished report lists the screenshots that remain. - Freshness.
progressis updated up to twice a second, so polling faster than every 1–2 seconds shows nothing new. The usual 3–5 second interval still applies.
Example
A production poll of https://example.com/, 4.8 s after acceptance. Engine
payloads are shortened to "…"; they are the same objects the finished report
carries.
{
"analyzeId": "d1bf8557-b164-4f2f-9956-ffaddfdd9a4d",
"scanState": "running",
"result": null,
"error": null,
"fromCache": false,
"cachedUrlMismatch": false,
"joinedInFlight": false,
"progress": {
"url": "https://example.com/",
"acceptedAt": "2026-10-29T21:44:05.901Z",
"visibility": "Public",
"startedAt": "2026-10-29T21:44:08.601Z",
"elapsedMs": 4810,
"result": [
{ "url": "https://example.com/", "sub_verdict": "Unknown", "repSource": "Urlyze.TlsFingerprint", "analyzeTime": 0, "tlsFingerprintResponse": "…" },
{ "url": "https://example.com/", "sub_verdict": "Unknown", "repSource": "Urlyze.DomainIntel", "analyzeTime": 77, "domainIntelResponse": "…" },
{ "url": "example.com", "sub_verdict": "Clean", "repSource": "Threat Intelligence", "analyzeTime": 119, "socradarRapidResponse": "…" },
{ "url": "https://example.com/", "sub_verdict": "Clean", "repSource": "Urlyze.DomainNetMeta", "analyzeTime": 131, "domainNetMetaResult": "…" }
],
"enginesPending": ["Urlyze.HeadlessScanner"],
"enginesSettling": ["Content Inspection"],
"stage": { "name": "human-presence", "startedAt": "2026-10-29T21:44:09.953Z", "elapsedMs": 758 },
"stagesDone": ["navigate", "stage-capture-landing", "anti-bot-challenge", "delayed-navigation", "interaction-observe", "settle"],
"screenshotStages": [
{ "stage": "landing", "screenshotId": "6ae3be29fe58453df0f09d02", "screenshotUrl": "/api/screenshots/6ae3be29fe58453df0f09d02", "atMs": 588 }
],
"expectedDurationMs": { "p50": 30056, "p90": 70521, "samples": 55 }
},
"partial": true
}
The same scan while queued (0.1 s): progress carries url,
acceptedAt, visibility, elapsedMs and
expectedDurationMs; every list, stage and startedAt are
null. At 7.9 s it answered scanState: "completed",
progress: null, partial: false, and result with seven
engine entries and the verdict.
Files a scan analysed
When a scan analyses a file — one the page delivered (an auto-download, an installer), the
scanned URL itself when it is a direct download, or the page's own HTML — a content inspection
entry of result.result (repSource Content Inspection)
carries the analysis in urlyzeResponse. A scan that analysed several files has one
such entry per file. Three fields describe the bytes that were analysed:
| field | type | meaning |
|---|---|---|
submittedSha256 | string | null | SHA-256 of the bytes that were analysed |
submittedFileName | string | null | the name those bytes were analysed under |
submittedSizeBytes | integer | null | their size in bytes |
hash and fileName are the analyzer's answer, and they can name a file
inside the submission: an archive with a single entry is answered as that entry.
When hash differs from submittedSha256, the file the scan captured is
the submission (submittedFileName, submittedSha256) and
fileName / hash describe the file inside it. verdict is the
file's verdict, which can differ from the scan's result.verdict.
The fields are null on reports written before 2026-11-11.
Downloading the sample
GET /UrlCheck/{analyzeId}/delivered-file/{hash} returns a captured file as a ZIP
protected with the password infected, for files judged Suspicious or Malicious
(any other file answers 404 with sample-unavailable). It accepts either
hash or submittedSha256. For an archive answered as its one entry, the
sample that was kept is the archive, so when the two differ, download with
submittedSha256.