Skip to Content
OpenPerf

Performance

Get frontend performance overview

GET
/api/v1/performance/frontend/overview

Returns Web Vitals and page-load performance metrics for frontend projects.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Query Parameters

from*string
Formatdate-time
to*string
Formatdate-time
projectIds?array<string>
environment?array<string>
buckets?integer
Range10 <= value <= 400
Default48

Response Body

application/json
  1. response
score*
pageLoad*
failures*
users*
vitals*
pagesToFix*array<>
pages*array<>
Example Request
curl -X GET 'https://api.example.com/api/v1/performance/frontend/overview?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z'
Example Response
{
  "score": {
    "unit": "count",
    "value": 0,
    "previous": 0,
    "health": "normal",
    "buckets": [
      {
        "timestamp": "2019-08-24T14:15:22Z",
        "value": 0,
        "previous": 0,
        "health": "normal"
      }
    ]
  },
  "pageLoad": {
    "unit": "count",
    "value": 0,
    "previous": 0,
    "health": "normal",
    "buckets": [
      {
        "timestamp": "2019-08-24T14:15:22Z",
        "value": 0,
        "previous": 0,
        "health": "normal"
      }
    ]
  },
  "failures": {
    "unit": "count",
    "value": 0,
    "previous": 0,
    "health": "normal",
    "buckets": [
      {
        "timestamp": "2019-08-24T14:15:22Z",
        "value": 0,
        "previous": 0,
        "health": "normal"
      }
    ]
  },
  "users": {
    "unit": "count",
    "value": 0,
    "previous": 0,
    "health": "normal",
    "buckets": [
      {
        "timestamp": "2019-08-24T14:15:22Z",
        "value": 0,
        "previous": 0,
        "health": "normal"
      }
    ]
  },
  "vitals": {
    "lcp": {
      "p75": 0,
      "count": 0,
      "good": 0,
      "needsImprovement": 0,
      "poor": 0
    },
    "fcp": {
      "p75": 0,
      "count": 0,
      "good": 0,
      "needsImprovement": 0,
      "poor": 0
    },
    "cls": {
      "p75": 0,
      "count": 0,
      "good": 0,
      "needsImprovement": 0,
      "poor": 0
    },
    "inp": {
      "p75": 0,
      "count": 0,
      "good": 0,
      "needsImprovement": 0,
      "poor": 0
    },
    "ttfb": {
      "p75": 0,
      "count": 0,
      "good": 0,
      "needsImprovement": 0,
      "poor": 0
    }
  },
  "pagesToFix": [
    {
      "transaction": "string",
      "pageViews": 0,
      "lastSeenAt": "2019-08-24T14:15:22Z",
      "vitals": {
        "lcp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "fcp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "cls": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "inp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "ttfb": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        }
      },
      "score": 0,
      "health": "normal"
    }
  ],
  "pages": [
    {
      "transaction": "string",
      "pageViews": 0,
      "lastSeenAt": "2019-08-24T14:15:22Z",
      "vitals": {
        "lcp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "fcp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "cls": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "inp": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        },
        "ttfb": {
          "p75": 0,
          "count": 0,
          "good": 0,
          "needsImprovement": 0,
          "poor": 0
        }
      },
      "score": 0
    }
  ]
}