Shruwd Discovery API

This document.

GitHub OpenAPI

Operations 1

GET /openapi.json This document #

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/shruwd-io:shruwd-io-discovery-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

shruwd-io-discovery-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Shruwd Discovery API
  version: '1'
  summary: Measure how a brand appears in AI answers, diagnose why, and prove movement.
  description: 'Shruwd tracks how a brand and its competitors show up in AI-generated answers

    (Google AI Overviews, Google AI Mode, ChatGPT, Gemini and Perplexity), sets that beside first-party AI-crawler

    logs, diagnoses **why** the brand is or is not cited, and re-checks

    whether a fix moved anything.


    **Authentication.** `Authorization: Bearer sh_live_…`. Keys are minted in the

    dashboard and carry scopes: `read` (every GET), `write` (everything else), or

    `default` (both). A dashboard session works too.


    **Tenant.** A key works on the one workspace it was minted for. A dashboard

    session works on the workspace named by the `X-Shruwd-Workspace` header, else

    the caller''s own; a key ignores the header. Within it, the caller reaches the

    brands they have access to: every brand for the workspace''s owner, a

    member''s own brands otherwise. A brand, prompt, entity, suggestion or finding

    that belongs to another workspace, or to a brand the caller cannot reach, is a

    `404`, indistinguishable from one that does not exist.


    **Roles.** Access is per brand. The workspace''s owner has every brand, and

    alone creates and archives brands and handles billing. Everyone else is a

    member of specific brands with a role on each: `viewer`, `editor` or

    `admin`. A request is judged on the caller''s role on the brand it acts on:

    reads need `viewer`, writes `editor`, minting an ingest token `admin`. A key

    reaches its holder''s brands, as they change, and never exceeds their role on

    any of them. Refusals are `403 not_a_member` and `403 insufficient_role`.


    **Errors.** The body is always `{ code, message, retryable, details? }` with the

    HTTP status. `retryable: true` (429, 5xx) may be retried with backoff;

    `Retry-After` is set on 429.


    **Rate limits.** Per key, per minute: 120 GET, 30 for everything else.


    **Metrics.** Every metric is a `DisplayableMetric`: a point estimate with its

    95% interval and `n`, or `insufficient_data` when fewer than ten responses

    exist, or `undefined` when the denominator is zero. `insufficient_data` is

    **not** zero. Do not report it as a number.


    **Measurement is asynchronous.** Creating a brand or a cycle schedules work;

    results arrive over the following hours and are read from `visibility`,

    `crawlers` and `findings`.'
  contact:
    name: Shruwd
    url: https://shruwd.io
  x-logo:
    url: https://shruwd.io/android-chrome-192x192.png
servers:
- url: https://shruwd.io/api/v1
security:
- apiKey: []
tags:
- name: Discovery
  description: This document.
paths:
  /openapi.json:
    get:
      operationId: getOpenApi
      tags:
      - Discovery
      summary: This document
      security: []
      responses:
        '200':
          description: The OpenAPI 3.1 document.
          content:
            application/json:
              schema:
                type: object
        default:
          $ref: '#/components/responses/Error'
components:
  responses:
    Error:
      description: Every failure has this body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - code
      - message
      - retryable
      properties:
        code:
          type: string
          description: Stable, machine-readable. E.g. `not_found`, `plan_limit`, `rate_limited`, `context_terms_required`.
        message:
          type: string
          description: For a person. May change between releases.
        retryable:
          type: boolean
          description: True when the same request may succeed later (429, 5xx).
        details:
          type: object
          additionalProperties: true
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: sh_live_…
      description: An API key minted in the dashboard, or a dashboard session.