BRICK Schema Raw Queries API

The Raw Queries API from BRICK Schema — 2 operation(s) for raw queries.

Operations 2

POST /brickapi/v1/rawqueries/timeseries Post #
POST /brickapi/v1/rawqueries/sparql Post #

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/brick-raw-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

brick-raw-queries-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Brick Server Raw Queries API
  version: 0.1.0
tags:
- name: Raw Queries
paths:
  /brickapi/v1/rawqueries/timeseries:
    post:
      tags:
      - Raw Queries
      summary: Post
      description: Raw PostgreSQL query for timeseries. (May not be exposed in the production deployment.)
      operationId: post_brickapi_v1_rawqueries_timeseries_post
      requestBody:
        content:
          application/sql:
            schema:
              title: Query
              type: string
              description: A raw SQL query for timeseries data. The table consist of the columns as in `value_types`.
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
  /brickapi/v1/rawqueries/sparql:
    post:
      tags:
      - Raw Queries
      summary: Post
      description: Raw SPARQL for Brick metadata. (May not be exposed in the production deployment.
      operationId: post_brickapi_v1_rawqueries_sparql_post
      requestBody:
        content:
          application/sparql-query:
            schema:
              title: Query
              type: string
              description: A raw SPARQL query.
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                title: Response Post Brickapi V1 Rawqueries Sparql Post
                type: object
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
      - HTTPBearer: []
components:
  schemas:
    ValidationError:
      title: ValidationError
      required:
      - loc
      - msg
      - type
      type: object
      properties:
        loc:
          title: Location
          type: array
          items:
            type: string
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      bearerFormat: JWT