データ API / DataForSEO / SERP
Setting Google Organic SERP Tasks
Queues the ranked results for a keyword 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 for
location_namestring任意Full name of search engine location
location_codeinteger任意Search engine location code
location_coordinatestring任意GPS coordinates of a location
language_namestring任意Full name of search engine language
language_codestring任意Search engine language code
depthinteger任意Parsing depth, default 100, max 700
max_crawl_pagesinteger任意Page crawl limit, max 100
devicestring任意Device type: desktop or mobile
osstring任意Device operating system
group_organic_resultsboolean任意Display related results as grouped organic results
calculate_rectanglesboolean任意Calculate pixel rankings for SERP elements in advanced results
postback_urlstring任意Postback URL for completed task results
pingback_urlstring任意Pingback URL for task completion notification
postback_datastring任意Postback payload type
tagstring任意User-defined task identifier
リクエスト例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/organic/task_post" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "<string>",
"location_name": "<string>",
"location_code": 0,
"location_coordinate": "<string>",
"language_name": "<string>",
"language_code": "<string>",
"depth": 0,
"max_crawl_pages": 0
}'レスポンス
レスポンスのフィールド
versionstring任意API version
status_codeinteger任意General status code
status_messagestring任意General informational message
timestring任意Execution time
costnumber任意Total tasks cost in USD
tasks_countinteger任意Number of tasks in the request
tasks_errorinteger任意Number of tasks 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任意Task cost
result_countinteger任意Number of result elements