StealthStack Search API

The Search API from StealthStack — 1 operation(s) for search.

GitHub OpenAPI

Operations 1

POST /search ARD v0.91 search (federatable) #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stealthstack-ai:stealthstack-ai-search-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stealthstack-ai-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: StealthStack ARD Index — Read Search 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: Search
paths:
  /search:
    post:
      summary: ARD v0.91 search (federatable)
      description: ARD §5.3.2. `query.text` is required, `query.filter` optional. Rate limited per IP (429 RATE_LIMIT_EXCEEDED). Stale records are hidden unless the `includeStale=true` query-string flag is set.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchRequest'
      responses:
        '200':
          description: ranked results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalError'
      tags:
      - Search
      operationId: postSearch
      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
    IndexRecord:
      description: See schemas/index-record.schema.json (canonical). Summarized here for codegen.
      type: object
      required:
      - identifier
      - displayName
      - type
      - kind
      - source
      - observed
      - trust
      properties:
        identifier:
          type: string
        displayName:
          type: string
        type:
          type: string
        kind:
          type: string
          enum:
          - agent
          - mcp
          - skill
          - catalog
          - api
          - registry
          - other
        url:
          type: string
          format: uri
        description:
          type: string
        tags:
          type: array
          items:
            type: string
        capabilities:
          type: array
          items:
            type: string
        representativeQueries:
          type: array
          items:
            type: string
        version:
          type: string
        updatedAt:
          type: string
          format: date-time
        metadata:
          type: object
          additionalProperties: true
        source:
          type: object
          properties:
            domain:
              type: string
            catalogUrl:
              type: string
              format: uri
            via:
              type: string
        observed:
          type: object
          properties:
            firstSeen:
              type: string
              format: date-time
            lastSeen:
              type: string
              format: date-time
            lastStatus:
              type: integer
        trust:
          type: object
          properties:
            status:
              type: string
              enum:
              - verified
              - unverified
              - failed
            method:
              type: string
              enum:
              - domain-anchor
              - registry-asserted
              - none
            authority:
              type:
              - string
              - 'null'
        catalogHost:
          type: object
          properties:
            identifier:
              type: string
            displayName:
              type: string
        sensitive:
          type: array
          items:
            type: string
            enum:
            - adult
            - gambling
          description: 'RESERVED, index-derived (never from the crawl record). Labelled records are hidden everywhere, so this member is not served today; it appears only on an index deployed with its sensitive opt-in flag on. A publisher-supplied top-level `sensitive` is never passed through. A client that receives a record carrying it should treat the record as hidden (not show it).

            '
    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'
    SearchResponse:
      type: object
      required:
      - results
      properties:
        results:
          type: array
          items:
            $ref: '#/components/schemas/SearchResult'
        referrals:
          type: array
          description: Registries the client may query next. Present ONLY when `federation` is `referrals`.
          items:
            type: object
            required:
            - identifier
            - displayName
            - type
            - url
            properties:
              identifier:
                type: string
              displayName:
                type: string
              type:
                type: string
              url:
                type: string
                format: uri
                description: 'Complete URL of the referred registry''s search endpoint (ARD §5.3). Unlike the `url` of a well-known `application/ai-registry+json` entry (a base URL), clients use this value as-is and do not append `/search`.

                  '
        pageToken:
          type: string
    SearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          allOf:
          - $ref: '#/components/schemas/QueryModel'
          - type: object
            required:
            - text
            properties:
              text:
                type: string
        federation:
          type: string
          enum:
          - auto
          - referrals
          - none
          default: auto
          description: 'none = local only; referrals = local + registry pointers; auto (default) = spec "query upstream and merge": local results ranked together with filtered results from the configured peer registries (local only when none are configured), without referrals. Other values → 400.

            '
        pageSize:
          type: integer
          default: 10
          maximum: 100
        pageToken:
          type: string
          maxLength: 2048
        sensitive:
          type: string
          enum:
          - exclude
          - include
          - only
          default: exclude
          description: RESERVED StealthStack extension. Ignored (always `exclude`) unless the index is deployed with its sensitive opt-in flag on (off in production). Also accepted on /explore.
    SearchResult:
      description: 'An IndexRecord with `source` flattened to a URI and `representativeQueries` OMITTED (ARD §5.3.2: an indexing signal, not presentation). Only `identifier` is required by the spec; this index also always emits `score` and `source`.


        FEDERATED results (`federation: "auto"`, STE-96) are a peer registry''s listing, not an IndexRecord (none are returned while outbound federation is off): `source` is the peer''s registry base URL, `trust` is always `{status: "unverified"}`, `observed` and `origin` are absent, and `metadata` carries `stealthstack.federatedFrom` (peer host) and `stealthstack.listedBy` (the peer''s display name). Detect them by `metadata["stealthstack.federatedFrom"]`, or by `source` not being this registry. UI wording: "Listed by <peer>".

        '
      allOf:
      - $ref: '#/components/schemas/IndexRecord'
      - type: object
        required:
        - identifier
        - score
        - source
        properties:
          score:
            type: integer
            minimum: 0
            maximum: 100
            description: per-source relevance; NOT comparable across federated sources — do not sort a merged list by raw score. Not a trust rating.
          source:
            type: string
            format: uri
            description: This registry (`https://stealthstack.ai/registry/`) for our own records; the peer registry's base URL (e.g. `https://registry.example/api/v1/`) for a federated result. Never null.