---
title: Start page test
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Speed](https://developers.cloudflare.com/api/typescript/resources/speed)

[Pages](https://developers.cloudflare.com/api/typescript/resources/speed/subresources/pages)

[Tests](https://developers.cloudflare.com/api/typescript/resources/speed/subresources/pages/subresources/tests)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Start page test

client.speed.pages.tests.create(stringurl, TestCreateParams {zone\_id, region } params, RequestOptionsoptions?): [Test](<https://developers.cloudflare.com/api/typescript/resources/speed#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)>) {id, date, desktopReport, 4 more }

POST/zones/{zone\_id}/speed\_api/pages/{url}/tests

Starts a test for a specific webpage, in a specific region.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Zone Settings Write`

##### ParametersExpand Collapse

url: string

A URL.

[Link to this property](<#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20url%20%3E%20(schema)>)

<details>

<summary>

params: TestCreateParams {zone\_id, region }

</summary>

zone\_id: string

Path param: Identifier.

maxLength32

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

<details>

<summary>

region?: "asia-east1"| "asia-northeast1"| "asia-northeast2"| 18 more

Body param: A test region.

</summary>

One of the following:

"asia-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

"asia-northeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

"asia-northeast2"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%202">Link to this property</a>

"asia-south1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%203">Link to this property</a>

"asia-southeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%204">Link to this property</a>

"australia-southeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%205">Link to this property</a>

"europe-north1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%206">Link to this property</a>

"europe-southwest1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%207">Link to this property</a>

"europe-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%208">Link to this property</a>

"europe-west2"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%209">Link to this property</a>

"europe-west3"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2010">Link to this property</a>

"europe-west4"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2011">Link to this property</a>

"europe-west8"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2012">Link to this property</a>

"europe-west9"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2013">Link to this property</a>

"me-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2014">Link to this property</a>

"southamerica-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2015">Link to this property</a>

"us-central1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2016">Link to this property</a>

"us-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2017">Link to this property</a>

"us-east4"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2018">Link to this property</a>

"us-south1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2019">Link to this property</a>

"us-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region%20%3E%20(schema)%20%3E%20(member)%2020">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default%20%3E%20(param)%20region">Link to this property</a>

</details>

[Link to this property](<#(resource)%20speed.pages.tests%20%3E%20(method)%20create%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

Test {id, date, desktopReport, 4 more }

</summary>

id?: string

UUID.

maxLength36

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

date?: string

formatdate-time

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20date">Link to this property</a>

<details>

<summary>

desktopReport?: <a href="https://developers.cloudflare.com/api/typescript/resources/speed#(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)">LighthouseReport</a> {cls, deviceType, error, 9 more }

The Lighthouse report.

</summary>

cls?: number

Cumulative Layout Shift.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20cls">Link to this property</a>

<details>

<summary>

deviceType?: "DESKTOP"| "MOBILE"

The type of device.

</summary>

One of the following:

"DESKTOP"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType%20%3E%20(member)%200">Link to this property</a>

"MOBILE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType">Link to this property</a>

<details>

<summary>

error?: Error {code, detail, finalDisplayedUrl }

</summary>

<details>

<summary>

code?: "NOT\_REACHABLE"| "DNS\_FAILURE"| "NOT\_HTML"| 2 more

The error code of the Lighthouse result.

</summary>

One of the following:

"NOT\_REACHABLE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%200">Link to this property</a>

"DNS\_FAILURE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%201">Link to this property</a>

"NOT\_HTML"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%202">Link to this property</a>

"LIGHTHOUSE\_TIMEOUT"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%203">Link to this property</a>

"UNKNOWN"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code">Link to this property</a>

detail?: string

Detailed error message.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20detail">Link to this property</a>

finalDisplayedUrl?: string

The final URL displayed to the user.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20finalDisplayedUrl">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>

fcp?: number

First Contentful Paint.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20fcp">Link to this property</a>

jsonReportUrl?: string

The URL to the full Lighthouse JSON report.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20jsonReportUrl">Link to this property</a>

lcp?: number

Largest Contentful Paint.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20lcp">Link to this property</a>

performanceScore?: number

The Lighthouse performance score.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20performanceScore">Link to this property</a>

si?: number

Speed Index.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20si">Link to this property</a>

<details>

<summary>

state?: "RUNNING"| "COMPLETE"| "FAILED"

The state of the Lighthouse report.

</summary>

One of the following:

"RUNNING"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"COMPLETE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"FAILED"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state">Link to this property</a>

tbt?: number

Total Blocking Time.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20tbt">Link to this property</a>

ttfb?: number

Time To First Byte.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20ttfb">Link to this property</a>

tti?: number

Time To Interactive.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20tti">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20desktopReport">Link to this property</a>

<details>

<summary>

mobileReport?: <a href="https://developers.cloudflare.com/api/typescript/resources/speed#(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)">LighthouseReport</a> {cls, deviceType, error, 9 more }

The Lighthouse report.

</summary>

cls?: number

Cumulative Layout Shift.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20cls">Link to this property</a>

<details>

<summary>

deviceType?: "DESKTOP"| "MOBILE"

The type of device.

</summary>

One of the following:

"DESKTOP"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType%20%3E%20(member)%200">Link to this property</a>

"MOBILE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20deviceType">Link to this property</a>

<details>

<summary>

error?: Error {code, detail, finalDisplayedUrl }

</summary>

<details>

<summary>

code?: "NOT\_REACHABLE"| "DNS\_FAILURE"| "NOT\_HTML"| 2 more

The error code of the Lighthouse result.

</summary>

One of the following:

"NOT\_REACHABLE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%200">Link to this property</a>

"DNS\_FAILURE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%201">Link to this property</a>

"NOT\_HTML"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%202">Link to this property</a>

"LIGHTHOUSE\_TIMEOUT"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%203">Link to this property</a>

"UNKNOWN"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code%20%3E%20(member)%204">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20code">Link to this property</a>

detail?: string

Detailed error message.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20detail">Link to this property</a>

finalDisplayedUrl?: string

The final URL displayed to the user.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error%20%3E%20(property)%20finalDisplayedUrl">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20error">Link to this property</a>

fcp?: number

First Contentful Paint.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20fcp">Link to this property</a>

jsonReportUrl?: string

The URL to the full Lighthouse JSON report.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20jsonReportUrl">Link to this property</a>

lcp?: number

Largest Contentful Paint.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20lcp">Link to this property</a>

performanceScore?: number

The Lighthouse performance score.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20performanceScore">Link to this property</a>

si?: number

Speed Index.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20si">Link to this property</a>

<details>

<summary>

state?: "RUNNING"| "COMPLETE"| "FAILED"

The state of the Lighthouse report.

</summary>

One of the following:

"RUNNING"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%200">Link to this property</a>

"COMPLETE"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%201">Link to this property</a>

"FAILED"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20state">Link to this property</a>

tbt?: number

Total Blocking Time.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20tbt">Link to this property</a>

ttfb?: number

Time To First Byte.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20ttfb">Link to this property</a>

tti?: number

Time To Interactive.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport%20%2B%20(resource)%20speed%20%3E%20(model)%20lighthouse_report%20%3E%20(schema)%20%3E%20(property)%20tti">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20mobileReport">Link to this property</a>

<details>

<summary>

region?: <a href="https://developers.cloudflare.com/api/typescript/resources/speed#(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)">LabeledRegion</a> {label, value }

A test region with a label.

</summary>

label?: string

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20label">Link to this property</a>

<details>

<summary>

value?: "asia-east1"| "asia-northeast1"| "asia-northeast2"| 18 more

A test region.

</summary>

One of the following:

"asia-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%200">Link to this property</a>

"asia-northeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%201">Link to this property</a>

"asia-northeast2"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%202">Link to this property</a>

"asia-south1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%203">Link to this property</a>

"asia-southeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%204">Link to this property</a>

"australia-southeast1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%205">Link to this property</a>

"europe-north1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%206">Link to this property</a>

"europe-southwest1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%207">Link to this property</a>

"europe-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%208">Link to this property</a>

"europe-west2"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%209">Link to this property</a>

"europe-west3"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2010">Link to this property</a>

"europe-west4"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2011">Link to this property</a>

"europe-west8"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2012">Link to this property</a>

"europe-west9"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2013">Link to this property</a>

"me-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2014">Link to this property</a>

"southamerica-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2015">Link to this property</a>

"us-central1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2016">Link to this property</a>

"us-east1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2017">Link to this property</a>

"us-east4"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2018">Link to this property</a>

"us-south1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2019">Link to this property</a>

"us-west1"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value%20%3E%20(member)%2020">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region%20%2B%20(resource)%20speed%20%3E%20(model)%20labeled_region%20%3E%20(schema)%20%3E%20(property)%20value">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20region">Link to this property</a>

<details>

<summary>

scheduleFrequency?: "DAILY"| "WEEKLY"

The frequency of the test.

</summary>

One of the following:

"DAILY"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20scheduleFrequency%20%3E%20(member)%200">Link to this property</a>

"WEEKLY"

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20scheduleFrequency%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20scheduleFrequency">Link to this property</a>

url?: string

A URL.

<a href="#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)%20%3E%20(property)%20url">Link to this property</a>

</details>

[Link to this property](<#(resource)%20speed.pages.tests%20%3E%20(model)%20test%20%3E%20(schema)>)

### Start page test

TypeScript

HTTPTypeScriptPythonGoTerraform

```
import Cloudflare from 'cloudflare';

const client = new Cloudflare({
  apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted
});

const test = await client.speed.pages.tests.create('example.com', {
  zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
});

console.log(test.id);
```

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    "date": "2014-01-01T05:20:00.12345Z",
    "desktopReport": {
      "cls": 100,
      "deviceType": "DESKTOP",
      "error": {
        "code": "NOT_REACHABLE",
        "detail": "Details: net::ERR_CONNECTION_CLOSED",
        "finalDisplayedUrl": "example.com"
      },
      "fcp": 100,
      "jsonReportUrl": "jsonReportUrl",
      "lcp": 100,
      "performanceScore": 90,
      "si": 100,
      "state": "COMPLETE",
      "tbt": 100,
      "ttfb": 100,
      "tti": 100
    },
    "mobileReport": {
      "cls": 100,
      "deviceType": "DESKTOP",
      "error": {
        "code": "NOT_REACHABLE",
        "detail": "Details: net::ERR_CONNECTION_CLOSED",
        "finalDisplayedUrl": "example.com"
      },
      "fcp": 100,
      "jsonReportUrl": "jsonReportUrl",
      "lcp": 100,
      "performanceScore": 90,
      "si": 100,
      "state": "COMPLETE",
      "tbt": 100,
      "ttfb": 100,
      "tti": 100
    },
    "region": {
      "label": "Iowa, USA",
      "value": "us-central1"
    },
    "scheduleFrequency": "DAILY",
    "url": "example.com"
  }
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "messages": [
    {
      "code": 1000,
      "message": "message",
      "documentation_url": "documentation_url",
      "source": {
        "pointer": "pointer"
      }
    }
  ],
  "success": true,
  "result": {
    "id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
    "date": "2014-01-01T05:20:00.12345Z",
    "desktopReport": {
      "cls": 100,
      "deviceType": "DESKTOP",
      "error": {
        "code": "NOT_REACHABLE",
        "detail": "Details: net::ERR_CONNECTION_CLOSED",
        "finalDisplayedUrl": "example.com"
      },
      "fcp": 100,
      "jsonReportUrl": "jsonReportUrl",
      "lcp": 100,
      "performanceScore": 90,
      "si": 100,
      "state": "COMPLETE",
      "tbt": 100,
      "ttfb": 100,
      "tti": 100
    },
    "mobileReport": {
      "cls": 100,
      "deviceType": "DESKTOP",
      "error": {
        "code": "NOT_REACHABLE",
        "detail": "Details: net::ERR_CONNECTION_CLOSED",
        "finalDisplayedUrl": "example.com"
      },
      "fcp": 100,
      "jsonReportUrl": "jsonReportUrl",
      "lcp": 100,
      "performanceScore": 90,
      "si": 100,
      "state": "COMPLETE",
      "tbt": 100,
      "ttfb": 100,
      "tti": 100
    },
    "region": {
      "label": "Iowa, USA",
      "value": "us-central1"
    },
    "scheduleFrequency": "DAILY",
    "url": "example.com"
  }
}
```