Raygun Metrics API

Query time-series and histogram metrics for page performance and error rates with flexible bucket, range, and filter parameters. Powers custom dashboards and external observability exports.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Observability Management BC-4220.20

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /metrics/{application-identifier}/pages/time-series Get time-series metrics for pages · Time-series Page Metrics #
Ask an LLM
“How has my page load time changed over a date range?”
“Can I get page metrics as a time series at a chosen granularity?”
Tell an agent
Get {aggregation} {metrics} for pages in {application} from {start} to {end} at {granularity}.
Chart page {metrics} for {application} between {start} and {end} as {aggregation} at {granularity}.
POST /metrics/{application-identifier}/pages/histogram Get histogram metrics for pages · Histogram Page Metrics #
Ask an LLM
“Can I see how page metrics are distributed across buckets?”
“What histogram data is available for pages in my app?”
Tell an agent
Get histogram {metrics} for pages in {application} from {start} to {end}.
Bucket page {metrics} for {application} between {start} and {end}.
POST /metrics/{application-identifier}/errors/time-series Get time-series metrics for errors · Time-series Error Metrics #
Ask an LLM
“How do error counts trend over time for my app?”
“Can I get error metrics as a time series at a chosen granularity?”
Tell an agent
Get {aggregation} {metrics} for errors in {application} from {start} to {end} at {granularity}.
Chart error {metrics} for {application} between {start} and {end} as {aggregation} at {granularity}.

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/raygun:raygun-metrics-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

raygun-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Raygun Metrics API
  version: '3.0'
  description: 'This is a visual representation of the Raygun API V3 specification.

    To find out more details and how to get started, you can head over to the documentation.'
  contact:
    name: Raygun Support
    email: support@raygun.com
servers:
- url: https://api.raygun.com/v3
  description: ''
security:
- personal_access_token: []
tags:
- name: Metrics
paths:
  /metrics/{application-identifier}/pages/time-series:
    parameters:
    - $ref: '#/components/parameters/application-identifier'
    post:
      summary: Time-series Page Metrics
      operationId: metrics-pages-time-series
      responses:
        '200':
          $ref: '#/components/responses/metrics-time-series'
        '400':
          $ref: '#/components/responses/problem-details'
        '401':
          $ref: '#/components/responses/problem-details'
        '403':
          $ref: '#/components/responses/problem-details'
        '404':
          $ref: '#/components/responses/problem-details'
        '422':
          $ref: '#/components/responses/validation-problem-details'
        '429':
          description: Too Many Requests
      description: Returns aggregated time-series metrics data for pages
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                start:
                  type: string
                  format: date-time
                end:
                  type: string
                  format: date-time
                granularity:
                  type: string
                  example: 1h
                  pattern: ^\d+[mhd]$
                aggregation:
                  type: string
                  enum:
                  - count
                  - average
                  - median
                  - sum
                  - min
                  - max
                  - p95
                  - p99
                metrics:
                  type: array
                  items:
                    type: string
                    enum:
                    - pageViews
                    - loadTime
                    - firstPaint
                    - firstContentfulPaint
                    - firstInputDelay
                    - largestContentfulPaint
                    - cumulativeLayoutShift
                    - interactionToNextPaint
                filter:
                  type: string
                  example: pageIdentifier = abc123
                  description: 'Filters the result based on an expression. Format: "pageIdentifier = abc123" or "pageIdentifier IN (abc123, def456)"'
              required:
              - start
              - end
              - granularity
              - aggregation
              - metrics
      security:
      - personal_access_token:
        - metrics:pages
      tags:
      - Metrics
  /metrics/{application-identifier}/pages/histogram:
    parameters:
    - $ref: '#/components/parameters/application-identifier'
    post:
      summary: Histogram Page Metrics
      operationId: metrics-pages-histogram
      responses:
        '200':
          $ref: '#/components/responses/metrics-histogram'
        '400':
          $ref: '#/components/responses/problem-details'
        '401':
          $ref: '#/components/responses/problem-details'
        '403':
          $ref: '#/components/responses/problem-details'
        '404':
          $ref: '#/components/responses/problem-details'
        '422':
          $ref: '#/components/responses/validation-problem-details'
        '429':
          description: Too Many Requests
      description: Returns pre-bucketed histogram metrics data for pages
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                start:
                  type: string
                  format: date-time
                end:
                  type: string
                  format: date-time
                metrics:
                  type: array
                  items:
                    type: string
                    enum:
                    - loadTime
                    - firstPaint
                    - firstContentfulPaint
                    - firstInputDelay
                    - largestContentfulPaint
                    - cumulativeLayoutShift
                    - interactionToNextPaint
                filter:
                  type: string
                  example: pageIdentifier = abc123
                  description: 'Filters the result based on an expression. Format: "pageIdentifier = abc123" or "pageIdentifier IN (abc123, def456)"'
              required:
              - start
              - end
              - metrics
            examples:
              Request single metric:
                value:
                  start: '2019-07-24T14:15:22Z'
                  end: '2019-08-24T14:15:22Z'
                  metrics:
                  - loadTime
              Request multiple metrics:
                value:
                  start: '2019-07-24T14:15:22Z'
                  end: '2019-08-24T14:15:22Z'
                  metrics:
                  - loadTime
                  - firstPaint
              Filter on single page:
                value:
                  start: '2019-07-24T14:15:22Z'
                  end: '2019-08-24T14:15:22Z'
                  metrics:
                  - loadTime
                  filter: pageIdentifier = abc123
              Filter on multiple pages:
                value:
                  start: '2019-07-24T14:15:22Z'
                  end: '2019-08-24T14:15:22Z'
                  metrics:
                  - loadTime
                  filter: pageIdentifier IN (abc123, def456)
      security:
      - personal_access_token:
        - metrics:pages
      tags:
      - Metrics
  /metrics/{application-identifier}/errors/time-series:
    parameters:
    - $ref: '#/components/parameters/application-identifier'
    post:
      summary: Time-series Error Metrics
      operationId: metrics-errors-time-series
      responses:
        '200':
          $ref: '#/components/responses/metrics-time-series'
        '400':
          $ref: '#/components/responses/problem-details'
        '401':
          $ref: '#/components/responses/problem-details'
        '403':
          $ref: '#/components/responses/problem-details'
        '404':
          $ref: '#/components/responses/problem-details'
        '422':
          $ref: '#/components/responses/validation-problem-details'
        '429':
          description: Too Many Requests
      description: Returns aggregated time-series metrics data for errors
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                start:
                  type: string
                  format: date-time
                end:
                  type: string
                  format: date-time
                granularity:
                  type: string
                  example: 1h
                  pattern: ^\d+[mhd]$
                aggregation:
                  type: string
                  enum:
                  - count
                metrics:
                  type: array
                  items:
                    type: string
                    enum:
                    - errorInstances
                filter:
                  type: string
                  example: errorGroupIdentifier IN (abc123, def456)
                  description: 'Filters the result based on an expression. Format: "errorGroupIdentifier = abc123" or "errorGroupIdentifier IN (abc123, def456)"'
              required:
              - start
              - end
              - granularity
              - aggregation
              - metrics
      security:
      - personal_access_token:
        - metrics:errors
      tags:
      - Metrics
components:
  responses:
    problem-details:
      description: Problem Details
      content:
        application/json:
          schema:
            type: object
            properties:
              type:
                type: string
              title:
                type: string
              detail:
                type: string
              status:
                type: integer
              traceId:
                type: string
            required:
            - type
            - title
            - status
            - traceId
      headers:
        X-Raygun-RequestId:
          schema:
            type: string
          description: The id associated with this request
    metrics-histogram:
      description: Histogram metrics
      content:
        application/json:
          schema:
            type: array
            items:
              type: object
              properties:
                metric:
                  type: string
                buckets:
                  type: array
                  items:
                    type: object
                    properties:
                      key:
                        type: number
                        description: Lower bound of the bucket.
                      range:
                        type: string
                        description: 'Inclusive lower bound and exclusive upperbound of the bucket. Format: {lower-bound} - {upper-bound}.'
                      count:
                        type: integer
                        description: Number of events that fall in the bucket.
                    required:
                    - key
                    - range
                    - count
              required:
              - metric
              - buckets
          examples:
            Single-metric example:
              value:
              - metric: loadTime
                buckets:
                - key: 100
                  range: 100 - 200
                  count: 4000
                - key: 200
                  range: 200 - 300
                  count: 5000
            Multi-metric example:
              value:
              - metric: loadTime
                buckets:
                - key: 100
                  range: 100 - 200
                  count: 4000
              - metric: firstPaint
                buckets:
                - key: 80.5
                  range: 80.5 - 120.5
                  count: 300
    validation-problem-details:
      description: Validation problem details
      content:
        application/json:
          schema:
            type: object
            properties:
              type:
                type: string
              title:
                type: string
              detail:
                type: string
              status:
                type: integer
              traceId:
                type: string
              errors:
                type: object
                additionalProperties:
                  type: array
                  items:
                    type: string
            required:
            - type
            - title
            - status
            - traceId
            - errors
      headers:
        X-Raygun-RequestId:
          schema:
            type: string
          description: The id associated with this request
    metrics-time-series:
      description: Time-series metrics
      content:
        application/json:
          schema:
            type: array
            items:
              type: object
              properties:
                aggregation:
                  type: string
                metric:
                  type: string
                series:
                  type: array
                  items:
                    type: object
                    properties:
                      time:
                        type: string
                        format: date-time
                      value:
                        type: number
                        format: double
  parameters:
    application-identifier:
      name: application-identifier
      in: path
      required: true
      schema:
        type: string
      description: Application identifier
  securitySchemes:
    personal_access_token:
      type: http
      scheme: bearer
      description: 'Personal Access Token authorization using the Bearer scheme. Example: `Authorization: Bearer {token}`'
x-provenance:
  method: harvested
  publisher: Raygun
  source: https://api.raygun.io/v3/raygun-openapi-spec.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)