bugsnag Trends API

Access trend data for errors and projects. Trends provide time-series data showing how error rates and stability change over time.

Operations 2

GET /projects/{project_id}/errors/{error_id}/trend Get error trend #
GET /projects/{project_id}/trend Get project trend #

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/bugsnag-trends-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

bugsnag-trends-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Bugsnag Data Access Trends API
  description: The Bugsnag Data Access API provides programmatic access to information about your organization, projects, errors, events, and more. It allows developers to build custom integrations and dashboards using their Bugsnag data. The REST API uses JSON and requires authentication via a personal auth token sent in the Authorization header. It supports querying error trends, project configurations, collaborators, and release information.
  version: '2.0'
  contact:
    name: Bugsnag Support
    url: https://docs.bugsnag.com/api/data-access/
  termsOfService: https://smartbear.com/terms-of-use/
servers:
- url: https://api.bugsnag.com
  description: Bugsnag Production API Server
security:
- tokenAuth: []
tags:
- name: Trends
  description: Access trend data for errors and projects. Trends provide time-series data showing how error rates and stability change over time.
paths:
  /projects/{project_id}/errors/{error_id}/trend:
    get:
      operationId: getErrorTrend
      summary: Get error trend
      description: Returns time-series trend data for a specific error, showing how the error frequency changes over time.
      tags:
      - Trends
      parameters:
      - $ref: '#/components/parameters/ProjectId'
      - $ref: '#/components/parameters/ErrorId'
      - name: buckets_count
        in: query
        description: The number of time buckets to return in the trend data.
        schema:
          type: integer
          minimum: 1
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trend'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /projects/{project_id}/trend:
    get:
      operationId: getProjectTrend
      summary: Get project trend
      description: Returns time-series trend data for a project, showing the overall error rate and resolution trends over time.
      tags:
      - Trends
      parameters:
      - $ref: '#/components/parameters/ProjectId'
      - name: buckets_count
        in: query
        description: The number of time buckets to return in the trend data.
        schema:
          type: integer
          minimum: 1
      - name: resolution
        in: query
        description: The time resolution for each bucket in the trend data.
        schema:
          type: string
          enum:
          - 1h
          - 1d
          - 1w
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Trend'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Project not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  parameters:
    ErrorId:
      name: error_id
      in: path
      required: true
      description: The unique identifier of the error.
      schema:
        type: string
    ProjectId:
      name: project_id
      in: path
      required: true
      description: The unique identifier of the project.
      schema:
        type: string
  schemas:
    Error:
      type: object
      description: An API error response.
      properties:
        errors:
          type: array
          items:
            type: string
          description: List of error messages.
    Trend:
      type: object
      description: Represents time-series trend data for errors or projects.
      properties:
        buckets:
          type: array
          description: The time-series data buckets.
          items:
            type: object
            properties:
              start:
                type: string
                format: date-time
                description: The start time of the bucket.
              end:
                type: string
                format: date-time
                description: The end time of the bucket.
              events_count:
                type: integer
                description: The number of events in this bucket.
  securitySchemes:
    tokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Personal auth token sent as "token YOUR-AUTH-TOKEN". The token can be found in the Bugsnag account settings under the API section.
externalDocs:
  description: Bugsnag Data Access API Documentation
  url: https://docs.bugsnag.com/api/data-access/