Data API / DataForSEO / SERP
Setting Google Events SERP Tasks
Queues the events Google surfaces for a query 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.
Parameters
No path, query, or header parameters.
Request body
keywordstringRequiredKeyword to search for
location_codeintegerOptionalSearch engine location code
location_namestringOptionalFull name of search engine location
location_coordinatestringOptionalGPS coordinates of a location
language_codestringOptionalSearch engine language code
language_namestringOptionalFull name of search engine language
priorityintegerOptionalTask priority
postback_urlstringOptionalURL for sending task results
pingback_urlstringOptionalNotification URL of a completed task
postback_datastringOptionalPostback datatype
Example request
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/serp/google/events/task_post" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "<string>",
"location_code": 0,
"location_name": "<string>",
"location_coordinate": "<string>",
"language_code": "<string>",
"language_name": "<string>",
"priority": 0,
"postback_url": "<string>"
}'Response
Response fields
versionstringOptionalThe current version of the API
status_codeintegerOptionalGeneral status code
status_messagestringOptionalGeneral informational message
timestringOptionalExecution time, seconds
costnumberOptionalTotal tasks cost, USD
tasks_countintegerOptionalThe number of tasks in the tasks array
tasks_errorintegerOptionalThe number of tasks in the tasks array returned with an error
tasksstring[]OptionalArray of task objects
idstringOptionalTask identifier in UUID format
status_codeintegerOptionalTask status code
status_messagestringOptionalTask status message
costnumberOptionalCost of the task, USD
result_countintegerOptionalNumber of elements in the result array