---
title: "DataForSEO Serp Api API / /v3/serp/{search_engine}/organic/live/advanced.ai"
description: "DataForSEO tool dataforseo-serp-organic-live-advanced-ai on looot: input fields, $0.002 per call, output shape, and code to run it with curl, JavaScript or Python."
sidebar:
  hidden: true
---

{/* Generated by scripts/generate-api-reference.mjs from data/api-reference.json. Do not edit. */}

Get organic search results for a keyword in specified search engine

- **Tool id:** `dataforseo-serp-organic-live-advanced-ai`
- **Provider:** [DataForSEO](/providers/dataforseo)
- **Job:** [Advanced ai serp organic live](/reference/jobs/serp-organic-live-advanced-ai) (`serp.organic.live.advanced-ai`)
- **Price:** $0.002 per call. A call that fails at the provider costs $0.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `depth` | number | no | parsing depth optional field number of results in SERP |
| `device` | string | no | device type optional field can take the values:desktop, mobile default value: desktop |
| `keyword` | string | yes | Search keyword |
| `language_code` | string | yes | search engine language code (e.g., 'en') |
| `language_name` | string | no | language name, e.g. 'English' |
| `location_code` | integer | no | DataForSEO location code, e.g. 2840 for the United States |
| `location_coordinate` | string | no | latitude,longitude,radius e.g. '40.7128,-74.0060,10' |
| `location_name` | string | no | full name of the location required field Location format - hierarchical, comma-separated (from most specific to least) Can be one of: 1. Country only: "United States" 2. Region,Country: "California,United States" 3. City,Region,Country: "San Francisco,California,United States" |
| `max_crawl_pages` | number | no | page crawl limit optional field number of search results pages to crawl max value: 100 Note: the max_crawl_pages and depth parameters complement each other |
| `people_also_ask_click_depth` | number | no | clicks on the corresponding element specify the click depth on the people_also_ask element to get additional people_also_ask_element items; |
| `search_engine` | string | yes | search engine: google, bing, yahoo, youtube |

## Output

The run's `result` holds the provider's answer. Signed in, `looot inspect dataforseo-serp-organic-live-advanced-ai` prints its fields.

## Run it

Every call needs your API token in `LOOOT_TOKEN`; [Sign in](/get-started/sign-in#use-the-token-in-scripts-and-agents) shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With `wait: 30` the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll `GET /v1/runs/<runId>`.

Example input with placeholder values:

<CodeGroup>

```bash curl
curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"dataforseo-serp-organic-live-advanced-ai","input":{"search_engine":"<search_engine>","language_code":"<language_code>","keyword":"<keyword>"},"wait":30}'
```

```js JavaScript
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "dataforseo-serp-organic-live-advanced-ai",
    input: {
      search_engine: "<search_engine>",
      language_code: "<language_code>",
      keyword: "<keyword>",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
```

```python Python
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "dataforseo-serp-organic-live-advanced-ai",
        "input": {
            "search_engine": "<search_engine>",
            "language_code": "<language_code>",
            "keyword": "<keyword>",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))
```

</CodeGroup>

To let looot pick among every provider of this job instead, send `job:serp.organic.live.advanced-ai` as `endpointId`; see [the job page](/reference/jobs/serp-organic-live-advanced-ai).
