---
title: "Get Web Vitals page breakdown REST API | HitKeep"
description: "Reference for the HitKeep REST API operation Get Web Vitals page breakdown, including request parameters, responses, and authentication notes."
canonical: "https://hitkeep.com/api/operations/apisitesidweb-vitalspages/"
---

# Get Web Vitals page breakdown REST API

GET

/api/sites/{id}/web-vitals/pages

FetchcURL

```
const url = 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/web-vitals/pages?rating=good&metric=LCP';
const options = {method: 'GET', headers: {cookie: 'hk_token=<hk_token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```
curl --request GET \
  --url 'http://127.0.0.1:25737/api/sites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/web-vitals/pages?rating=good&metric=LCP' \
  --cookie hk_token=<hk_token>
```

-

Returns page paths ranked by the selected metric p75, with per-metric p75 cells for every Web Vital available on each path.

## Authorizations

- **[cookieAuth](https://hitkeep.com/api/#cookieauth)**
- **[bearerAuth](https://hitkeep.com/api/#bearerauth)**
- **[apiKeyAuth](https://hitkeep.com/api/#apikeyauth)**

## Parameters

### Path Parameters

**id**

required

string format: uuid

### Query Parameters

**from**

string format: date-time

**to**

string format: date-time

**path**

string

Exact normalized page path.

**rating**

string

Allowed values: good needs_improvement poor

Web Vital threshold rating.

**metric**

required

string

Allowed values: LCP INP CLS FCP TTFB

Web Vital metric.

**limit**

integer

>= 1 <= 100

## Responses

### 200

Web Vitals pages

application/json

Array<object>

object

**good**

integer

**metrics**

object

***key***

additional properties

object

**good**

integer

**needs_improvement**

integer

**p75**

number

**poor**

integer

**rating**

string

Allowed values: good needs_improvement poor

**samples**

integer

**needs_improvement**

integer

**p75**

number

**path**

string

**poor**

integer

**rating**

string

Allowed values: good needs_improvement poor

**samples**

integer

##### Example

```
[
  {
    "metrics": {
      "additionalProperty": {
        "rating": "good"
      }
    },
    "rating": "good"
  }
]
```

[Previous Get Web Vitals visitor context breakdown](https://hitkeep.com/api/operations/apisitesidweb-vitalsbreakdown/)[Next Get Web Vitals summary](https://hitkeep.com/api/operations/apisitesidweb-vitalssummary/)
