데이터 API / DataForSEO / SERP
Live Google Ai Mode SERP HTML
Returns Google's AI Mode answer for a query, with the sources it cites on Google, synchronously. Raw page source rather than parsed results. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.
파라미터
경로, 쿼리, 헤더 파라미터가 없습니다.
요청 본문
keywordstring필수Keyword; you can specify up to 700 characters
location_namestring선택Full name of search engine location; required if location_code or location_coordinate is not specified
location_codeinteger선택Search engine location code; required if location_name or location_coordinate is not specified
location_coordinatestring선택GPS coordinates of a location; required if location_name or location_code is not specified
language_namestring선택Full name of search engine language; required if language_code is not specified
language_codestring선택Search engine language code; required if language_name is not specified
devicestring선택Device type: desktop or mobile
요청 예시
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/html" \
-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>",
"device": "<string>"
}'응답
응답 필드
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 tasks
idstring선택Task identifier
status_codeinteger선택Task status code
status_messagestring선택Task status message
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 specified in the POST request
resultstring[]선택Array of HTML results
keywordstring선택Keyword received in the POST array
typestring선택Search engine type in the POST array
se_domainstring선택Search engine domain in the POST array
location_codeinteger선택Location code in the POST array
language_codestring선택Language code in the POST array