> ## Documentation Index
> Fetch the complete documentation index at: https://webscraping.titannet.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom analytics query



## OpenAPI

````yaml /openapi/analytics.yaml post /api/v1/analytics/query
openapi: 3.0.3
info:
  title: Titan Analytics API
  description: Read-only usage summaries, series, execution metrics, and custom queries.
  version: '1.0'
servers:
  - url: https://api.webscraping.titannet.io
    description: Production
security: []
tags:
  - name: Summary & series
  - name: Realtime & timeseries
  - name: Executions
  - name: Tasks
  - name: Query
paths:
  /api/v1/analytics/query:
    post:
      tags:
        - Query
      summary: Custom analytics query
      operationId: postAnalyticsQuery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessEnvelope'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    QueryRequest:
      type: object
      required:
        - metrics
      properties:
        metrics:
          type: array
          items:
            type: string
        group_by:
          type: array
          items:
            type: string
        filters:
          type: array
          items:
            type: object
            properties:
              field:
                type: string
              operator:
                type: string
              value: {}
        time_range:
          type: object
          properties:
            start_time:
              type: string
            end_time:
              type: string
    SuccessEnvelope:
      type: object
      properties:
        success:
          type: boolean
        data: {}
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````