urlyze docs

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 }
  ]
}
fieldmeaning
indexzero-based position of the item in your request
urlthe URL as you submitted it
statuswhat POST /UrlCheck would have answered for this item: 200 (cached), 202 (queued), 400, 401, 429 or 500
analyzeIdset on 200 and 202: the id to poll, and the one the webhook names
scanStateas on the single endpoint; null when the item was rejected
fromCachetrue when the answer is an existing scan: no new scan ran
errorwhy the item was rejected; null when it was accepted
duplicateOfset 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

A cached item (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).

fieldtypepresentmeaning
progress.urlstringqueued, runningthe URL as submitted
progress.acceptedAtdate-time (UTC)queued, running when the scan was accepted
progress.visibilitystringqueued, running Public, Unlisted or Private
progress.startedAtdate-time (UTC) | nullrunning when scanning began; null while queued
progress.elapsedMsintegerqueued, running milliseconds since acceptedAt, measured by the server
progress.resultarray | nullrunningengine 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.enginesPendingstring[] | nullrunning engines (by repSource) that have not answered yet
progress.enginesSettlingstring[] | nullrunning 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.stageobject | nullrunningwhere the scan is now: name, startedAt (UTC), elapsedMs
progress.stagesDonestring[] | nullrunning stages already completed, each name once, in order
progress.screenshotStagesarray | nullrunning screenshots taken so far (stage, screenshotId, screenshotUrl, atMs), readable through GET /api/screenshots/{id} under the same access rules as the scan
progress.expectedDurationMsobject | nullqueued, runninghow 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.
partialbooleanalwaystrue exactly when progress is present

Notes

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:

fieldtypemeaning
submittedSha256string | nullSHA-256 of the bytes that were analysed
submittedFileNamestring | nullthe name those bytes were analysed under
submittedSizeBytesinteger | nulltheir 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.