APIToolkit (Monoscope) Metrics API

Query timeseries and aggregate metric data.

Operations 1

GET /metrics Query Metrics #

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/apitoolkit-metrics-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

apitoolkit-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Monoscope Platform Metrics API
  version: 1.0.0
  description: 'The Monoscope (formerly APIToolkit) Platform REST API lets you

    programmatically query metrics, retrieve telemetry schemas, and manage

    monitors for your projects. Endpoints and shapes here mirror the public

    API reference at https://monoscope.tech/docs/api-reference/. Authentication

    is via project-scoped Bearer API keys.

    '
  contact:
    name: Monoscope
    url: https://monoscope.tech/
    email: hello@monoscope.tech
  license:
    name: AGPL-3.0 (community edition) / Commercial
    identifier: AGPL-3.0-only
servers:
- url: https://api.monoscope.tech/api/v1
  description: Monoscope Cloud production API
security:
- bearerAuth: []
tags:
- name: Metrics
  description: Query timeseries and aggregate metric data.
paths:
  /metrics:
    get:
      tags:
      - Metrics
      summary: Query Metrics
      description: 'Query metrics for a project using either a predefined metric query

        expression or raw SQL. Supports relative (`since`) or absolute

        (`from`/`to`) time ranges, and a `source` filter for `http`, `logs`,

        or `traces` data.

        '
      operationId: queryMetrics
      parameters:
      - $ref: '#/components/parameters/ProjectId'
      - name: data_type
        in: query
        description: Category of metric information to return.
        schema:
          type: string
          enum:
          - timeseries
          - aggregate
      - name: query
        in: query
        description: Predefined metric query expression.
        schema:
          type: string
      - name: query_sql
        in: query
        description: Advanced querying using raw SQL syntax.
        schema:
          type: string
      - name: since
        in: query
        description: Relative time specification (e.g. `1h`, `24h`, `7d`).
        schema:
          type: string
      - name: from
        in: query
        description: Beginning point for absolute time range (ISO 8601).
        schema:
          type: string
          format: date-time
      - name: to
        in: query
        description: Ending point for absolute time range (ISO 8601).
        schema:
          type: string
          format: date-time
      - name: source
        in: query
        description: Metric origin filter.
        schema:
          type: string
          enum:
          - http
          - logs
          - traces
      responses:
        '200':
          description: Metric series and metadata.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetricsResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        request_id:
          type: string
    MetricsMetadata:
      type: object
      properties:
        query:
          type: string
        from:
          type: string
          format: date-time
        to:
          type: string
          format: date-time
        resolution:
          type: string
    MetricPoint:
      type: object
      required:
      - timestamp
      - value
      properties:
        timestamp:
          type: string
          format: date-time
        value:
          type: number
        labels:
          type: object
          additionalProperties:
            type: string
    MetricsResponse:
      type: object
      required:
      - series
      - metadata
      properties:
        series:
          type: array
          items:
            $ref: '#/components/schemas/MetricPoint'
        metadata:
          $ref: '#/components/schemas/MetricsMetadata'
  parameters:
    ProjectId:
      name: pid
      in: query
      required: true
      description: Project ID (UUID) to scope the request.
      schema:
        type: string
        format: uuid
  responses:
    RateLimited:
      description: Rate limit exceeded for this API key.
      headers:
        X-RateLimit-Limit:
          schema:
            type: integer
        X-RateLimit-Remaining:
          schema:
            type: integer
        X-RateLimit-Reset:
          schema:
            type: integer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid Bearer API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Project-scoped Bearer API key. Create via Settings > API Keys in the

        Monoscope dashboard; keys are shown once and are scoped to a single

        project.

        '