v1

latestOpenAPI 3.1.02026-07-2637098.0 KB

Get all tests

Retrieves all tests for date range

get/tests

Query parameters

start_timestampinteger required

Epoch Unix Timestamp (seconds), maximum 12 months ago

end_timestampinteger

Epoch Unix Timestamp (seconds), maximum 12 months ago, default now

site_idinteger

Site ID

url_idinteger

URL ID

pagelabelstring

URL page label (e.g. "Home")

regionstring

Test location ID (e.g. "us-west-1")

browserstring

Browser name

statusinteger

Test status: Queued = -2; Failed = -1; Succeeded = 0;

pageinteger

Page number

per_pageinteger

Number of tests per request, maximum 100

Response

200

Example response

{
  "data": [
    {
      "test_id": "230921_ZH_bbda3f507bdc5a713089778aa0b3d123",
      "url": "https://www.speedcurve.com/",
      "timezone": "Pacific/Auckland",
      "day": "2023-09-21",
      "timestamp": 1695272400,
      "region": "us-west-1",
      "run": 1,
      "browser": "Apple iPhone 7",
      "browser_version": "115.0.0.0",
      "viewport_width": 375,
      "viewport_height": 667,
      "pixel_ratio": 2,
      "bandwidth_down": 9000,
      "bandwidth_up": 9000,
      "bandwidth_latency": 170,
      "byte": 731,
      "dom_content_loaded": 1577,
      "render": 900,
      "visually_complete": 8700,
      "first_interactive": 1577,
      "first_cpu_idle": 1577,
      "time_to_interactive": 1577,
      "first_contentful_paint": 888,
      "largest_contentful_paint": 985,
      "first_meaningful_paint": 986,
      "cumulative_layout_shift": 0.028902619717128,
      "dom": 1902,
      "loaded": 7446,
      "size": 268451,
      "requests": 19,
      "speedindex": 1128,
      "html_requests": 1,
      "html_size": 22104,
      "js_requests": 3,
      "js_size": 52186,
      "image_requests": 11,
      "image_size": 144129,
      "font_requests": 3,
      "font_size": 50032,
      "other_requests": 1,
      "first_party_requests": 17,
      "first_party_size": 250482,
      "first_party_cpu": 240,
      "third_party_requests": 2,
      "third_party_size": 17969,
      "third_party_cpu": 23,
      "har": "https://wpt.speedcurve.com/export.php?test=230921_ZH_bbda3f507bdc5a713089778aa0b3d123",
      "screen": "https://wpt.speedcurve.com/getfile.php?test=230921_ZH_bbda3f507bdc5a713089778aa0b3d123&file=1_screen.jpg",
      "filmstrip": "https://wpt.speedcurve.com/video/filmstrip.php?tests=230921_ZH_bbda3f507bdc5a713089778aa0b3d123-r:1-c:0&thumbSize=200&ival=500&end=visual&text=ffffff&bg=000000",
      "custom_metrics": [
        {
          "mark": "LUX_end",
          "value": "5002"
        }
      ],
      "hero_metrics": [
        {
          "hero": "h1",
          "name": "Hero H1",
          "value": 1100
        }
      ],
      "first_painted_hero": 1000,
      "last_painted_hero": 1100,
      "lighthouse_performance": 96,
      "lighthouse_pwa": 33,
      "lighthouse_accessibility": 96,
      "lighthouse_best_practice": 100,
      "lighthouse_seo": 95,
      "cpu_idle": 6798,
      "cpu_scripting": 170,
      "cpu_layout": 209,
      "cpu_painting": 92,
      "cpu_render_idle": 798,
      "cpu_render_scripting": 14,
      "cpu_render_layout": 56,
      "cpu_render_painting": 3,
      "cpu_pageload_idle": 1630,
      "cpu_pageload_scripting": 65,
      "cpu_pageload_layout": 124,
      "cpu_pageload_painting": 26,
      "dom_elements": 920,
      "site_id": 123,
      "url_id": 456
    }
  ],
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 3161,
    "path": "https://local.api.speedcurve.com/v1/tests",
    "per_page": "1",
    "to": 1,
    "total": 3161
  }
}