mlab Domain Scan API
Launch, monitor and retrieve automated domain security scans.
Launch, monitor and retrieve automated domain security scans.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/mlab-sh:mlab-sh-domain-scan-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: mlab.sh Domain Scan API
version: 1.0.0
description: 'The **mlab.sh** REST API lets you launch domain security scans, look up IP, crypto, hash, URL, email, phone and MAC intelligence, extract IOCs from raw text, analyze files and scripts, triage indicator lists, run RedKit audits, schedule scans, work on cases and inspect SSL certificates programmatically.
All endpoints are authenticated with an API key sent in the `Authorization` header. Generate a key from **Organization → Settings → API keys** on mlab.sh. A key belongs to the organization and carries permissions chosen when it is created (`scan.lookup`, `scan.domain`, `scan.file`, `scan.batch`, `redkit`, `watchdog.read`, `watchdog.write`, `cases.read`, `cases.write`, `tags.read`, `tags.write`, `webhooks.manage`, or full access). A call outside the key''s permissions returns **403** naming the missing permission; organization and account settings are never reachable with a key. `webhooks.manage` is the one exception and is **never part of full access**: it must be ticked by name (a full-access key can hold it too). It lets a key register signed webhook endpoints and list or delete only the ones it registered itself.
**Working through an AI agent?** Prefer the Model Context Protocol server at `https://mlab.sh/mcp` (Streamable HTTP, OAuth 2.0 or an `mcp_` token). It exposes 48 tools covering most of what is below plus CVE search, threat-actor attribution, SBOM scanning, cases and workspace memory, cluster and Proxmox inspection and offline indicator lookups that consume no scan quota, so it is a wider surface than this REST API rather than a wrapper over it. See https://doc.mlab.sh/docs/mlab.sh/integrations/mcp and https://mlab.sh/llms.txt.
**Permissions.** Each operation lists the API key permission it needs (`x-api-key-permission`). Keys created before 2026-10-01 were migrated to full access.
**Expiry.** A key is created with a lifetime (90 days by default; 30, 180, 365 days or never). An expired key is answered **401**, like an unknown one. The expiry date shows in Organization → Settings → API keys.
**Quota headers.** Every call that spends scan quota answers with `X-RateLimit-Limit` (the plan''s limit for that scan type), `X-RateLimit-Remaining` (what is left after this call), `X-RateLimit-Resource` (the scan type) and `X-RateLimit-Window` (86400: quotas count a rolling 24 hours, so there is no fixed reset time). Unlimited plans send none.'
contact:
name: mlab.sh support
email: contact@cyberdream.io
url: https://mlab.sh
license:
name: Proprietary
x-source-of-truth: html/openapi.json in the mlab.sh app repository, served at https://mlab.sh/openapi.json. The docs repository generates openapi.yaml from it with scripts/sync-openapi.mjs.
servers:
- url: https://mlab.sh
description: Production
security:
- ApiKeyAuth: []
tags:
- name: Domain Scan
description: Launch, monitor and retrieve automated domain security scans.
paths:
/api/v1/scan/domain:
post:
tags:
- Domain Scan
summary: Launch a domain scan
operationId: launchDomainScan
description: 'Starts an asynchronous security scan for a domain. Poll `/api/v1/scan/domain/status` and then fetch `/api/v1/scan/domain/results`.
**API key permission:** `scan.domain`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- domain
properties:
domain:
type: string
description: The domain to scan.
example: example.com
responses:
'200':
description: Scan accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/ScanStarted'
example:
status: success
message: Domain scan has been started.
'400':
description: Invalid domain or scan limit reached.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
invalidDomain:
value:
status: error
message: Provided domain is invalid.
limitReached:
value:
status: error
message: Scan limit reached. Please try again later.
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
x-api-key-permission: scan.domain
/api/v1/scan/domain/status:
get:
tags:
- Domain Scan
summary: Check scan status
operationId: getDomainScanStatus
parameters:
- $ref: '#/components/parameters/DomainQuery'
responses:
'200':
description: Current scan status.
content:
application/json:
schema:
$ref: '#/components/schemas/ScanStatus'
examples:
pending:
value:
status: pending
message: Domain scan is still pending.
scanning:
value:
status: scanning
message: Domain scan is still in progress.
success:
value:
status: success
message: Domain scan is in done.
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
x-api-key-permission: scan.domain
description: '**API key permission:** `scan.domain`.'
/api/v1/scan/domain/results:
get:
tags:
- Domain Scan
summary: Get scan results
operationId: getDomainScanResults
description: 'Returns the result set of the last scan: discovered subdomains, DNS resolve and TXT records, SSL certificates and well-known files.
This payload is frozen and will not change. The full scan (mail security, TLS, HTTP headers, technologies and CVEs, takeover, registration, findings and score) is served by `/api/v1/scan/domain/report`.
**API key permission:** `scan.domain`.'
parameters:
- $ref: '#/components/parameters/DomainQuery'
responses:
'200':
description: Scan results.
content:
application/json:
schema:
$ref: '#/components/schemas/DomainResults'
example:
domain: example.com
scan_date: 2026-07-05 16:13:00 UTC
status: completed
results:
subdomains:
- www.example.com
- example.org
- example.net
subdomains_suspicious:
- keyword: admin
subdomain: admin.example.com
dns:
resolve:
- domain: www.example.com
a:
- 104.20.23.154
- 172.66.147.243
aaaa:
- 2606:4700:10::6814:179a
cname: null
txt:
raw:
- v=spf1 -all
spf: v=spf1 -all
dmarc: null
dkim: []
ssl:
- domain: example.com
id: 13769145126
issuer_ca_id: 0
issuer_name: C=US, O=DigiCert Inc, CN=DigiCert Global CA G2
common_name: www.example.com
name_value: www.example.com
entry_timestamp: '2026-02-11T21:22:07Z'
not_before: '2026-01-15T00:00:00'
not_after: '2027-01-15T23:59:59'
serial_number: ''
result_count: 1
files:
robots_txt: 'User-agent: *
Disallow:'
security_txt: ''
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
x-api-key-permission: scan.domain
/api/v1/scan/domain/report:
get:
tags:
- Domain Scan
summary: Get the full scan report
operationId: getDomainScanReport
description: 'The complete domain scan, schema `domain-report/2`: every check grouped by section (registration, dns, mail, web, certificates, surface), the aggregated findings with the section they belong to, and the score shown on mlab.sh.
**Stability.** Fields are only ever added to this schema; a breaking change ships as a new schema string on a new route. Clients should ignore fields they do not know.
`status` is `completed`, `partial`, `failed` or `in_progress`; `score` is `null` while the scan is in progress. `dns.caa` is `null` when the scan predates the CAA audit. `surface.hosts` lists every live host; per-host HTTP, TLS and technology data will be added to each entry.
**API key permission:** `scan.domain`.'
parameters:
- $ref: '#/components/parameters/DomainQuery'
responses:
'200':
description: Full scan report (example abridged).
content:
application/json:
schema:
type: object
example:
schema: domain-report/2
domain: example.com
status: completed
scan_date: 2026-10-09 10:00:00 UTC
score:
value: 72
grade: C
findings:
- severity: high
title: 'Subdomain takeover: old.example.com points to an unclaimed Microsoft Azure resource'
section: surface
- severity: medium
title: 'DMARC policy is p=none: spoofed mail is reported but still delivered'
section: email
registration:
registrar: Example Registrar
created: '1995-08-14T04:00:00Z'
expires: '2027-08-13T04:00:00Z'
expires_in_days: 308
locks:
transfer: true
delete: true
update: true
renew: false
findings: []
dns:
records:
mx:
- priority: 10
exchange: mx1.example.com
ns:
- a.iana-servers.net
caa: []
soa: null
ptr: []
dnssec:
enabled: true
status: secure
ds_algorithms:
- 13
findings: []
caa: null
txt:
raw:
- v=spf1 include:_spf.google.com -all
spf: v=spf1 include:_spf.google.com -all
dmarc: v=DMARC1; p=none
dkim:
- google
saas:
- service: Google Workspace
category: email
source: spf
evidence: _spf.google.com
dangling:
checked: 3
dangling_count: 0
findings: []
mail:
spf:
present: true
all: -all
lookups: 4
void_lookups: 0
includes:
- _spf.google.com
permerror: false
dmarc:
present: true
policy: none
effective_policy: none
subdomain_policy: none
grade: C
findings: []
web:
tls:
protocol: TLSv1.3
days_remaining: 98
http:
hsts:
present: true
cve:
findings: []
wellknown: {}
files:
security_txt: ''
robots_txt: 'User-agent: *'
certificates:
history:
cert_count: 42
duplicates_removed: 42
wildcards:
- '*.example.com'
valid_cas:
- DigiCert
neighbors: {}
list: []
surface:
subdomains:
- www.example.com
suspicious: []
ghosts: {}
hosts:
- domain: www.example.com
a:
- 104.20.23.154
aaaa: []
cname: null
takeover:
candidates: []
findings: []
ip_intel:
ips:
- ip: 104.20.23.154
as: AS13335 Cloudflare, Inc.
country_code: US
category: cdn
provider: Cloudflare
provider_summary:
- category: cdn
provider: Cloudflare
count: 1
reserved: []
findings: []
typosquat: {}
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
x-api-key-permission: scan.domain
/api/v1/scan/domain/loadnetworkrequest:
get:
tags:
- Domain Scan
summary: Capture network requests
operationId: loadNetworkRequests
description: 'Loads the target URL in a headless browser and returns every network request the page makes (documents, scripts, XHR, images…) with method, status, MIME type, bytes, timing and remote IP. Useful for auditing trackers, third-party calls and supply-chain footprint.
**Quota:** counts as 1 domain scan. **Latency:** ~10–30s (real browser capture).
**API key permission:** `scan.domain`.'
parameters:
- name: url
in: query
required: true
description: 'Target URL to load. `https://` is prepended if no scheme is present. Must be http or https.
'
schema:
type: string
example: https://example.com
responses:
'200':
description: Captured network activity.
content:
application/json:
schema:
$ref: '#/components/schemas/NetworkCapture'
example:
url: https://example.com/
captureMs: 10000
count: 1
totalBytes: 632
requests:
- requestId: E51577303D719753FF104B65E699F860
url: https://example.com/
method: GET
resourceType: Document
initiator: other
status: 200
mimeType: text/html
protocol: http/1.1
remoteIP: 93.184.216.34
encodedBytes: 632
startMs: 0
endMs: 77
failed: false
errorText: null
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
x-api-key-permission: scan.domain
/api/v1/scan/domain/tech:
get:
tags:
- Domain Scan
summary: Read technology fingerprints
operationId: getDomainTech
description: 'What the last technology fingerprinting found on the domain and the chosen subdomains: name, version, confidence, categories, CPE and package per technology. Results are kept six months and shared between organizations, so a host fingerprinted for someone else answers without a new run. Team and Enterprise plans.
**API key permission:** `scan.domain`.'
parameters:
- name: domain
in: query
required: true
description: The registrable domain the hosts belong to.
schema:
type: string
example: acme.fr
- name: hosts
in: query
required: false
description: 'Comma-separated hosts: the domain itself or its subdomains, at most 10. Defaults to the domain.'
schema:
type: string
example: acme.fr,shop.acme.fr
responses:
'200':
description: One entry per host that has been fingerprinted.
content:
application/json:
example:
hosts:
- domain: shop.acme.fr
scanned_at: '2026-11-02T09:14:00+00:00'
url: https://shop.acme.fr/
mode: browser
technologies:
- name: nginx
version: 1.24.0
confidence: 100
categories:
- Web servers
cpe: cpe:2.3:a:f5:nginx:1.24.0:*:*:*:*:*:*:*
ecosystem: null
package: null
evidence: Server header
'400':
description: Invalid domain, a host outside it, or more than 10 hosts.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/Forbidden'
'401':
$ref: '#/components/responses/Unauthorized'
x-api-key-permission: scan.domain
post:
tags:
- Domain Scan
summary: Fingerprint technologies
operationId: launchDomainTech
description: 'Loads each host in a browser and identifies the technologies it runs (about 15 seconds per host). Only the names given are looked at, never their subdomains. A host fingerprinted in the last 24 hours is not run again and comes back in `fresh`. Read the result with `GET /api/v1/scan/domain/tech`. Team and Enterprise plans.
**API key permission:** `scan.domain`.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- domain
properties:
domain:
type: string
example: acme.fr
hosts:
type: array
maxItems: 10
items:
type: string
description: The domain itself or its subdomains. Defaults to the domain.
example:
- shop.acme.fr
responses:
'200':
description: Launched, or already fresh.
content:
application/json:
example:
status: success
launched:
- shop.acme.fr
fresh:
- acme.fr
launched_at: '2026-11-05T10:00:00+00:00'
'400':
description: Invalid domain, a host outside it, or more than 10 hosts.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
$ref: '#/components/responses/Forbidden'
'401':
$ref: '#/components/responses/Unauthorized'
x-api-key-permission: scan.domain
/api/v1/scan/domain/resolve:
post:
tags:
- Domain Scan
summary: Relaunch a failed domain scan (staff)
operationId: resolveFailedDomainScan
description: 'mlab.sh staff only. A failed domain scan is terminal; once its cause is fixed, this wipes the failed record and relaunches the scan from a clean state. Anyone else, an API key included, gets **404**, so the route does not confirm it exists.
**API key permission:** `scan.domain` (the handler then refuses every key).'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- domain
properties:
domain:
type: string
example: example.com
responses:
'200':
description: Relaunched.
content:
application/json:
example:
status: success
'400':
description: Missing or invalid domain.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not staff.
'401':
$ref: '#/components/responses/Unauthorized'
x-api-key-permission: scan.domain
components:
responses:
Unauthorized:
description: Invalid or missing API key.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
message: Invalid or missing API key.
Forbidden:
description: The API key lacks the permission this endpoint needs, or the endpoint is not open to API keys (organization and account settings never are).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
error: This API key does not have the 'cases.write' permission (Write cases). An owner or admin can add it in the organization settings.
schemas:
DnsResolve:
type: object
properties:
domain:
type: string
a:
type: array
items:
type: string
description: IPv4 A records.
aaaa:
type: array
items:
type: string
description: IPv6 AAAA records.
cname:
type:
- string
- 'null'
description: CNAME target, if any.
TxtRecords:
type: object
properties:
raw:
type: array
items:
type: string
spf:
type:
- string
- 'null'
dmarc:
type:
- string
- 'null'
dkim:
type: array
items:
type: string
DomainResults:
type: object
properties:
domain:
type: string
scan_date:
type: string
example: 2026-07-05 16:13:00 UTC
status:
type: string
description: '`completed` or `in_progress`.'
example: completed
results:
type: object
properties:
subdomains:
type: array
items:
type: string
description: All discovered subdomains.
subdomains_suspicious:
type: array
description: Subdomains flagged by keyword.
items:
type: object
properties:
keyword:
type: string
subdomain:
type: string
dns:
type: object
properties:
resolve:
type: array
items:
$ref: '#/components/schemas/DnsResolve'
txt:
$ref: '#/components/schemas/TxtRecords'
ssl:
type: array
items:
$ref: '#/components/schemas/SslCert'
files:
type: object
properties:
robots_txt:
type: string
description: Contents of robots.txt (empty if not found).
security_txt:
type: string
description: Contents of security.txt (empty if not found).
ScanStatus:
type: object
properties:
status:
type: string
enum:
- pending
- scanning
- success
description: 'Scan progress:
- `pending` - queued, not started
- `scanning` - actively running
- `success` - completed
'
message:
type: string
required:
- status
- message
NetworkCapture:
type: object
properties:
url:
type: string
captureMs:
type: integer
count:
type: integer
totalBytes:
type: integer
requests:
type: array
items:
$ref: '#/components/schemas/NetworkRequest'
SslCert:
type: object
properties:
domain:
type: string
id:
type: integer
format: int64
issuer_ca_id:
type: integer
issuer_name:
type: string
common_name:
type: string
name_value:
type: string
description: Subject alternative names (newline-separated).
entry_timestamp:
type: string
not_before:
type: string
not_after:
type: string
serial_number:
type: string
result_count:
type: integer
Error:
type: object
properties:
status:
type: string
example: error
message:
type: string
example: Description of what went wrong.
ScanStarted:
type: object
properties:
status:
type: string
example: success
message:
type: string
example: Domain scan has been started.
NetworkRequest:
type: object
properties:
requestId:
type: string
url:
type: string
method:
type: string
resourceType:
type: string
description: Document, Script, XHR, Image, Stylesheet, …
initiator:
type: string
status:
type: integer
description: HTTP status (0 if failed).
mimeType:
type: string
protocol:
type: string
remoteIP:
type: string
encodedBytes:
type: integer
startMs:
type: integer
endMs:
type: integer
requestHeaders:
type: object
additionalProperties:
type: string
responseHeaders:
type: object
additionalProperties:
type: string
timing:
type: object
description: Low-level CDP timing breakdown.
failed:
type: boolean
errorText:
type:
- string
- 'null'
parameters:
DomainQuery:
name: domain
in: query
required: true
description: The domain in question.
schema:
type: string
example: example.com
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: Authorization
description: 'Your API key, prefixed with `token `. Example: `Authorization: token mlab_your_api_key_here`. Each key only reaches the endpoints its permissions allow.
'