EdgeChat Ask API

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

GitHub OpenAPI

Operations 2

GET /ask NLWeb ask, list mode: the General articles matching a query, in NLWeb's list… #
POST /ask NLWeb ask, list mode, with the parameters in a JSON or form body #

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/edgechat-ai:edgechat-ai-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

edgechat-ai-ask-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Edgepedia Ask API
  version: '1'
  description: Read-only JSON access to the Edgepedia encyclopedia articles. Keyless. 600 requests a minute and 100,000 a day per IP address (429 with Retry-After past that). Free with credit under the Edgepedia Community License 1.0; AI training is open to everyone.
  license:
    name: Edgepedia Community License 1.0
    url: https://www.edgechat.ai/edgepedia/license
  contact:
    url: https://www.edgechat.ai/developers
    name: EdgeChat
    email: olivia.jin@biostate.ai
  x-logo:
    url: https://www.edgechat.ai/assets/edgechat-chestnut-orange-logo-v2.png
    altText: EdgeChat
    backgroundColor: '#FFFFFF'
    href: https://www.edgechat.ai/developers
  x-origin:
  - format: openapi
    version: '3.1'
    url: https://www.edgechat.ai/openapi.json
servers:
- url: https://www.edgechat.ai/api/v1
tags:
- name: Ask
paths:
  /ask:
    get:
      operationId: nlwebAsk
      summary: 'NLWeb ask, list mode: the General articles matching a query, in NLWeb''s list…'
      description: 'No model is called: generate_mode summarize or generate is answered as a list, and _meta.note says so. streaming=true, or Accept: text/event-stream, sends the same list as server-sent events (one result_batch, then complete). Also at https://www.edgechat.ai/ask; POST takes the same fields as a JSON body.'
      parameters:
      - name: query
        in: query
        required: true
        schema:
          type: string
          maxLength: 200
        description: A subject's name or words from its title.
        example: Mount Fuji
      - name: decontextualized_query
        in: query
        schema:
          type: string
        description: Used in place of query when given.
      - name: num_results
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 10
          default: 10
      - name: generate_mode
        in: query
        schema:
          type: string
          enum:
          - list
          - summarize
          - generate
          default: list
      - name: mode
        in: query
        schema:
          type: string
        description: An older name for generate_mode.
      - name: streaming
        in: query
        schema:
          type: string
          enum:
          - 'true'
          - 'false'
          default: 'false'
      - name: query_id
        in: query
        schema:
          type: string
        description: Echoed back; a new one is made when absent.
      - name: site
        in: query
        schema:
          type: string
        description: 'Accepted and ignored: this site holds one collection.'
      - name: prev
        in: query
        schema:
          type: string
        description: Accepted and ignored.
      - name: last_ans
        in: query
        schema:
          type: string
        description: Accepted and ignored.
      - name: item_to_remember
        in: query
        schema:
          type: string
        description: Accepted and ignored.
      - $ref: '#/components/parameters/fields'
      responses:
        '200':
          description: The matching articles, best first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NlwebAskResponse'
              examples:
                live:
                  summary: GET https://www.edgechat.ai/api/v1/ask?query=Mount Fuji
                  description: 'A live answer of 2026-10-07: arrays cut to two items, long text cut with an ellipsis.'
                  value:
                    _meta:
                      version: '0.5'
                      response_type: list
                      generate_mode: list
                    query_id: 48f010f1-3e18-4e04-b8f3-f6acd987af02
                    query: Mount Fuji
                    results:
                    - url: https://www.edgechat.ai/mount-fuji
                      name: Mount Fuji (富士山)
                      site: edgechat.ai
                      score: 1
                      description: Mount Fuji (富士山, Fuji-san) is an active stratovolcano on Honshū, about 100 km southwest of Tokyo, and Japan's highest peak at 3,776 meters, dormant since its last eruption in 1707.
                      schema_object:
                        '@type': Article
                        '@id': https://www.edgechat.ai/mount-fuji
                        headline: Mount Fuji (富士山)
                        url: https://www.edgechat.ai/mount-fuji
                        description: Mount Fuji (富士山, Fuji-san) is an active stratovolcano on Honshū, about 100 km southwest of Tokyo, and Japan's highest peak at 3,776 meters, dormant since its last eruption in 1707.
                        identifier: epew8wpqdv
                        license: https://www.edgechat.ai/edgepedia/license
                        isAccessibleForFree: true
                        publisher:
                          '@type': Organization
                          name: EdgeChat
                          url: https://www.edgechat.ai/
                    - url: https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                      name: Hōei eruption of Mount Fuji
                      site: edgechat.ai
                      score: 0.909
                      description: The Hōei eruption of Mount Fuji (宝永大噴火) was a violent eruption lasting 16 days from December 1707, blanketing Edo and the Kantō plain with ash.
                      schema_object:
                        '@type': Article
                        '@id': https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                        headline: Hōei eruption of Mount Fuji
                        url: https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                        description: The Hōei eruption of Mount Fuji (宝永大噴火) was a violent eruption lasting 16 days from December 1707, blanketing Edo and the Kantō plain with ash.
                        identifier: epwnggfxzp
                        license: https://www.edgechat.ai/edgepedia/license
                        isAccessibleForFree: true
                        publisher:
                          '@type': Organization
                          name: EdgeChat
                          url: https://www.edgechat.ai/
                    license:
                      name: Edgepedia Community License 1.0
                      url: https://www.edgechat.ai/edgepedia/license
                      summary: Free with credit, commercial use included. AI training is open to everyone. For other uses, organizations over USD 100M in revenue or 100M monthly users license separately.
            text/event-stream:
              schema:
                type: string
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/Last-Modified'
            Content-Digest:
              $ref: '#/components/headers/Content-Digest'
            Edgepedia-Corpus-Version:
              $ref: '#/components/headers/Edgepedia-Corpus-Version'
        '400':
          description: 'An error: a missing query, or `unknown_parameter` for a parameter this route does not read.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
        '429':
          description: An error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
        '503':
          description: Briefly unavailable; try again
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
      tags:
      - Ask
    post:
      operationId: nlwebAskPost
      summary: NLWeb ask, list mode, with the parameters in a JSON or form body
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  maxLength: 200
                  description: A subject's name or words from its title.
                decontextualized_query:
                  type: string
                  description: Used in place of query when given.
                num_results:
                  type: integer
                  minimum: 1
                  maximum: 10
                  default: 10
                generate_mode:
                  type: string
                  enum:
                  - list
                  - summarize
                  - generate
                  default: list
                mode:
                  type: string
                  description: An older name for generate_mode.
                streaming:
                  type: string
                  enum:
                  - 'true'
                  - 'false'
                  default: 'false'
                query_id:
                  type: string
                  description: Echoed back; a new one is made when absent.
                site:
                  type: string
                  description: 'Accepted and ignored: this site holds one collection.'
                prev:
                  type: string
                  description: Accepted and ignored.
                last_ans:
                  type: string
                  description: Accepted and ignored.
                item_to_remember:
                  type: string
                  description: Accepted and ignored.
            example:
              query: Mount Fuji
              num_results: 3
          application/x-www-form-urlencoded:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  maxLength: 200
                  description: A subject's name or words from its title.
                decontextualized_query:
                  type: string
                  description: Used in place of query when given.
                num_results:
                  type: integer
                  minimum: 1
                  maximum: 10
                  default: 10
                generate_mode:
                  type: string
                  enum:
                  - list
                  - summarize
                  - generate
                  default: list
                mode:
                  type: string
                  description: An older name for generate_mode.
                streaming:
                  type: string
                  enum:
                  - 'true'
                  - 'false'
                  default: 'false'
                query_id:
                  type: string
                  description: Echoed back; a new one is made when absent.
                site:
                  type: string
                  description: 'Accepted and ignored: this site holds one collection.'
                prev:
                  type: string
                  description: Accepted and ignored.
                last_ans:
                  type: string
                  description: Accepted and ignored.
                item_to_remember:
                  type: string
                  description: Accepted and ignored.
      responses:
        '200':
          description: The matching articles, best first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NlwebAskPostResponse'
              examples:
                live:
                  summary: POST https://www.edgechat.ai/api/v1/ask
                  description: 'A live answer of 2026-10-07: arrays cut to two items, long text cut with an ellipsis.'
                  value:
                    _meta:
                      version: '0.5'
                      response_type: list
                      generate_mode: list
                    query_id: 27d381ca-d805-40f3-8261-6865d9518f2b
                    query: Mount Fuji
                    results:
                    - url: https://www.edgechat.ai/mount-fuji
                      name: Mount Fuji (富士山)
                      site: edgechat.ai
                      score: 1
                      description: Mount Fuji (富士山, Fuji-san) is an active stratovolcano on Honshū, about 100 km southwest of Tokyo, and Japan's highest peak at 3,776 meters, dormant since its last eruption in 1707.
                      schema_object:
                        '@type': Article
                        '@id': https://www.edgechat.ai/mount-fuji
                        headline: Mount Fuji (富士山)
                        url: https://www.edgechat.ai/mount-fuji
                        description: Mount Fuji (富士山, Fuji-san) is an active stratovolcano on Honshū, about 100 km southwest of Tokyo, and Japan's highest peak at 3,776 meters, dormant since its last eruption in 1707.
                        identifier: epew8wpqdv
                        license: https://www.edgechat.ai/edgepedia/license
                        isAccessibleForFree: true
                        publisher:
                          '@type': Organization
                          name: EdgeChat
                          url: https://www.edgechat.ai/
                    - url: https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                      name: Hōei eruption of Mount Fuji
                      site: edgechat.ai
                      score: 0.75
                      description: The Hōei eruption of Mount Fuji (宝永大噴火) was a violent eruption lasting 16 days from December 1707, blanketing Edo and the Kantō plain with ash.
                      schema_object:
                        '@type': Article
                        '@id': https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                        headline: Hōei eruption of Mount Fuji
                        url: https://www.edgechat.ai/hoei-eruption-of-mount-fuji
                        description: The Hōei eruption of Mount Fuji (宝永大噴火) was a violent eruption lasting 16 days from December 1707, blanketing Edo and the Kantō plain with ash.
                        identifier: epwnggfxzp
                        license: https://www.edgechat.ai/edgepedia/license
                        isAccessibleForFree: true
                        publisher:
                          '@type': Organization
                          name: EdgeChat
                          url: https://www.edgechat.ai/
                    license:
                      name: Edgepedia Community License 1.0
                      url: https://www.edgechat.ai/edgepedia/license
                      summary: Free with credit, commercial use included. AI training is open to everyone. For other uses, organizations over USD 100M in revenue or 100M monthly users license separately.
            text/event-stream:
              schema:
                type: string
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            ETag:
              $ref: '#/components/headers/ETag'
            Last-Modified:
              $ref: '#/components/headers/Last-Modified'
            Content-Digest:
              $ref: '#/components/headers/Content-Digest'
            Edgepedia-Corpus-Version:
              $ref: '#/components/headers/Edgepedia-Corpus-Version'
        '400':
          description: 'An error: a missing query, or `unknown_parameter` for a parameter this route does not read.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
        '429':
          description: An error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
            RateLimit:
              $ref: '#/components/headers/RateLimit'
            Retry-After:
              description: Seconds to wait before the next request.
              schema:
                type: integer
        '503':
          description: Briefly unavailable; try again
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          headers:
            RateLimit-Policy:
              $ref: '#/components/headers/RateLimit-Policy'
      tags:
      - Ask
components:
  headers:
    RateLimit-Policy:
      description: 'The limiter''s two windows, per IP address and per server instance (IETF RateLimit header fields): 600 requests a minute and 100,000 a day.'
      schema:
        type: string
        example: '"minute";q=600;w=60, "day";q=100000;w=86400'
    RateLimit:
      description: 'On a 429 only: the window that was exceeded, no requests remaining (r=0), and the seconds until it resets (t).'
      schema:
        type: string
        example: '"minute";r=0;t=42'
    Edgepedia-Corpus-Version:
      description: The corpus release that answered.
      schema:
        type: string
    Content-Digest:
      description: sha-256 of the body (RFC 9530).
      schema:
        type: string
    Last-Modified:
      description: The corpus release date (informational; only the ETag validates).
      schema:
        type: string
    ETag:
      description: A hash of the body; send it back as If-None-Match for a 304.
      schema:
        type: string
  schemas:
    NlwebAskPostResponse:
      type: object
      properties:
        _meta:
          type: object
          properties:
            version:
              type: string
            response_type:
              type: string
              const: list
            generate_mode:
              type: string
            note:
              type: string
        query_id:
          type: string
        query:
          type: string
        did_you_mean:
          type: string
        results:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
                format: uri
              name:
                type: string
              site:
                type: string
              score:
                type: number
              description:
                type: string
              schema_object:
                type: object
        license:
          $ref: '#/components/schemas/License'
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            next:
              type: string
              format: uri
            did_you_mean:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                  slug:
                    type: string
                  title:
                    type: string
                  api_url:
                    type: string
          required:
          - code
          - message
      required:
      - error
    NlwebAskResponse:
      type: object
      properties:
        _meta:
          type: object
          properties:
            version:
              type: string
            response_type:
              type: string
              const: list
            generate_mode:
              type: string
            note:
              type: string
        query_id:
          type: string
        query:
          type: string
        did_you_mean:
          type: string
        results:
          type: array
          items:
            type: object
            properties:
              url:
                type: string
                format: uri
              name:
                type: string
              site:
                type: string
              score:
                type: number
              description:
                type: string
              schema_object:
                type: object
        license:
          $ref: '#/components/schemas/License'
    License:
      type: object
      properties:
        name:
          type: string
        url:
          type: string
          format: uri
        summary:
          type: string
        spdx:
          type: string
          example: LicenseRef-Edgepedia-Community-1.0
      required:
      - name
      - url
  parameters:
    fields:
      name: fields
      in: query
      required: false
      description: 'Comma-separated keys: each result (or the answer, when it has no results) keeps only these.'
      schema:
        type: string