数据 API / DataForSEO / On Page
OnPage API Force Stop
Stops a running crawl by id. Returns no results of its own. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Use it when a crawl was submitted with too high a max_crawl_pages and is still consuming budget; what has already been crawled stays queryable through get_dataforseo_on_page_summary and the rest of this family.
参数
没有路径、查询或请求头参数。
请求体
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” note: you can set up to 1000 id values as separate objects in the POST array
请求示例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/on_page/force_stop" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "<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