PopSQL Query Runs API

The Query Runs API from PopSQL — 1 operation(s) for query runs.

Operations 1

POST /queries/{query_id}/runs Run a query #

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/popsql:popsql-query-runs-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

popsql-query-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PopSQL Query Runs API
  version: 1.2.0
servers:
- url: https://api.popsql.com/v1
tags:
- name: Query Runs
paths:
  /queries/{query_id}/runs:
    post:
      summary: Run a query
      tags:
      - Query Runs
      description: '- You must own or have permissions to the query to run it.

        - Enforces a 10 second query timeout limit.'
      parameters:
      - in: path
        name: query_id
        schema:
          type: string
        required: true
        example: -N1LP3WvU0UwEWR9_oL_
        description: 'You can find the query''s ID by navigating to the query in the PopSQL app, opening the share modal, and copying the share link. The link will look like: `https://app.popsql.com/queries/<query_id>/<query name>`'
      requestBody:
        description: If your query uses variables, you can pass them as key-value pairs in a JSON object as the `variables` field in the request body.
        content:
          application/json:
            schema:
              type: object
              properties:
                variables:
                  type: object
                  description: Key-value pairs of variable names and values.
                  additionalProperties: true
                  example:
                    your_variable_name: your_variable_value
            examples:
              basic:
                summary: An example using variables
                value:
                  variables:
                    your_variable_name: your_variable_value
      security:
      - bearerAuth: []
      responses:
        '200':
          description: Successful Run
          content:
            application/json:
              example:
                error: null
                fields:
                - name: id
                - name: name
                - name: country_code
                - name: district
                - name: population
                row_count: 1
                rows:
                - id: 1
                  name: Kabul
                  country_code: AFG
                  district: Kabol
                  population: 1780000
      operationId: postQueriesByQueryIdRuns
      x-operation-id-source: derived
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
x-provenance:
  method: searched
  source: https://docs.popsql.com/reference
  harvested: '2026-10-29'
  tool: harvest-readme-openapi.py
  note: Assembled verbatim from the OpenAPI definition ReadMe embeds in each operation page of the provider's developer portal; paths and components merged by API title, nothing authored.
  assembled_from:
  - https://docs.popsql.com/reference/get_connections-connection-id-catalog-columns.md
  - https://docs.popsql.com/reference/get_connections-connection-id-catalog-tables.md
  - https://docs.popsql.com/reference/get_connections-connection-id-catalog.md
  - https://docs.popsql.com/reference/get_connections-connection-id-databases-database-name-catalog.md
  - https://docs.popsql.com/reference/get_connections-connection-id-databases-database-name-schemas-schema-name-catalog.md
  - https://docs.popsql.com/reference/get_connections-connection-id-databases-database-name-schemas-schema-name-tables-table-name-catalog.md
  - https://docs.popsql.com/reference/get_connections-connection-id-databases-database-name-schemas-schema-name-tables-table-name-columns-column-name-catalog.md
  - https://docs.popsql.com/reference/patch_connections-connection-id-catalog.md
  - https://docs.popsql.com/reference/patch_connections-connection-id-databases-database-name-catalog.md
  - https://docs.popsql.com/reference/patch_connections-connection-id-databases-database-name-schemas-schema-name-catalog.md
  - https://docs.popsql.com/reference/patch_connections-connection-id-databases-database-name-schemas-schema-name-tables-table-name-catalog.md
  - https://docs.popsql.com/reference/patch_connections-connection-id-databases-database-name-schemas-schema-name-tables-table-name-columns-column-name-catalog.md
  - https://docs.popsql.com/reference/post_queries-query-id-runs.md
  merge:
    pages: 13
    deduped: 51
    conflicts_kept_first: 0