データ API / DataForSEO / SERP
Live Google Organic SERP HTML
Returns the ranked results for a keyword 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.
パラメータ
パス・クエリ・ヘッダーのパラメータはありません。
リクエストボディ
urlstring任意Direct URL of the search query
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
devicestring任意Device type: desktop or mobile
osstring任意Device operating system
se_domainstring任意Custom search engine domain
depthinteger任意Parsing depth, default 100, max 700
max_crawl_pagesinteger任意Page crawl limit, max 100
search_paramstring任意Additional parameters of the search query
load_async_ai_overviewboolean任意Load asynchronous AI overview
expand_ai_overviewboolean任意Expand AI overview item
tagstring任意User-defined task identifier
keywordstring任意Keyword to search for.
リクエスト例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/organic/live/html" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "<string>",
"location_name": "<string>",
"location_code": 0,
"location_coordinate": "<string>",
"language_name": "<string>",
"language_code": "<string>",
"device": "<string>",
"os": "<string>"
}'レスポンス
レスポンスのフィールド
versionstring任意API version
status_codeinteger任意General status code
status_messagestring任意General informational message
timestring任意Execution time
costnumber任意Request cost in USD
tasks_countinteger任意Number of tasks returned
tasks_errorinteger任意Number of tasks returned with an error
tasksstring任意Array of live task objects
idstring任意Task identifier
resultstring任意Result array containing HTML pages
itemsstring任意HTML page items
htmlstring任意Raw HTML page content