Queries web page observation quality data.
Operation description
If you do not specify StartTime and EndTime, this operation returns data from the past 24 hours. If you specify StartTime and EndTime, this operation returns data for the specified time range.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:DescribeUrlObservationData |
none |
*Site
|
None | None |
Request syntax
POST / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
string |
Yes |
The site ID. You can call the ListSites operation to obtain the site ID. |
54362329990032 |
| StartTime |
string |
No |
The start time for the data query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2023-04-08T16:00:00Z |
| EndTime |
string |
No |
The end time for the data query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2023-04-19T15:59:59Z |
| Url |
string |
No |
The URL of the web page to monitor. |
example.com/test |
| ClientPlatform |
string |
No |
The device platform. If this parameter is left empty, data for all platforms is queried.
Valid values:
|
PC |
| Metric |
string |
No |
The metric to query.
|
TTFB |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| UrlDetailData |
array<object> |
The returned data. |
|
|
object |
|||
| Url |
string |
The URL of the web page to monitor. |
example.com/test |
| ClientPlatform |
string |
The device platform. |
PC |
| Country |
string |
The country. |
CN |
| TTFB |
number |
The time from when a resource request is initiated to when the first byte of the response begins to arrive. Unit: ms. |
123 |
| FCP |
number |
The time from when the page starts loading to when any part of the page content is rendered on the screen. Unit: ms. |
123 |
| LCP |
number |
The render time of the largest image or text block visible within the viewport. Unit: ms. |
123 |
| CLS |
number |
The metric that measures the largest burst of layout shift scores for every unexpected layout shift that occurs throughout the entire lifecycle of a page. |
0.5 |
| FID |
number |
The time from when a user first interacts with a page to when the browser is actually able to begin processing event handlers in response to that interaction. Unit: ms. |
123 |
| INP |
number |
The responsiveness of a page, specifically how long it takes for the page to visibly respond to user input. Unit: ms. |
123 |
| RequestId |
string |
The request ID. |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| StartTime |
string |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format. |
2022-11-06T16:00:00Z |
| EndTime |
string |
The end time for the data query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
2023-04-19T15:59:59Z |
Examples
Success response
JSON format
{
"UrlDetailData": [
{
"Url": "example.com/test",
"ClientPlatform": "PC",
"Country": "CN",
"TTFB": 123,
"FCP": 123,
"LCP": 123,
"CLS": 0.5,
"FID": 123,
"INP": 123
}
],
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"StartTime": "2022-11-06T16:00:00Z",
"EndTime": "2023-04-19T15:59:59Z"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.TimeRange | The specified time range exceeds the limit. Adjust it and try again. | The specified time range exceeds the limit. Adjust it and try again. |
| 400 | TooManyRequests | Too many requests.Please try again later. | Requests are too frequent, please try again later. |
| 400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | The end time you entered is earlier than the start time. Please check and try again. |
| 400 | InvalidParameter | Parameter verification failed. Check your configurations and try again. | Parameter verification failed. Check your configurations and try again. |
| 400 | InvalidTime.Malformed | Specified start time or end time is malformed. | The specified time format is incorrect. The time must conform to the yyyy-MM-ddTHH:mm:ssZ format. Please enter it correctly and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.