# Local search

> Google Business listings, Maps and Local Finder rankings, and the questions people ask on a listing, at a coordinate.

Source: https://docs.indexzero.site/tools/local-search



Local results depend on where the searcher stands, so all three tools require a `locationCoordinate`: a string of `latitude,longitude,zoom`, for example `30.2672,-97.7431,13`. There is no sensible default. All three **cost credits**.

## `search_local_businesses` [#search_local_businesses]

Google Business listings near a coordinate, by name or category: title, address, rating, and review count. Use it for local competitor research and citation checks.

| Argument             | Type                      | Required                       | Default | Meaning                                                |
| -------------------- | ------------------------- | ------------------------------ | ------- | ------------------------------------------------------ |
| `projectId`          | string                    | yes                            |         |                                                        |
| `locationCoordinate` | string                    | yes                            |         | `lat,lng,zoom`.                                        |
| `title`              | string, up to 200 chars   | one of `title` or `categories` |         | Business name to search for.                           |
| `categories`         | string\[], up to 10 items | one of `title` or `categories` |         | Google Business categories, for example `["plumber"]`. |
| `limit`              | integer, 1 to 100         | no                             | 20      |                                                        |

## `get_local_serp_results` [#get_local_serp_results]

Google Maps or Local Finder rankings for a keyword at a coordinate: who occupies the local pack there.

| Argument             | Type                     | Required | Default          | Meaning                                                 |
| -------------------- | ------------------------ | -------- | ---------------- | ------------------------------------------------------- |
| `projectId`          | string                   | yes      |                  |                                                         |
| `keyword`            | string, 1 to 200 chars   | yes      |                  | Search term.                                            |
| `locationCoordinate` | string                   | yes      |                  | `lat,lng,zoom`.                                         |
| `languageCode`       | string                   | no       | project language |                                                         |
| `searchType`         | `maps` or `local_finder` | no       | `maps`           | The Google Maps result set, or the expanded local pack. |
| `depth`              | integer, 1 to 100        | no       | 20               | How many results to read.                               |

## `get_google_business_questions` [#get_google_business_questions]

Questions and answers posted on a Google Business Profile. A direct read on what customers actually ask; good raw material for FAQ and content work.

| Argument             | Type                   | Required | Default          | Meaning                                             |
| -------------------- | ---------------------- | -------- | ---------------- | --------------------------------------------------- |
| `projectId`          | string                 | yes      |                  |                                                     |
| `keyword`            | string, 1 to 200 chars | yes      |                  | Business name or search term to pull questions for. |
| `locationCoordinate` | string                 | yes      |                  | `lat,lng,zoom`.                                     |
| `languageCode`       | string                 | no       | project language |                                                     |
| `depth`              | integer, 1 to 100      | no       | 20               |                                                     |
