The Direct Index Ask API

The Ask API from The Direct Index — 1 operation(s) for ask.

Operations 2

POST /api/ask Ask the index a question in plain words; Claude answers from the index's own… #
GET /api/ask How to call /api/ask and the limits #

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/directindex-org:directindex-org-ask-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

directindex-org-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Direct Index Ask API
  version: '0.2'
  description: 'Agent-Direct Scores: whether AI agents can find, read and act on a business''s own website. Free, open data, no authentication for reads. An API key (optional, agency plan) only raises the scan limit.'
  contact:
    url: https://directindex.org/
servers:
- url: https://directindex.org
security:
- {}
- apiKey: []
tags:
- name: Ask
paths:
  /api/ask:
    post:
      summary: Ask the index a question in plain words; Claude answers from the index's own…
      security:
      - {}
      - apiKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - question
              properties:
                question:
                  type: string
                  example: Which Berlin restaurants on Wix serve their menu as a PDF?
      responses:
        '200':
          description: question, answer (Markdown), calls (tool, args, label), model, at, cached
        '400':
          description: No question
        '429':
          description: 10 questions a day per address without a key, 100 per key, and a daily cap for everyone
        '502':
          description: The model did not answer
      tags:
      - Ask
      operationId: postApiAsk
      x-operation-id-source: derived
    get:
      summary: How to call /api/ask and the limits
      responses:
        '200':
          description: endpoint, limits, page
      tags:
      - Ask
      operationId: getApiAsk
      x-operation-id-source: derived
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: di_live_ followed by 32 hex characters
      description: 'Optional. Raises the new-scan limit to the key''s own (300 an hour on the agency plan) and attributes the call to the key; reads need no key and stay unlimited. Keys come with the agency plan: https://directindex.org/agency. Details: https://directindex.org/auth.md'