# SpeedCurve

> Read SpeedCurve monitored sites, URLs, and synthetic performance-test history.

App · 3 actions. Web page: https://docs.lodol.com/docs/integrations/speedcurve

## Actions

### Get URL tests

Read one page of synthetic test history for a monitored URL. Set per_page to enable pagination.

**Inputs**

- URL ID (`url_id`, number, required): URL ID from List URLs. At least 1.
- Days (`days`, number): Days of test history to return (maximum 365). From 1 to 365.
- Per page (`per_page`, number): Maximum number of records in this page. From 1 to 100.
- Page (`page`, number): Page to read. Request subsequent pages explicitly. At least 1.
- Browser (`browser`, text): Optional browser ID.
- Region (`region`, text): Optional region ID.

**Outputs**

- `data` (object): The response from SpeedCurve.

**Example output**

```json
{
  "data": {
    "site_id": 1,
    "site_name": "Example website",
    "tests": [
      {
        "browser": "Chrome",
        "cumulative_layout_shift": 0.02,
        "largest_contentful_paint": 752,
        "test_id": "example-test",
        "timestamp": 1782900000
      }
    ],
    "url": "https://example.com",
    "url_id": 10
  }
}
```

### List sites

Read the team site inventory without requesting median-test aggregation.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpeedCurve.

**Example output**

```json
{
  "data": {
    "sites": [
      {
        "checks_scheduled": 10,
        "name": "Example website",
        "site_id": 1,
        "urls": [
          {
            "url": "https://example.com",
            "url_id": 10
          }
        ]
      }
    ]
  }
}
```

### List URLs

Read monitored URLs grouped by site and their available latest-test summaries.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpeedCurve.

**Example output**

```json
{
  "data": {
    "sites": [
      {
        "name": "Example website",
        "site_id": 1,
        "urls": [
          {
            "label": "Homepage",
            "url": "https://example.com",
            "url_id": 10
          }
        ]
      }
    ]
  }
}
```
