資料 API / DataForSEO / SERP
Setting Google Dataset Search Tasks
Queues datasets matching a query in Google Dataset Search on Google, returning a task id in tasks[0].id. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The live twin answers immediately and is simpler for a single query; queue when the batch would outlast a tool call.
參數
沒有路徑、查詢或請求標頭參數。
請求主體
keywordstring必填Keyword to search datasets for
language_namestring選填Full name of search engine language
language_codestring選填Search engine language code
osstring選填Device operating system, such as windows or macos
last_updatedstring選填Last time the dataset was updated, such as 1m, 1y, or 3y
file_formatsstring[]選填Dataset file formats, such as other, archive, text, image, document, or tabular
usage_rightsstring選填Usage rights, such as commercial or noncommercial
priorityinteger選填Task priority
postback_urlstring選填URL for sending task results
pingback_urlstring選填Notification URL of a completed task
postback_datastring選填Postback datatype; possible value: advanced
請求範例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/dataset_search/task_post" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "<string>",
"language_name": "<string>",
"language_code": "<string>",
"os": "<string>",
"last_updated": "<string>",
"file_formats": [
"<string>"
],
"usage_rights": "<string>",
"priority": 0
}'回應
回應欄位
versionstring選填The current version of the API
status_codeinteger選填General status code
status_messagestring選填General informational message
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 task objects
idstring選填Task identifier in UUID format
status_codeinteger選填Task status code
status_messagestring選填Task status message
costnumber選填Cost of the task, USD
result_countinteger選填Number of elements in the result array