Felo API PlatformFelo API Platform

데이터 API / DataForSEO / SERP

Live Google AI Mode SERP

Returns Google's AI Mode answer for a query, with the sources it cites on Google, synchronously. Returns keyword, type, se_domain, location_code, language_code, check_url, datetime, spell, refinement_chips, item_types, items_count and items. advanced is the default choice; take regular when only the ranked list matters and html only to check what the parser dropped. 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_codeinteger선택

    Search engine location code; required if location_name or location_coordinate is not specified

  • location_namestring선택

    Full name of search engine location; required if location_code 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

  • calculate_rectanglesboolean선택

    Enable pixel ranking calculations for elements in SERP

  • browser_screen_widthinteger선택

    Custom browser screen width

  • browser_screen_heightinteger선택

    Custom browser screen height

  • browser_screen_resolution_rationumber선택

    Screen resolution ratio for rectangle calculations

요청 예시

curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/ai_mode/live/advanced" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "keyword": "<string>",
  "location_code": 0,
  "location_name": "<string>",
  "location_coordinate": "<string>",
  "language_name": "<string>",
  "language_code": "<string>",
  "device": "<string>",
  "calculate_rectangles": false
}'

응답

응답 필드

  • 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

  • resultstring[]선택

    Array of live SERP 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

  • check_urlstring선택

    Search URL with refinement parameters

  • item_typesstring[]선택

    Types of search results found in SERP

  • items_countinteger선택

    Number of results returned in the items array

  • itemsstring[]선택

    Elements of search results found in SERP