unbrowse-ai Saved queries API

A question in plain words, compiled once into an API: typed params, a pinned tool, the same shape every call, and an optional cache.

Operations 8

GET /api/v1/queries Your saved queries #
POST /api/v1/queries Compile a question into an API #
GET /api/v1/queries/{queryId} One saved query #
DELETE /api/v1/queries/{queryId} Delete a saved query #
POST /api/v1/queries/{queryId}/settings Rename it, or turn its cache on or off #
POST /api/v1/queries/{queryId}/recompile Recompile: accept a new answer shape or a new tool (same id) #
GET /api/v1/q/{queryId} Call a saved query: its params as the query string #
POST /api/v1/q/{queryId} Call a saved query: its params as a JSON 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/unbrowse-ai:unbrowse-ai-saved-queries-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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

unbrowse-ai-saved-queries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Unbrowse Ai Saved queries API
  version: 1.0.0
  contact:
    name: Unbrowse
    email: hello@unbrowse.ai
    url: https://unbrowse.ai
  termsOfService: https://unbrowse.ai/terms
  description: 'Operations tagged Saved queries across 2 of this provider''s published API definitions: unbrowse-ai-openapi.json, unbrowse-ai-openapi2.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.unbrowse.ai
  description: Unbrowse
- url: https://unbrowse.ai
  description: Unbrowse
security:
- oauth2:
  - unbrowse
- apiKey: []
tags:
- name: Saved queries
  description: 'A question in plain words, compiled once into an API: typed params, a pinned tool, the same shape every call, and an optional cache.'
paths:
  /api/v1/queries:
    get:
      tags:
      - Saved queries
      operationId: listQueries
      summary: Your saved queries
      responses:
        '200':
          description: '{ queries: [...] }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    post:
      tags:
      - Saved queries
      operationId: compileQuery
      summary: Compile a question into an API
      description: 'Runs the question once with the example values (a real, verified run), pins the tool it used and learns which of the tool''s inputs each {placeholder} fills. The answer names the query''s URL: call it with GET /api/v1/q/{queryId}?param=… from then on. When a value is transformed on the way (a city to its code), say where it goes with `map`.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - query
              properties:
                query:
                  type: string
                  examples:
                  - search hn for {topic}
                  - search eatigo for {cuisine} in {city}
                example:
                  type: object
                  additionalProperties:
                    type: string
                  description: A value for each {placeholder}, used for the compiling run.
                map:
                  type: object
                  additionalProperties:
                    type: string
                  description: Input name → "{param}" or a fixed value, where the example values alone are not enough.
                name:
                  type: string
                maxAge:
                  type: integer
                  minimum: 0
                  maximum: 604800
                  description: 'Seconds an answer may be reused (0, the default: never). A reused answer is not billed.'
      responses:
        '201':
          description: The saved query, with its url and an example call
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '422':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.unbrowse.ai
      description: Unbrowse
  /api/v1/queries/{queryId}:
    get:
      tags:
      - Saved queries
      operationId: getQuery
      summary: One saved query
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      responses:
        '200':
          description: The saved query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    delete:
      tags:
      - Saved queries
      operationId: deleteQuery
      summary: Delete a saved query
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      responses:
        '200':
          description: '{ removed }'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.unbrowse.ai
      description: Unbrowse
  /api/v1/queries/{queryId}/settings:
    post:
      tags:
      - Saved queries
      operationId: querySettings
      summary: Rename it, or turn its cache on or off
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                maxAge:
                  type: integer
                  minimum: 0
                  maximum: 604800
      responses:
        '200':
          description: The saved query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.unbrowse.ai
      description: Unbrowse
  /api/v1/queries/{queryId}/recompile:
    post:
      tags:
      - Saved queries
      operationId: recompileQuery
      summary: 'Recompile: accept a new answer shape or a new tool (same id)'
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                example:
                  type: object
                  additionalProperties:
                    type: string
      responses:
        '200':
          description: The saved query
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.unbrowse.ai
      description: Unbrowse
  /api/v1/q/{queryId}:
    get:
      tags:
      - Saved queries
      operationId: callQuery
      summary: 'Call a saved query: its params as the query string'
      description: 'Answers { status, result, verified, cached, age?, runId }. 409 `schema_changed` when the answer lost fields it had when compiled, 409 `stale` when its tool is gone: recompile. `fresh=1` skips the cache.'
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      - name: fresh
        in: query
        required: false
        schema:
          type: string
          enum:
          - '1'
      responses:
        '200':
          description: The answer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '202':
          description: The run needs input (input_required)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    post:
      tags:
      - Saved queries
      operationId: callQueryPost
      summary: 'Call a saved query: its params as a JSON body'
      parameters:
      - name: queryId
        in: path
        required: true
        schema:
          type: string
          pattern: ^q_[A-Za-z0-9_-]{6,40}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
      responses:
        '200':
          description: The answer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '202':
          description: The run needs input (input_required)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Object'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
    servers:
    - url: https://api.unbrowse.ai
      description: Unbrowse
components:
  schemas:
    Object:
      type: object
      additionalProperties: true
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
          additionalProperties: true
      additionalProperties: true
  responses:
    Unauthorized:
      description: Missing or invalid credentials. The WWW-Authenticate header names the protected-resource metadata.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error:
      description: An error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      description: 'Authorization code with PKCE (S256). Clients may register dynamically at /oauth/register. Discovery: /.well-known/oauth-authorization-server; the REST API''s protected-resource metadata is /.well-known/oauth-protected-resource/api.'
      flows:
        authorizationCode:
          authorizationUrl: https://api.unbrowse.ai/authorize
          tokenUrl: https://api.unbrowse.ai/oauth/token
          refreshUrl: https://api.unbrowse.ai/oauth/token
          scopes:
            unbrowse: Run tasks and read results on the user's behalf, with their kept logins.
    apiKey:
      type: http
      scheme: bearer
      description: An Unbrowse API key (create one in the console at https://unbrowse.ai/app).
externalDocs:
  description: Docs
  url: https://docs.unbrowse.ai
x-refined-from:
- unbrowse-ai-openapi.json
- unbrowse-ai-openapi2.json