cURL
executeByTemplate
curl --request POST \ --url https://api.surnex.io/v1/executions \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "provider": "dataforseo", "service": "serp", "operation_template": "/serp/{se}/{type}/live", "method": "POST", "mode": "live", "path_variables": { "se": "google", "type": "organic" }, "request_body": { "keyword": "seo" } } '
{ "execution_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "status": "queued", "operation": { "service": "serp", "operation_path": "/serp/google/organic/live", "method": "POST", "mode": "live" }, "scope": { "part_type": "serp_google_organic_live", "snapshot_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479" }, "provider": "dataforseo" }
Authorization: Bearer sk_...
SurnexExecutionRequest
1
HTTPMethod
GET
POST
DataForSeoOperationMode
live
task_post
task_get
tasks_ready
tasks_fixed
Show child attributes
1 - 255
10
64
Execution queued
SurnexExecutionCreatedResponse
queued
running
complete
partial
failed