StealthStack Explore API
The Explore API from StealthStack — 1 operation(s) for explore.
The Explore API from StealthStack — 1 operation(s) for explore.
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/stealthstack-ai:stealthstack-ai-explore-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: StealthStack ARD Index — Read Explore API
version: 0.3.0
description: 'The read surface of stealthstack-index. CONSUMED by stealthstack-web (and any other client); web reads this API only, never the index''s storage directly. `POST /search` and `POST /explore` implement the ARD search API (spec v0.91, ards-project/ard-spec@49eb4df, §5.3) so the index is a federatable registry node, not just an internal store.
**Errors (ARD Appendix B).** Every non-2xx JSON response is an `Error`: `{errorCode, message}` with errorCode one of INVALID_ARGUMENT (400), NOT_FOUND (404), RATE_LIMIT_EXCEEDED (429), INTERNAL_ERROR (500). For pre-0.3.0 clients the body ALSO carries a legacy `error` string (same text as `message`); new clients should read `errorCode`/`message`.
**Federation (ARD §5.4).** `none` = local index only, no referrals. `referrals` = local results plus static pointers to other registries. `auto` (the default) = the spec''s "query upstream and merge" (STE-96): when the index has peers configured (`FEDERATION_PEERS`; outbound federation is OFF and no peer is approved: any future outbound peer needs the owner''s explicit OK plus the peer admission criteria), it queries them live with the redacted query text and `federation: "none"`, admits only results that pass its quality filter, and ranks them together with its own records (first-party records rank ahead at equal relevance); no referrals. With no peers, `auto` returns local results only. Per-peer status is in the `x-stealthstack-federation` response header (CORS-exposed). Any other value is 400 INVALID_ARGUMENT. Explore never federates.
**Sensitive-content labels (additive, 2026-09-29).** The index labels records `gambling` or `adult` and, by owner decision, HIDES THEM EVERYWHERE: they are absent from `GET /resources`, `POST /search` (federated peer results included), `POST /explore`, every `GET /stats` / `GET /stats/recent` count, `GET /domains`, the conformance scoreboard and the resource sitemap, and `GET /resources/{id}` answers 404 NOT_FOUND for them exactly as for an unknown identifier. There is NO public opt-in: the `sensitive` query parameter, the SearchRequest `sensitive` member and a `query.filter.sensitive` key are RESERVED and ignored (always `exclude`) unless the index is deployed with its opt-in flag on (`SENSITIVE_OPT_IN=on`, off in production). Clients should not send them.'
servers:
- url: https://stealthstack.ai/registry
description: public registry (stealthstack.ai/registry/* → index, read-only)
- url: https://stealthstack-index.stealthstack.workers.dev
description: index Worker (direct)
tags:
- name: Explore
paths:
/explore:
post:
summary: ARD faceted aggregations — bucket counts per field over the same candidate set…
description: ARD §5.3.3 (optional in the spec). `query.text` and `query.filter` are both optional; the same filter semantics as /search apply. Explore does not federate. Rate limited per IP like /search.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/ExploreRequest'
responses:
'200':
description: facet buckets
content:
application/json:
schema:
$ref: '#/components/schemas/ExploreResponse'
'400':
$ref: '#/components/responses/BadRequest'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalError'
tags:
- Explore
operationId: postExplore
x-operation-id-source: derived
components:
responses:
TooManyRequests:
description: RATE_LIMIT_EXCEEDED — per-IP POST rate limit hit (carries `retry-after`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
InternalError:
description: INTERNAL_ERROR — unexpected server failure.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: INVALID_ARGUMENT — malformed body, missing query.text, bad filter key/value, unknown federation mode.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
schemas:
Error:
description: 'ARD Appendix B error body. `error` is a legacy (<0.3.0) mirror of `message` kept for backward compatibility.
'
type: object
required:
- errorCode
- message
properties:
errorCode:
type: string
enum:
- INVALID_ARGUMENT
- NOT_FOUND
- RATE_LIMIT_EXCEEDED
- INTERNAL_ERROR
message:
type: string
error:
type: string
deprecated: true
description: Legacy mirror of `message`.
additionalProperties: true
QueryFilter:
type: object
maxProperties: 32
description: 'Structured constraints. Values within one key are OR''d; different keys are AND''d; a bare scalar is a 1-element array; an empty array is no constraint. When the record''s value at a key/path is an array, the constraint matches if ANY element matches.
Supported keys: `type` (exact media type), `kind`, `tags` (case-insensitive), `capabilities`, `version`, `publisher` (the `<publisher>` segment of the URN `urn:air:<publisher>:…`, case-insensitive; legacy `urn:ai:` too), `domain` (source.domain), `trust` (trust.status), `via` (source.via), `sensitive` (RESERVED: matches nothing unless the index''s sensitive opt-in is on), `paid` (the payment protocol a record lists, case-insensitive; `x402` today), and literal dot-paths under `trustManifest.*` / `metadata.*` (JSON path on the raw member, traversing arrays; values compared as strings).
Any other key — including namespaced `prefix:term` keys and full IRIs — is rejected with 400 INVALID_ARGUMENT naming the key.
'
additionalProperties:
oneOf:
- type: string
maxLength: 512
- type: number
- type: boolean
- type: array
maxItems: 64
items:
oneOf:
- type: string
maxLength: 512
- type: number
- type: boolean
example:
type: application/mcp-server-card+json
tags:
- finance
- banking
publisher:
- acme.com
trustManifest.attestations.type:
- SOC2-Type2
ExploreRequest:
type: object
required:
- resultType
properties:
query:
description: Optional; `text` narrows before aggregation, `filter` as for /search.
allOf:
- $ref: '#/components/schemas/QueryModel'
resultType:
type: object
required:
- facets
properties:
facets:
type: array
minItems: 1
maxItems: 32
items:
type: object
required:
- field
properties:
field:
type: string
description: type | kind | publisher (URN <publisher> segment) | domain (source.domain) | trust | via | tags | capabilities | sensitive (reserved; always empty while hidden). Unknown fields yield an empty bucket list.
limit:
type: integer
default: 20
minimum: 1
maximum: 1000
minCount:
type: integer
default: 1
minimum: 0
description: Suppress buckets whose count is below this (spec default 1).
QueryModel:
description: 'ARD v0.91 §5.3.1 query object shared by /search and /explore. Unknown members are ignored.
'
type: object
properties:
'@context':
description: 'Optional JSON-LD context binding prefixes used in filter keys. Accepted and IGNORED by this index (namespaced filter keys are not supported, see `filter`).
'
oneOf:
- type: string
- type: object
- type: array
text:
type: string
maxLength: 1024
description: Free-text query. Bounded to bound abuse (a 1KB query is already far longer than any real search).
filter:
$ref: '#/components/schemas/QueryFilter'
ExploreResponse:
type: object
required:
- resultType
- facets
properties:
resultType:
type: string
enum:
- facets
facets:
type: object
additionalProperties:
type: object
required:
- buckets
properties:
buckets:
type: array
items:
type: object
required:
- value
- count
properties:
value:
type: string
count:
type: integer
minimum: 0
otherCount:
type: integer
minimum: 0
description: count of entries beyond `limit` (omitted when 0)