Data API / DataForSEO / On Page
OnPage API Waterfall
The load timeline of one crawled url - what was requested, in what order, and how long each took. Reads a finished crawl, so it needs the id from post_dataforseo_on_page_submit and returns crawl_progress plus a crawl_status of max_crawl_pages, pages_in_queue and pages_crawled - check those before trusting a small result, because a crawl still running simply has less to report. Use it to explain a slow page; for a scored performance audit instead use post_dataforseo_on_page_lighthouse_live_json. 💰 Free upstream: querying a finished crawl costs nothing, only the crawl itself does.
Параметры
Параметров пути, запроса и заголовков нет.
Тело запроса
idstringОбязательныйID of the task required field you can get this ID in the response of the Task POST endpoint example: “07131248-1535-0216-1000-17384017ad04”
urlstringОбязательныйpage URL required field specify the pages you want to receive timing for
tagstringНеобязательныйuser-defined task identifier optional field the character limit is 255 you can use this parameter to identify the task and match it with the result you will find the specified tag value in the data object of the response
Пример запроса
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/on_page/waterfall" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "<string>",
"url": "<string>",
"tag": "<string>"
}'Ответ
Поля ответа
versionstringНеобязательныйthe current version of the API
status_codeintegerНеобязательныйgeneral status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_messagestringНеобязательныйgeneral informational message you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйtotal tasks cost, USD
tasks_countintegerНеобязательныйthe number of tasks in the tasks array
tasks_errorintegerНеобязательныйthe number of tasks in the tasks array returned with an error
tasksstring[]Необязательныйarray of tasks
idstringНеобязательныйtask identifier unique task identifier in our system in the UUID format
status_codeintegerНеобязательныйstatus code of the task generated by DataForSEO; can be within the following range: 10000-60000 you can find the full list of the response codes here
status_messagestringНеобязательныйinformational message of the task you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйcost of the task, USD
result_countintegerНеобязательныйnumber of elements in the result array
pathstring[]НеобязательныйURL path
dataobjectНеобязательныйcontains the same parameters that you specified in the POST request
resultstring[]Необязательныйarray of results
crawl_progressstringНеобязательныйstatus of the crawling session possible values: in_progress, finished
crawl_statusobjectНеобязательныйdetails of the crawling session
max_crawl_pagesintegerНеобязательныйmaximum number of pages to crawl indicates the max_crawl_pages limit you specified when setting a task
pages_in_queueintegerНеобязательныйnumber of pages that are currently in the crawling queue
pages_crawledintegerНеобязательныйnumber of crawled pages
items_countintegerНеобязательныйnumber of items in the results array
itemsstring[]Необязательныйitems array
page_urlstringНеобязательныйURL of the page
time_to_interactiveintegerНеобязательныйTime To Interactive (TTI) metric the time it takes until the user can interact with a page (in milliseconds)
dom_completeintegerНеобязательныйtime to load resources the time it takes until the page and all of its subresources are downloaded (in milliseconds)
connection_timeintegerНеобязательныйtime to connect to a server the time it takes until the connection with a server is established (in milliseconds)
time_to_secure_connectionintegerНеобязательныйtime to establish a secure connection the time it takes until the secure connection with a server is established (in milliseconds)
request_sent_timeintegerНеобязательныйtime to send a request to a server the time it takes until the request to a server is sent (in milliseconds)
waiting_timeintegerНеобязательныйtime to first byte (TTFB) in milliseconds
download_timeintegerНеобязательныйtime it takes for a browser to receive a response (in milliseconds)
duration_timeintegerНеобязательныйtotal time it takes until a browser receives a complete response from a server (in milliseconds)
fetch_startintegerНеобязательныйtime to start downloading the HTML resource the amount of time the browser needs to start downloading a page
fetch_endintegerНеобязательныйtime to complete downloading the HTML resource the amount of time the browser needs to complete downloading a page
resourcesstring[]Необязательныйresource-specific timing contains separate arrays with timing for each resource found on the page
resource_typestringНеобязательныйtype of the returned resource
urlstringНеобязательныйresource URL
initiatorstringНеобязательныйresource initiator
duration_timeintegerНеобязательныйtotal time it takes until a browser receives a complete response from a server (in milliseconds)
fetch_startintegerНеобязательныйtime to start downloading the resource the amount of time the browser needs to start downloading a resource
fetch_endintegerНеобязательныйtime to complete downloading the resource the amount of time the browser needs to complete downloading a resource
locationobjectНеобязательныйlocation of the resource in the document parameters defining the location of the specific resource within the document’s HTML
lineintegerНеобязательныйline number the number of the line on which the resource is located
offset_leftintegerНеобязательныйposition in line the number of line characters before the resource; sometimes referred to as column Note: counts from 1, i.e. if the resource doesn’t have any characters to the left, the value will be 1
offset_topintegerНеобязательныйposition in the document the total number of characters between the resource and the top of HTML
is_render_blockingbooleanНеобязательныйindicates whether the resource blocks rendering