ONYPHE Export API
Streamed NDJSON export of a complete population.
Streamed NDJSON export of a complete population.
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/onyphe:onyphe-export-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: ONYPHE API - Search, , Discovery and ASD Pivot Query Export…
version: '2026-10-21'
description: 'Developer reference for four ONYPHE endpoints: **Search**, **Export**,
**Discovery** (bulk) and **ASD Pivot Query**. Queries are written in OQL
(ONYPHE Query Language), always `FILTER:VALUE`. ## Two use cases, two data models
The `category` you query decides which **field names** you must use. A field from the wrong model **returns 0 results (or HTTP 400) and never
an explicit "unknown field" error**, which is indistinguishable from a
genuine absence. Pick the model first. ### A. IP enrichment and CTI: `ctiscan` and `ctiurl` (ctiscan data model)
- `ctiscan` is service-level: one document per scanned service, merging
every scanning step (IP, TCP, application, TLS/certificate, component,
DNS, HTTP, favicon, hashes...) so a single document carries every pivot. - `ctiurl` is URL-level and uses the same model; `http.url` is what
distinguishes it. - Fields are organised in *layers* (`ip.*`, `tcp.*`, `app.*`, `http.*`,
`cert.*`, `component.*`, `dns.*`, `html.*`, ...). - The raw response is `app.data.text` (up to ~1 MB). - Use it to enrich an IP (`ip.dest:1.2.3.4`), hunt infrastructure, and pivot
on certificates, hashes and fingerprints. - The Summary API never returns ctiscan/ctiurl; query them here. ### B. Attack surface management (ASM): `riskscan` and `vulnscan` (datascan data model)
- `datascan`, `vulnscan` and `riskscan` share one flat, datascan-style model
(`ip`, `port`, `protocol`, `hostname`, `domain`, `tag`, `cve`, `cpe`,
`seen_date`, `data`...). - `riskscan`: services matching a CTI-informed risk baseline, carrying
`risk::*` tags (exposed database, critical CVE, sensitive protocol,
compromised device...) and the positive CVE detections. About **7 months**
of history. Positive-only: it has no "not vulnerable" verdicts. Its raw
`data` is truncated after a period of time. - `vulnscan`: CVE detection by *check-based* (`vulnerable`, `notvulnerable`,
`maybevulnerable`, `unknownvulnerable`) and *version-based*
(`vulnerableversion`, `notvulnerableversion`, `maybevulnerableversion`,
`partialversion`, `unknownversion`, `version`) detection. Holds negative
verdicts, the full stored response and deeper history. Always add
`-exists:cve` when you want only records that carry a CVE. - Typical entry point is the **Discovery** endpoint, fed with an asset
inventory (one OQL line per domain/IP). ### Field dialect cheat-sheet
| Meaning | datascan / vulnscan / riskscan | ctiscan / ctiurl |
|---|---|---|
| IP | `ip` | `ip.dest` |
| Port | `port` | `tcp.dest` (this service), `services.port` (any open port on the host) |
| Protocol | `protocol` | `app.protocol` |
| Raw response | `data` (capped at 16384 bytes) | `app.data.text` (up to ~1 MB) |
| CPE | `cpe` | `component.cpe` |
| Product / vendor / version | `product`, `productvendor`, `productversion` | `component.product`, `component.vendor`, `component.version` |
| HTTP status | `status` | `http.code` |
| URL | `url` | `http.url` |
| Page title | `app.http.title` | `html.title.text` (full-text), `html.title.raw` (exact/regexp) |
| Device class | `device.class` | `app.device` |
| Reverse / forward DNS | `reverse` / `forward` | `dns.reverse.hostname` / `dns.forward.hostname` |
| ASN / organisation / country | `asn`, `organization`, `country` | `ip.asn`, `ip.organization`, `ip.country` |
| Cert subject CN / issuer org | `subject.commonname`, `issuer.organization` | `cert.subject.cn`, `cert.issuer.o` |
| Cert SHA-256 | `fingerprint.sha256` | `cert.fingerprint.sha256` |
Unchanged in both models: `tag`, `source`, `@category`, `@timestamp`,
`seen_date`. ## OQL notes
Plain filters are `FILTER:VALUE`. OR is `?`, NOT is `!`; there is no
`OR`/`NOT` keyword: `( ?domain:a.com ?domain:b.com )`, `!domain:google.com`. **Functions** are server-side, prefixed with `-`, written on the query
side (before any `|` post-processing). Every function has a short alias. They are licence-gated: one your subscription does not grant is refused
(`400 unknown function`), not ignored.'
contact:
name: ONYPHE
url: https://www.onyphe.io
license:
name: BSD-3-Clause
url: https://opensource.org/license/bsd-3-clause
servers:
- url: https://www.onyphe.io/api/v2
description: v2 API (Search, Export, Discovery). ASD overrides this per operation.
security:
- bearerAuth: []
tags:
- name: Export
description: Streamed NDJSON export of a complete population.
paths:
/export/:
get:
tags:
- Export
operationId: export
summary: Export a complete population as NDJSON
description: 'Streams every matching document as one JSON object per line. There is **no
envelope, no page limit and no result ceiling**: whatever matches, streams.
**Always project with `-fields:`** inside `q`, and run the same query
through Search first (`size=1`, read `total`). That check does two jobs:
it stops a broader-than-intended query from streaming millions of lines,
and it validates the OQL: **OQL errors are reported by Search, not by
Export**, so validate there first. Always set a client timeout.
Treat the response body as NDJSON.
**Licence**: Eagle View exports the last 30 days only; Griffin View exports
all historical data; not available on other subscriptions.
**IP enrichment / CTI**: pull a full ctiscan/ctiurl population (for example a
certificate fingerprint or a CPE) and analyse it offline. `ctiscan` and
`ctiurl` carry the full response in `app.data.text`, up to ~1 MB, so project
it only when you need the markup.
**Datascan caveat**: `data` is capped at 16384 bytes, so a document at the
cap may be missing the end of the response; `ctiscan`/`ctiurl` carry the
whole page.'
parameters:
- $ref: '#/components/parameters/Query'
- $ref: '#/components/parameters/TrackQuery'
responses:
'200':
description: NDJSON stream, one document per line, no envelope.
content:
application/x-ndjson:
schema:
type: string
description: NDJSON. Each line is one document (CtiscanDocument or DatascanDocument, depending on the category).
x-ndjson-item:
anyOf:
- $ref: '#/components/schemas/CtiscanDocument'
- $ref: '#/components/schemas/DatascanDocument'
examples:
ctiscan-cpe-population:
summary: A. ctiscan population by CPE
description: '`q=category:ctiscan component.cpe:"cpe:/a:apache:http_server:-" ip.country:LU -dayago:1 -fields:ip.dest,tcp.dest,component.version,tag`'
value: '{"@category":"ctiscan","ip":{"dest":"192.0.2.10"},"tcp":{"dest":80},"component":{"version":["2.4.58"]},"tag":[]}
{"@category":"ctiscan","ip":{"dest":"192.0.2.11"},"tcp":{"dest":8080},"component":{"version":["2.4.62"]},"tag":[]}
'
vulnscan-kev:
summary: B. vulnscan known-exploited CVEs
description: '`q=category:vulnscan tag:vulnerable tag:cisa::kev -exists:cve -fields:ip,port,cve,tag,seen_date`'
value: '{"@category":"vulnscan","ip":"198.51.100.7","port":443,"cve":["CVE-2026-00000"],"tag":["vulnerable","cisa::kev"],"seen_date":"2026-10-18"}
'
'400':
description: Missing or unknown key (`error` 2 / 14), or Export not in your licence (`error` 13 "API access denied"). OQL errors are reported by Search; validate the query there first.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
$ref: '#/components/responses/RateLimited'
x-codeSamples:
- lang: Shell
label: curl
source: "curl -H \"Authorization: bearer $ONYPHE_API_KEY\" --max-time 600 \\\n -G 'https://www.onyphe.io/api/v2/export/' \\\n --data-urlencode 'q=category:ctiscan component.cpe:\"cpe:/a:apache:http_server:-\" ip.country:LU -dayago:1 -fields:ip.dest,tcp.dest,component.version,tag' \\\n > apache.ndjson\n"
components:
schemas:
CtiscanDocument:
type: object
description: '**ctiscan / ctiurl data model** (IP enrichment and CTI). Layered, one document
per service (`ctiscan`) or URL (`ctiurl`). Only the most-used layers are listed;
`additionalProperties` is true. Single-field values are often arrays.
'
additionalProperties: true
properties:
'@category':
type: string
enum:
- ctiscan
- ctiurl
'@timestamp':
type: string
format: date-time
seen_date:
type: string
format: date
tag:
type: array
items:
type: string
source:
type: string
ip:
type: object
description: Scanned address and its network context.
additionalProperties: true
properties:
dest:
type: string
description: Scanned IP address.
asn:
type: string
organization:
type: string
country:
type: string
subnet:
type: string
netname:
type: string
tcp:
type: object
additionalProperties: true
properties:
dest:
type: integer
description: Port of this service.
services:
type: object
description: Every open port seen on the host.
additionalProperties: true
properties:
port:
type: array
items:
type: string
description: Port numbers as strings ("443").
app:
type: object
additionalProperties: true
properties:
protocol:
type: string
device:
type: array
items:
type: string
tls:
type: string
enum:
- 'true'
- 'false'
description: String, not a JSON boolean.
data:
type: object
description: Raw application response, up to ~1 MB.
additionalProperties: true
properties:
text:
type: string
length:
type: integer
md5:
type: string
component:
type: object
description: Detected products, vendors, versions and CPEs.
additionalProperties: true
properties:
cpe:
type: array
items:
type: string
product:
type: array
items:
type: string
vendor:
type: array
items:
type: string
version:
type: array
items:
type: string
http:
type: object
additionalProperties: true
properties:
code:
type: integer
url:
type: string
html:
type: object
additionalProperties: true
properties:
title:
type: object
properties:
text:
type: string
description: Full-text.
raw:
type: string
description: Exact/regexp.
cert:
type: object
additionalProperties: true
description: Certificate layer (subject, issuer, serial, fingerprints, validity).
dns:
type: object
additionalProperties: true
description: Forward and reverse DNS.
favicon:
type: object
additionalProperties: true
compat:
type: object
additionalProperties: true
description: Mirrors some datascan names to ease porting. Query-side names are still `compat.*`.
scanner:
type: object
additionalProperties: true
trackquery:
type: string
DatascanDocument:
type: object
description: '**datascan data model**, shared by `datascan`, `vulnscan` and `riskscan`
(ASM). Flat, with application sub-objects under `app`. `cve` and `cpe` are
root fields. `riskscan` documents carry `risk::*` tags; `vulnscan` documents
carry a verdict tag. `additionalProperties` is true.
'
additionalProperties: true
properties:
'@category':
type: string
enum:
- datascan
- vulnscan
- riskscan
'@timestamp':
type: string
format: date-time
seen_date:
type: string
format: date
ip:
type: string
ipv6:
type: string
port:
type: integer
transport:
type: string
protocol:
type: string
tls:
type: string
enum:
- 'true'
- 'false'
description: String, not a JSON boolean.
status:
type: integer
description: Application status.
hostname:
type: array
items:
type: string
description: Deduplicated hostnames from DNS and certificates.
domain:
type: array
items:
type: string
url:
type: string
asn:
type: string
organization:
type: string
country:
type: string
subnet:
type: string
product:
type: string
productvendor:
type: string
productversion:
type: array
items:
type: string
cpe:
type: array
items:
type: string
cpecount:
type: integer
cve:
type: array
items:
type: string
description: CVE identifiers detected on the service (vulnscan; propagated to riskscan/datascan).
cvecount:
type: integer
tag:
type: array
items:
type: string
description: 'Examples: `risk::exposeddatabase`, `risk::criticalcve` (riskscan);
`vulnerable`, `notvulnerable`, `maybevulnerable`, `unknownvulnerable`,
`vulnerableversion`, `notvulnerableversion`, `maybevulnerableversion`,
`partialversion`, `unknownversion`, `version` (vulnscan);
`cisa::kev`, `onyphe::kev`, `anssi::top10`, `nsa::top25`, `log4shell`;
`open` (unauthenticated access).
'
data:
type: string
description: Raw response, capped at 16384 bytes.
device:
type: object
additionalProperties: true
properties:
class:
type: string
product:
type: string
productvendor:
type: string
productversion:
type: string
app:
type: object
additionalProperties: true
description: Protocol sub-objects such as `app.http`, `app.smb`.
trackquery:
type: string
Error:
type: object
description: 'Error envelope, sent with HTTP 400. `error` is 0 on success. v2 codes are
listed in the API description (Errors). Codes published for the ASD APIs:
1 internal failure; 2 request timed out; 3 connection refused; 4 unable
to fork a new process; 1000 API not found; 1001 API access denied; 1002
parameter error; 1003 user not found; 1004 user get failed; 1005 no more
credits; 1006 search failed; 1007 task not found; 1008 creating task failed;
1009 getting task result failed; 1010 task in progress; 1011 too many
results, you should create a task; 1012 unable to kill task; 1013 resolver
failed. Other endpoints may return codes outside this list. Rate limiting
is signalled by HTTP 429.
'
properties:
error:
type: integer
description: 0 on success; see the codes above.
text:
type: string
status:
type: string
example: nok
description: v2 only.
count:
type: integer
description: v2 only.
myip:
type: string
description: v2 only.
took:
description: v2 only.
total:
type: integer
description: v2 only.
required:
- error
responses:
RateLimited:
description: Rate limit reached (about 1 request per second). Wait and retry.
parameters:
TrackQuery:
name: trackquery
in: query
description: Add a `trackquery` field to each result, showing which OQL query found it.
schema:
type: boolean
default: false
Query:
name: q
in: query
required: true
description: 'OQL query, URL-encoded. Syntax `FILTER:VALUE`; OR is `?`, NOT is `!`.
Put `category:` first. Use `-fields:` to project.
'
schema:
type: string
examples:
ctiscan:
summary: A. CTI / IP enrichment (ctiscan model)
value: category:ctiscan ip.dest:192.0.2.10 -fields:ip.dest,tcp.dest,app.protocol,tag
riskscan:
summary: B. ASM (datascan model)
value: category:riskscan domain:example.com tag:risk::exposeddatabase -fields:ip,port,tag,seen_date
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'v2 API key, sent as `Authorization: Bearer <key>` (scheme name case-insensitive).'
apiKeyAuth:
type: apiKey
in: header
name: X-Api-Key
description: The same API key as `bearerAuth`, sent in the `X-Api-Key` header by the ASD v1 API (Griffin View only).
externalDocs:
description: ONYPHE documentation
url: https://search.onyphe.io/docs