Okareo Analytics API

Query analytics metadata and run analytics queries.

Operations 4

GET /v0/analytics/meta Get Analytics Meta #
GET /v0/analytics/dimension-values Get Analytics Dimension Values #
GET /v0/analytics/trace-attribute-keys Get Analytics Trace Attribute Keys #
POST /v0/analytics/query Post Analytics 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/okareo:okareo-analytics-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

okareo-analytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Okareo Analytics API
  version: 0.1.0
  description: Query analytics metadata and run analytics queries.
servers:
- url: https://api.okareo.com
tags:
- name: Analytics
  description: Query analytics metadata and run analytics queries.
paths:
  /v0/analytics/meta:
    get:
      tags:
      - Analytics
      summary: Get Analytics Meta
      operationId: get_analytics_meta_v0_analytics_meta_get
      parameters:
      - name: project_id
        in: query
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsMetaResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v0/analytics/dimension-values:
    get:
      tags:
      - Analytics
      summary: Get Analytics Dimension Values
      operationId: get_analytics_dimension_values_v0_analytics_dimension_values_get
      parameters:
      - name: cube
        in: query
        required: true
        schema:
          type: string
          title: Cube
      - name: member
        in: query
        required: true
        schema:
          type: string
          title: Member
      - name: project_id
        in: query
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsDimensionValuesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v0/analytics/trace-attribute-keys:
    get:
      tags:
      - Analytics
      summary: Get Analytics Trace Attribute Keys
      operationId: get_analytics_trace_attribute_keys_v0_analytics_trace_attribute_keys_get
      parameters:
      - name: namespace
        in: query
        required: true
        schema:
          type: string
          title: Namespace
      - name: project_id
        in: query
        required: true
        schema:
          type: string
          format: uuid
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsTraceKeysResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v0/analytics/query:
    post:
      tags:
      - Analytics
      summary: Post Analytics Query
      operationId: post_analytics_query_v0_analytics_query_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AnalyticsQueryRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnalyticsQueryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AnalyticsFilter:
      properties:
        member:
          type: string
          title: Member
        operator:
          $ref: '#/components/schemas/ComparisonOperator'
          default: equal
        values:
          items:
            anyOf:
            - type: string
            - type: string
              format: uuid
          type: array
          title: Values
      type: object
      required:
      - member
      title: AnalyticsFilter
    MeasureMetaResponse:
      properties:
        name:
          type: string
          title: Name
        title:
          type: string
          title: Title
      type: object
      required:
      - name
      - title
      title: MeasureMetaResponse
    ComparisonOperator:
      type: string
      enum:
      - equal
      - not_equal
      - contains
      - not_contains
      - greater_than
      - greater_than_or_equal
      - less_than
      - less_than_or_equal
      - is_set
      - not_set
      title: ComparisonOperator
    CubeMeta:
      properties:
        measures:
          items:
            $ref: '#/components/schemas/MeasureMetaResponse'
          type: array
          title: Measures
        dimensions:
          items:
            $ref: '#/components/schemas/DimensionMetaResponse'
          type: array
          title: Dimensions
        time_dimensions:
          items:
            type: string
          type: array
          title: Time Dimensions
        granularities:
          items:
            type: string
          type: array
          title: Granularities
        segments:
          items:
            $ref: '#/components/schemas/SegmentMetaResponse'
          type: array
          title: Segments
      type: object
      required:
      - measures
      - dimensions
      - time_dimensions
      - granularities
      title: CubeMeta
    AnalyticsQueryResponse:
      properties:
        data:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Data
      type: object
      required:
      - data
      title: AnalyticsQueryResponse
    AnalyticsTraceKeysResponse:
      properties:
        namespace:
          type: string
          title: Namespace
        keys:
          items:
            type: string
          type: array
          title: Keys
      type: object
      required:
      - namespace
      title: AnalyticsTraceKeysResponse
    AnalyticsQueryRequest:
      properties:
        cube:
          type: string
          title: Cube
          default: check_trend
        project_id:
          type: string
          format: uuid
          title: Project Id
        measures:
          items:
            type: string
          type: array
          title: Measures
        dimensions:
          items:
            type: string
          type: array
          title: Dimensions
        filters:
          items:
            anyOf:
            - $ref: '#/components/schemas/AnalyticsFilter'
            - $ref: '#/components/schemas/AnalyticsFilterGroup-Input'
          type: array
          title: Filters
        segments:
          items:
            type: string
          type: array
          title: Segments
        time_dimensions:
          items:
            $ref: '#/components/schemas/TimeDimension'
          type: array
          title: Time Dimensions
        time_range:
          anyOf:
          - type: string
          - type: 'null'
          title: Time Range
        order:
          additionalProperties:
            type: string
            enum:
            - asc
            - desc
          type: object
          title: Order
      type: object
      required:
      - project_id
      - measures
      title: AnalyticsQueryRequest
    DimensionMetaResponse:
      properties:
        name:
          type: string
          title: Name
        title:
          type: string
          title: Title
        type:
          type: string
          title: Type
        values:
          items:
            type: string
          type: array
          title: Values
      type: object
      required:
      - name
      - title
      - type
      title: DimensionMetaResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    AnalyticsDimensionValuesResponse:
      properties:
        cube:
          type: string
          title: Cube
        member:
          type: string
          title: Member
        values:
          items:
            type: string
          type: array
          title: Values
      type: object
      required:
      - cube
      - member
      title: AnalyticsDimensionValuesResponse
    AnalyticsFilterGroup-Input:
      properties:
        op:
          type: string
          enum:
          - and
          - or
          title: Op
        filters:
          items:
            anyOf:
            - $ref: '#/components/schemas/AnalyticsFilter'
            - $ref: '#/components/schemas/AnalyticsFilterGroup-Input'
          type: array
          minItems: 1
          title: Filters
      type: object
      required:
      - op
      - filters
      title: AnalyticsFilterGroup
    SegmentMetaResponse:
      properties:
        name:
          type: string
          title: Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        implies:
          items:
            type: string
          type: array
          title: Implies
        incompatible_with:
          items:
            type: string
          type: array
          title: Incompatible With
      type: object
      required:
      - name
      - title
      - description
      title: SegmentMetaResponse
    AnalyticsMetaResponse:
      properties:
        cubes:
          additionalProperties:
            $ref: '#/components/schemas/CubeMeta'
          type: object
          title: Cubes
      type: object
      required:
      - cubes
      title: AnalyticsMetaResponse
    TimeDimension:
      properties:
        dimension:
          type: string
          title: Dimension
        date_range:
          anyOf:
          - items:
              type: string
            type: array
            maxItems: 2
            minItems: 2
          - type: 'null'
          title: Date Range
        granularity:
          anyOf:
          - type: string
          - type: 'null'
          title: Granularity
      type: object
      required:
      - dimension
      title: TimeDimension