데이터 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