Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: StealthStack ARD Index — Read Stats 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: Stats
paths:
/stats:
get:
summary: Index-wide counts
responses:
'200':
description: stats
content:
application/json:
schema:
type: object
properties:
domains:
type: integer
resources:
type: integer
byType:
type: object
additionalProperties:
type: integer
byKind:
type: object
additionalProperties:
type: integer
byTrust:
type: object
additionalProperties:
type: integer
fresh:
type: object
description: What default browse/search show (fresh, link-live). The homepage headline. Like every /stats count, it never includes sensitive-content labelled records.
properties:
resources:
type: integer
domains:
type: integer
lastCrawlId:
type: string
tags:
- Stats
operationId: getStats
x-operation-id-source: derived