Skip to main content
GET
/
v1
/
query
/
{query_id}
/
scans
Query Scans
curl --request GET \
  --url https://api.urldna.io/v1/query/{query_id}/scans \
  --header 'authorization: <authorization>'
[
  {
    "id": "<string>",
    "submitted_url": "<string>",
    "device": "DESKTOP",
    "user_agent": "<string>",
    "scanned_from": "<string>",
    "origin": "USER",
    "width": 123,
    "height": 123,
    "private_scan": true,
    "status": "PENDING",
    "submitted_date": "2023-11-07T05:31:56Z",
    "domain": "<string>",
    "target_url": "<string>",
    "protocol": "<string>",
    "http_referer": "<string>",
    "nsfw": false,
    "submitter_tags": [
      "<string>"
    ],
    "error_code": "<string>"
  }
]

Headers

authorization
string
required

Path Parameters

query_id
string
required

Query Parameters

max_results
integer
default:32

Maximun number of scans retreived per page

Required range: 1 <= x <= 32
page
integer
default:1

Page number for pagination (1-indexed). Pages beyond the first are accessible to PREMIUM users only.

Required range: x >= 1

Response

Successful Response

id
string
required

Unique auto-generated scan identifier.

submitted_url
string
required

Original URL submitted for scanning.

device
enum<string>
required

Device type used for the scan simulation (DESKTOP or MOBILE).

Available options:
DESKTOP,
MOBILE
user_agent
string
required

User agent string used to simulate the browser environment.

scanned_from
string
required

Country code from which the scan was initiated. Available for PREMIUM users only.

origin
enum<string>
required

Indicates whether the scan was submitted programmatically via API or manually by a user.

Available options:
USER,
API,
TELEGRAM
width
integer
required

Viewport width in pixels used during the scan.

height
integer
required

Viewport height in pixels used during the scan.

private_scan
boolean
required

When true, scan results are only accessible to the submitting user.

status
enum<string>
required

Current scan status. PENDING and RUNNING are transient states; DONE and ERROR are terminal states.

Available options:
PENDING,
RUNNING,
DONE,
ERROR
submitted_date
string<date-time>
required

ISO 8601 timestamp when the scan was submitted.

domain
string | null

Extracted domain from the submitted URL.

target_url
string | null

Final destination URL after following all redirects.

protocol
string | null

Protocol used (HTTP or HTTPS).

http_referer
string | null

HTTP Referer header value indicating the originating page for the request.

nsfw
boolean | null
default:false

Indicates whether the page contains Not Safe For Work (NSFW) content such as nudity or adult material.

submitter_tags
string[] | null

User-defined tags for organizing and categorizing scans.

error_code
string | null

Error code when scan status is ERROR, indicating the reason for failure.