# Google Maps SERP: Live Advanced

> **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change.

`POST /v1/serp/google/maps/live/advanced`

Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format.

Family: SERP API · Mode: Live

## Price

Unit: search (up to 100 listings)

| Mode | Price (USD) |
|---|---|
| Live | $0.0018 |

Billed per unit returned; no results costs $0.

## Description

Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues.

Maps returns `maps_search` items in the advanced format only.

**Billing.** Billed per search (up to 100 listings), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Live results aren't cached unless you send `max_age`.

**Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done.

## Authentication

HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works.

## Request

Send a JSON array of task objects (up to 100 per request).

| Field | Type | Required | Description |
|---|---|---|---|
| `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 |
| `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. |
| `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. |
| `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. |
| `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. |
| `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. |
| `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` |
| `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` |
| `depth` | integer | no | Results to return. Values up to 700 are accepted; we return up to 100 listings. Billed per search, not per result. default `100`; min 1; max 700 |
| `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` |
| `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` |
| `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 |
| `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 |

### Example request

```bash
curl -X POST "https://api.dataforgaio.com/v1/serp/google/maps/live/advanced" \
  -u "api:$DATAFORGAIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '[
  {
    "keyword": "running store",
    "location_name": "Boulder,Colorado,United States",
    "language_code": "en",
    "depth": 20
  }
]'
```

## Response

| Field | Type | Description |
|---|---|---|
| `version` | string | Response format version, for example `0.1.20261203`. |
| `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. |
| `status_message` | string | Plain-language request status. |
| `time` | string | Time the whole request took, for example `1.8410 sec.` |
| `cost` | number | Sum of every task's `cost`, in USD. |
| `tasks_count` | integer | Number of tasks in `tasks`. |
| `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. |
| `tasks` | array<object> | One entry per task you sent, in the order you sent them. |
| `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. |
| `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. |
| `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. |
| `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` |
| `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. |
| `tasks.result_count` | integer | Number of entries in `result`. |
| `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. |
| `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. |
| `tasks.result` | array<object>\|null | The data for this task. Null when the task returned an error. |
| `tasks.result.keyword` | string | The keyword you sent, trimmed. |
| `tasks.result.type` | string | `organic` or `maps`. |
| `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. |
| `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. |
| `tasks.result.language_code` | string | Language code the search ran for. |
| `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. |
| `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. |
| `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. |
| `tasks.result.refinement_chips` | null | Not available. Always null. |
| `tasks.result.item_types` | array<string> | Item types present in `items`. |
| `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. |
| `tasks.result.pages_count` | integer | Always 1 for Maps. |
| `tasks.result.items_count` | integer | Number of entries in `items`. |
| `tasks.result.items` | array<object> | The maps_search items. |
| `tasks.result.items.type` | string | Always `maps_search`. |
| `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. |
| `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. |
| `tasks.result.items.domain` | string\|null | Domain of the listing's website. |
| `tasks.result.items.title` | string\|null | Business name. |
| `tasks.result.items.original_title` | null | Not available. Always null. |
| `tasks.result.items.url` | string\|null | The listing's website. |
| `tasks.result.items.contact_url` | null | Not available. Always null. |
| `tasks.result.items.contributor_url` | null | Not available. Always null. |
| `tasks.result.items.book_online_url` | null | Not available. Always null. |
| `tasks.result.items.rating` | object\|null | Star rating, when the listing has one. |
| `tasks.result.items.rating.rating_type` | string | Always `Max5`. |
| `tasks.result.items.rating.value` | number\|null | Average rating, 1 to 5. |
| `tasks.result.items.rating.votes_count` | integer\|null | Number of reviews. |
| `tasks.result.items.rating.rating_max` | integer | Always 5. |
| `tasks.result.items.rating_distribution` | null | Not available in search listings. Always null. |
| `tasks.result.items.snippet` | string\|null | Short line shown with the listing. |
| `tasks.result.items.address` | string\|null | Street address as shown. |
| `tasks.result.items.address_info` | null | Not available in search listings. Always null. |
| `tasks.result.items.place_id` | string\|null | Google place id. |
| `tasks.result.items.phone` | string\|null | Phone number as shown. |
| `tasks.result.items.main_image` | string\|null | URL of the listing's main photo. |
| `tasks.result.items.total_photos` | null | Not available in search listings. Always null. |
| `tasks.result.items.category` | string\|null | Main business category. |
| `tasks.result.items.additional_categories` | array<string>\|null | Other categories, when listed. |
| `tasks.result.items.category_ids` | null | Not available. Always null. |
| `tasks.result.items.work_hours` | object\|null | Opening status, when shown. |
| `tasks.result.items.work_hours.timetable` | null | Not available in search listings. Always null. |
| `tasks.result.items.work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. |
| `tasks.result.items.feature_id` | string\|null | Google feature id, `0x…:0x…`. |
| `tasks.result.items.cid` | string\|null | Google customer id (CID) of the place, as a decimal string. |
| `tasks.result.items.latitude` | number\|null | Latitude of the place. |
| `tasks.result.items.longitude` | number\|null | Longitude of the place. |
| `tasks.result.items.is_claimed` | null | Not available in search listings. Always null. |
| `tasks.result.items.local_justifications` | null | Not available. Always null. |
| `tasks.result.items.is_directory_item` | boolean | Always false. |
| `tasks.result.items.price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. |
| `tasks.result.items.hotel_rating` | null | Not available. Always null. |
| `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. |
| `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. |
| `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` |
| `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. |
| `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. |
| `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. |

### Item types

#### maps_search

| Field | Type | Description |
|---|---|---|
| `type` | string | Always `maps_search`. |
| `rank_group` | integer | Position among items of the same type, starting at 1. |
| `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. |
| `domain` | string\|null | Domain of the listing's website. |
| `title` | string\|null | Business name. |
| `original_title` | null | Not available. Always null. |
| `url` | string\|null | The listing's website. |
| `contact_url` | null | Not available. Always null. |
| `contributor_url` | null | Not available. Always null. |
| `book_online_url` | null | Not available. Always null. |
| `rating` | object\|null | Star rating, when the listing has one. |
| `rating.rating_type` | string | Always `Max5`. |
| `rating.value` | number\|null | Average rating, 1 to 5. |
| `rating.votes_count` | integer\|null | Number of reviews. |
| `rating.rating_max` | integer | Always 5. |
| `rating_distribution` | null | Not available in search listings. Always null. |
| `snippet` | string\|null | Short line shown with the listing. |
| `address` | string\|null | Street address as shown. |
| `address_info` | null | Not available in search listings. Always null. |
| `place_id` | string\|null | Google place id. |
| `phone` | string\|null | Phone number as shown. |
| `main_image` | string\|null | URL of the listing's main photo. |
| `total_photos` | null | Not available in search listings. Always null. |
| `category` | string\|null | Main business category. |
| `additional_categories` | array<string>\|null | Other categories, when listed. |
| `category_ids` | null | Not available. Always null. |
| `work_hours` | object\|null | Opening status, when shown. |
| `work_hours.timetable` | null | Not available in search listings. Always null. |
| `work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. |
| `feature_id` | string\|null | Google feature id, `0x…:0x…`. |
| `cid` | string\|null | Google customer id (CID) of the place, as a decimal string. |
| `latitude` | number\|null | Latitude of the place. |
| `longitude` | number\|null | Longitude of the place. |
| `is_claimed` | null | Not available in search listings. Always null. |
| `local_justifications` | null | Not available. Always null. |
| `is_directory_item` | boolean | Always false. |
| `price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. |
| `hotel_rating` | null | Not available. Always null. |

### Example response

```json
{
  "version": "0.1.20261203",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.4210 sec.",
  "cost": 0.0018,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.4210 sec.",
      "cost": 0.0018,
      "result_count": 1,
      "path": [
        "v1",
        "serp",
        "google",
        "maps",
        "live",
        "advanced"
      ],
      "data": {
        "keyword": "running store",
        "location_name": "Boulder,Colorado,United States",
        "language_code": "en",
        "depth": 20
      },
      "result": [
        {
          "keyword": "running store",
          "type": "maps",
          "se_domain": "google.com",
          "location_code": null,
          "language_code": "en",
          "check_url": "https://www.google.com/maps/search/running+store",
          "datetime": "2026-12-03 10:42:18 +00:00",
          "spell": null,
          "refinement_chips": null,
          "item_types": [
            "maps_search"
          ],
          "se_results_count": 2,
          "pages_count": 1,
          "items_count": 2,
          "items": [
            {
              "type": "maps_search",
              "rank_group": 1,
              "rank_absolute": 1,
              "domain": "summitrunning.example",
              "title": "Summit Running Co.",
              "original_title": null,
              "url": "https://summitrunning.example/",
              "contact_url": null,
              "contributor_url": null,
              "book_online_url": null,
              "rating": {
                "rating_type": "Max5",
                "value": 4.7,
                "votes_count": 318,
                "rating_max": 5
              },
              "rating_distribution": null,
              "snippet": "Running store in Boulder",
              "address": "120 Main St, Boulder, CO 80302",
              "address_info": null,
              "place_id": "ChIJexample-summit-0001",
              "phone": "+1 303-555-0142",
              "main_image": "https://images.example/summit.jpg",
              "total_photos": null,
              "category": "Running store",
              "additional_categories": [
                "Shoe store",
                "Sportswear store"
              ],
              "category_ids": null,
              "work_hours": {
                "timetable": null,
                "current_status": "Open ⋅ Closes 7 PM"
              },
              "feature_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315",
              "cid": "1234567890123456789",
              "latitude": 40.0176,
              "longitude": -105.2797,
              "is_claimed": null,
              "local_justifications": null,
              "is_directory_item": false,
              "price_level": "moderate",
              "hotel_rating": null
            },
            {
              "type": "maps_search",
              "rank_group": 2,
              "rank_absolute": 2,
              "domain": "trailhead.example",
              "title": "Trailhead Outfitters",
              "original_title": null,
              "url": "https://trailhead.example/",
              "contact_url": null,
              "contributor_url": null,
              "book_online_url": null,
              "rating": {
                "rating_type": "Max5",
                "value": 4.5,
                "votes_count": 96,
                "rating_max": 5
              },
              "rating_distribution": null,
              "snippet": null,
              "address": "455 Pearl St, Boulder, CO 80302",
              "address_info": null,
              "place_id": "ChIJexample-trailhead-0002",
              "phone": "+1 303-555-0199",
              "main_image": null,
              "total_photos": null,
              "category": "Outdoor sports store",
              "additional_categories": null,
              "category_ids": null,
              "work_hours": null,
              "feature_id": "0x876bec0d5e6f7a8b:0x8911c0ffee00d0d1",
              "cid": "9876543210987654321",
              "latitude": 40.0189,
              "longitude": -105.2811,
              "is_claimed": null,
              "local_justifications": null,
              "is_directory_item": false,
              "price_level": null,
              "hotel_rating": null
            }
          ],
          "fetched_at": "2026-12-03T10:42:18Z"
        }
      ],
      "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81",
      "fetch_level": null,
      "upgraded": false,
      "upgrade_reason": null,
      "cache_hit": false
    }
  ]
}
```

## Errors

| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). |
| 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). |
| 40006 | More than 100 tasks in one POST (HTTP 400). |
| 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). |
| 40501 | A task field failed validation. Returned per task; other tasks still run. |
| 50000 | The task returned no data because of an error on our side or upstream. $0. |
| 40102 | The search ran but returned no results. $0. |
| 40402 | The search service isn't set up on this server. $0. |

## Migrating

Replaces DataForSEO `/v3/serp/google/maps/live/advanced`. Same request body and response envelope; change the base URL and the key.

## Related

- [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get.
- [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet.
- [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed.
- [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format.
