> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# SerpApi

> Structured search results from Google, Google News, Maps, Play and YouTube, with an archive of past searches.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/serpapi.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=047e044beb59b979ab3e86e00431ec2d)

[Web Catalog · Search](https://docs.webrouter.net/data-apis.md?category=search)

Needs&#x20;

`SERPAPI_API_KEY`

Endpoints

8

Auth

Key in query

[Vendor docs](https://serpapi.com/search-api)

&#x20;·&#x20;

[Pricing](https://serpapi.com/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `SERPAPI_API_KEY` | required | a SerpApi private API key (Your Account page at serpapi.com) |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Every engine is the same GET /search with a different engine value; the engine's own parameters follow.
* Billing counts each successful uncached search against your monthly quota; cached results (identical search within 1 hour) and the Account and Locations APIs are free.
* Results come as JSON; search\_metadata.status goes Processing then Success or Error, and search\_metadata.id is the archive id.

## Endpoints

GET

Google search

Structured Google results (organic, ads, answer boxes, related questions and more) for a query.

[Open](#serpapi-google-search)

GET

Google News search

Structured Google News results for a query, topic, publication or story.

[Open](#serpapi-google-news-search)

GET

Google Maps search

Local places from Google Maps for a query, or the details of one place.

[Open](#serpapi-google-maps-search)

GET

Google Play search

Apps from the Google Play store by query, category, chart or device.

[Open](#serpapi-google-play-search)

GET

YouTube search

Structured YouTube video, channel and playlist results for a query.

[Open](#serpapi-youtube-search)

GET

Get a search from the archive

Fetch a past or asynchronous search by its id, as JSON or raw HTML.

[Open](#serpapi-archive-get)

GET

Get account usage

Plan, searches used this month, searches left and hourly rate limit for the API key.

[Open](#serpapi-account-get)

GET

Search supported locations

SerpApi's supported location names and ids, ranked by reach.

[Open](#serpapi-locations-search)

### Google search

GET

`/search`

`serpapi.google.search`

Structured Google results (organic, ads, answer boxes, related questions and more) for a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`engine`</td><td>string</td><td>query</td><td>The engine. google is the default. One of `google` Example `google`</td></tr>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The search query; operators such as site: and intitle: work. Example `coffee`</td></tr>
    <tr><td>`location`</td><td>string</td><td>query</td><td>Origin of the search; city level works best. Look names up with serpapi.locations.search. Cannot be combined with uule, lat or lon. Example `Austin, Texas, United States`</td></tr>
    <tr><td>`google_domain`</td><td>string</td><td>query</td><td>Google domain to use; defaults to google.com. Example `google.co.uk`</td></tr>
    <tr><td>`gl`</td><td>string</td><td>query</td><td>Two-letter country code, such as us. Pair it with location. Example `us`</td></tr>
    <tr><td>`hl`</td><td>string</td><td>query</td><td>Interface language code, such as en or es-419. Example `en`</td></tr>

    <tr>
      <td>
        `cr`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Limit to pages from countries, as countryFR|countryDE.
      </td>
    </tr>

    <tr>
      <td>
        `lr`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Limit to languages, as lang\_fr|lang\_de.
      </td>
    </tr>

    <tr>
      <td>
        `tbs`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Advanced search filter string, for date ranges and other filters Google exposes in its URL.
      </td>
    </tr>

    <tr><td>`safe`</td><td>string</td><td>query</td><td>Adult-content filtering. One of `active`, `off`</td></tr>

    <tr>
      <td>
        `nfpr`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        1 excludes results from an auto-corrected query; 0 (default) includes them.
      </td>
    </tr>

    <tr>
      <td>
        `filter`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        1 (default) enables the Similar Results and Omitted Results filters; 0 disables them.
      </td>
    </tr>

    <tr>
      <td>
        `tbm`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search type selector (images, news, videos, shopping and so on); leave unset for regular web search.
      </td>
    </tr>

    <tr>
      <td>
        `udm`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Display mode selector; leave unset for regular Google Search.
      </td>
    </tr>

    <tr><td>`start`</td><td>integer</td><td>query</td><td>Result offset for pagination: 0 is page 1, 10 is page 2, 20 is page 3. Example `0`</td></tr>
    <tr><td>`device`</td><td>string</td><td>query</td><td>Device to emulate. One of `desktop`, `tablet`, `mobile`</td></tr>

    <tr>
      <td>
        `no_cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true forces a fresh fetch; false (default) may serve a cached result under 1 hour old, which does not count toward your monthly searches. Do not combine with async.
      </td>
    </tr>

    <tr>
      <td>
        `async`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true submits the search and returns at once; fetch the result later with serpapi.archive.get using search\_metadata.id. false (default) waits for the result. Do not combine with no\_cache.
      </td>
    </tr>

    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) for structured results, html for the raw page, md for an LLM-friendly Markdown view. One of `json`, `html`, `md`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/search-api) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-search), [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-google-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-serp), [DataForSEO](https://docs.webrouter.net/data-apis/dataforseo.md#dataforseo-serp-google-organic), [Decodo](https://docs.webrouter.net/data-apis/decodo.md#decodo-search), [Massive (Web Render)](https://docs.webrouter.net/data-apis/joinmassive.md#joinmassive-search)

```python Python theme={null}
router.call_data_api("serpapi.google.search", {'engine': 'google', 'q': 'coffee', 'location': 'Austin, Texas, United States', 'google_domain': 'google.co.uk', 'gl': 'us', 'hl': 'en', 'start': 0})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.google.search", params={"engine": "google", "q": "coffee", "location": "Austin, Texas, United States", "google_domain": "google.co.uk", "gl": "us", "hl": "en", "start": 0})
```

> [!NOTE]
>
> * Each successful uncached search counts as one search against your monthly quota; repeated identical searches within an hour are served from cache and are free.
> * Paging is by start offset, not page number. num is not documented on this page, so it is left out.
> * With async=true the call returns search\_metadata.id; poll serpapi.archive.get until its status is Success.

### Google News search

GET

`/search`

`serpapi.google_news.search`

Structured Google News results for a query, topic, publication or story.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`engine` required</td><td>string</td><td>query</td><td>Must be google\_news. One of `google_news` Example `google_news`</td></tr>
    <tr><td>`q`</td><td>string</td><td>query</td><td>The news query; supports site: and when:. Cannot be combined with the token parameters below. Example `technology`</td></tr>
    <tr><td>`gl`</td><td>string</td><td>query</td><td>Two-letter country code; defaults to us. Example `us`</td></tr>
    <tr><td>`hl`</td><td>string</td><td>query</td><td>Interface language code. Example `en`</td></tr>

    <tr>
      <td>
        `topic_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token for a news topic such as World or Business; found in earlier JSON results or a Google News URL.
      </td>
    </tr>

    <tr>
      <td>
        `publication_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token for one publisher; found in earlier JSON results or a Google News URL.
      </td>
    </tr>

    <tr>
      <td>
        `section_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token for a sub-section of a topic or publication.
      </td>
    </tr>

    <tr>
      <td>
        `story_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token for the full coverage of one story.
      </td>
    </tr>

    <tr>
      <td>
        `kgmid`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Knowledge Graph ID (starts with /m/ or /g/); can only be used alone.
      </td>
    </tr>

    <tr><td>`so`</td><td>integer</td><td>query</td><td>Sort order for story and section results: 0 relevance, 1 date. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `no_cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true forces a fresh fetch; false (default) may serve a cached result under 1 hour old, which does not count toward your monthly searches. Do not combine with async.
      </td>
    </tr>

    <tr>
      <td>
        `async`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true submits the search and returns at once; fetch the result later with serpapi.archive.get using search\_metadata.id. false (default) waits for the result. Do not combine with no\_cache.
      </td>
    </tr>

    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) for structured results, html for the raw page, md for an LLM-friendly Markdown view. One of `json`, `html`, `md`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/google-news-api) · Same job: [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-news-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-news), [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-news-topics), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-google-news), [Benzinga](https://docs.webrouter.net/data-apis/benzinga.md#benzinga-news), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-news-search)

```python Python theme={null}
router.call_data_api("serpapi.google_news.search", {'engine': 'google_news', 'q': 'technology', 'gl': 'us', 'hl': 'en'})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.google_news.search", params={"engine": "google_news", "q": "technology", "gl": "us", "hl": "en"})
```

> [!NOTE]
>
> * Each successful uncached search counts as one search against your monthly quota.
> * q cannot be combined with topic\_token, publication\_token, section\_token, story\_token or kgmid.

### Google Maps search

GET

`/search`

`serpapi.google_maps.search`

Local places from Google Maps for a query, or the details of one place.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`engine` required</td><td>string</td><td>query</td><td>Must be google\_maps. One of `google_maps` Example `google_maps`</td></tr>
    <tr><td>`type`</td><td>string</td><td>query</td><td>search lists places for q; place returns one place (needed with data, optional with place\_id or data\_cid). One of `search`, `place`</td></tr>
    <tr><td>`q`</td><td>string</td><td>query</td><td>The Maps query. Only needed when type is search. Example `coffee`</td></tr>
    <tr><td>`ll`</td><td>string</td><td>query</td><td>Search origin as @latitude,longitude,zoom (for example @40.7455096,-74.0083012,14z) or with a map height in meters. Example `@40.7455096,-74.0083012,14z`</td></tr>

    <tr>
      <td>
        `place_id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Google Place ID of one place; cannot be used with data\_cid.
      </td>
    </tr>

    <tr>
      <td>
        `data_cid`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Google CID of one place; cannot be used with place\_id.
      </td>
    </tr>

    <tr>
      <td>
        `google_domain`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Google domain to use; defaults to google.com.
      </td>
    </tr>

    <tr>
      <td>
        `hl`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Interface language code.
      </td>
    </tr>

    <tr>
      <td>
        `gl`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Two-letter country code; only affects place results.
      </td>
    </tr>

    <tr>
      <td>
        `no_cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true forces a fresh fetch; false (default) may serve a cached result under 1 hour old, which does not count toward your monthly searches. Do not combine with async.
      </td>
    </tr>

    <tr>
      <td>
        `async`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true submits the search and returns at once; fetch the result later with serpapi.archive.get using search\_metadata.id. false (default) waits for the result. Do not combine with no\_cache.
      </td>
    </tr>

    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) for structured results, html for the raw page, md for an LLM-friendly Markdown view. One of `json`, `html`, `md`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/google-maps-api) · Same job: [Amap (Gaode) Web Service](https://docs.webrouter.net/data-apis/amap.md#amap-places-search), [Atly](https://docs.webrouter.net/data-apis/atly.md#atly-places-search), [Best Buy](https://docs.webrouter.net/data-apis/bestbuy.md#bestbuy-stores-search), [FDIC BankFind Suite](https://docs.webrouter.net/data-apis/fdic.md#fdic-locations-search), [Foursquare Places API](https://docs.webrouter.net/data-apis/foursquare.md#foursquare-places-search), [Geoapify](https://docs.webrouter.net/data-apis/geoapify.md#geoapify-places-search)

```python Python theme={null}
router.call_data_api("serpapi.google_maps.search", {'engine': 'google_maps', 'q': 'coffee', 'll': '@40.7455096,-74.0083012,14z'})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.google_maps.search", params={"engine": "google_maps", "q": "coffee", "ll": "@40.7455096,-74.0083012,14z"})
```

> [!NOTE]
>
> * Each successful uncached search counts as one search against your monthly quota.
> * ll, location, lat/lon with z or m, and nearby give other ways to set the origin; see the docs page for their combination rules.

### Google Play search

GET

`/search`

`serpapi.google_play.search`

Apps from the Google Play store by query, category, chart or device.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`engine` required</td><td>string</td><td>query</td><td>Must be google\_play. One of `google_play` Example `google_play`</td></tr>
    <tr><td>`q`</td><td>string</td><td>query</td><td>The app search query. Example `maps`</td></tr>
    <tr><td>`gl`</td><td>string</td><td>query</td><td>Two-letter country code; defaults to us. Example `us`</td></tr>

    <tr>
      <td>
        `hl`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Interface language code.
      </td>
    </tr>

    <tr>
      <td>
        `apps_category`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Play Store apps category code.
      </td>
    </tr>

    <tr><td>`store_device`</td><td>string</td><td>query</td><td>Device to sort for; cannot be used with apps\_category or q. One of `phone`, `tablet`, `tv`, `chromebook`, `watch`, `car`</td></tr>

    <tr>
      <td>
        `chart`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Top chart to show, up to 50 results; the valid values depend on the store.
      </td>
    </tr>

    <tr>
      <td>
        `next_page_token`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Token for the next page of results.
      </td>
    </tr>

    <tr>
      <td>
        `no_cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true forces a fresh fetch; false (default) may serve a cached result under 1 hour old, which does not count toward your monthly searches. Do not combine with async.
      </td>
    </tr>

    <tr>
      <td>
        `async`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true submits the search and returns at once; fetch the result later with serpapi.archive.get using search\_metadata.id. false (default) waits for the result. Do not combine with no\_cache.
      </td>
    </tr>

    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) for structured results, html for the raw page, md for an LLM-friendly Markdown view. One of `json`, `html`, `md`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/google-play-api) · Same job: [Andi AI Search](https://docs.webrouter.net/data-apis/andi.md#andi-search), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-store-search), [Context.dev](https://docs.webrouter.net/data-apis/branddev.md#branddev-web-search), [Brave Search](https://docs.webrouter.net/data-apis/bravesearch.md#bravesearch-videos-search), [BytePlus Searchinfinity](https://docs.webrouter.net/data-apis/byteplus-search.md#byteplus-search-web-search), [Crawl4AI Cloud](https://docs.webrouter.net/data-apis/crawl4ai.md#crawl4ai-search)

```python Python theme={null}
router.call_data_api("serpapi.google_play.search", {'engine': 'google_play', 'q': 'maps', 'gl': 'us'})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.google_play.search", params={"engine": "google_play", "q": "maps", "gl": "us"})
```

> [!NOTE]
>
> * Each successful uncached search counts as one search against your monthly quota.

### YouTube search

GET

`/search`

`serpapi.youtube.search`

Structured YouTube video, channel and playlist results for a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`engine` required</td><td>string</td><td>query</td><td>Must be youtube. One of `youtube` Example `youtube`</td></tr>
    <tr><td>`search_query` required</td><td>string</td><td>query</td><td>The search query; this engine takes search\_query, not q. Example `coffee`</td></tr>
    <tr><td>`gl`</td><td>string</td><td>query</td><td>Two-letter country code. Example `us`</td></tr>
    <tr><td>`hl`</td><td>string</td><td>query</td><td>Interface language code. Example `en`</td></tr>

    <tr>
      <td>
        `sp`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Pagination token (from serpapi\_pagination.next\_page\_token) or a filter value copied from a YouTube URL.
      </td>
    </tr>

    <tr>
      <td>
        `no_cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true forces a fresh fetch; false (default) may serve a cached result under 1 hour old, which does not count toward your monthly searches. Do not combine with async.
      </td>
    </tr>

    <tr>
      <td>
        `async`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true submits the search and returns at once; fetch the result later with serpapi.archive.get using search\_metadata.id. false (default) waits for the result. Do not combine with no\_cache.
      </td>
    </tr>

    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) for structured results, html for the raw page, md for an LLM-friendly Markdown view. One of `json`, `html`, `md`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/youtube-search-api) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-search), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-articles-search), [FastMoss](https://docs.webrouter.net/data-apis/fastmoss.md#fastmoss-creators-search), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-posts-search), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-search), [Hacker News Search (Algolia)](https://docs.webrouter.net/data-apis/hn-algolia.md#hn-algolia-search)

```python Python theme={null}
router.call_data_api("serpapi.youtube.search", {'engine': 'youtube', 'search_query': 'coffee', 'gl': 'us', 'hl': 'en'})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.youtube.search", params={"engine": "youtube", "search_query": "coffee", "gl": "us", "hl": "en"})
```

> [!NOTE]
>
> * Each successful uncached search counts as one search against your monthly quota.
> * Pages continue by sp token rather than page number.

### Get a search from the archive

GET

`/searches/{search_id}`

`serpapi.archive.get`

Fetch a past or asynchronous search by its id, as JSON or raw HTML.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search_id` required</td><td>string</td><td>path</td><td>The id from a search's search\_metadata.id. Example `5b50d58a304bda2fca30bac9`</td></tr>
    <tr><td>`output`</td><td>string</td><td>query</td><td>json (default) or html for the raw page. One of `json`, `html`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/search-archive-api) · Same job: [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-people-find-emails-status), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-requests-get), [Anymail Finder](https://docs.webrouter.net/data-apis/anymailfinder.md#anymailfinder-bulk-get), [Apify](https://docs.webrouter.net/data-apis/apify.md#apify-actors-list), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-marketmap-get), [BounceBan](https://docs.webrouter.net/data-apis/bounceban.md#bounceban-single-status)

```python Python theme={null}
router.call_data_api("serpapi.archive.get", {'search_id': '5b50d58a304bda2fca30bac9'})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.archive.get", params={"search_id": "5b50d58a304bda2fca30bac9"})
```

> [!NOTE]
>
> * Status is Queued, Processing, Success or an error. Searches stay retrievable for 31 days after completion.
> * Poll this after a search made with async=true.

### Get account usage

GET

`/account`

`serpapi.account.get`

Plan, searches used this month, searches left and hourly rate limit for the API key.

Input

No inputs.

[Vendor docs](https://serpapi.com/account-api)

```python Python theme={null}
router.call_data_api("serpapi.account.get")
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.account.get")
```

> [!NOTE]
>
> * Free and not counted toward your monthly quota.

### Search supported locations

GET

`/locations.json`

`serpapi.locations.search`

SerpApi's supported location names and ids, ranked by reach.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>Restrict to locations containing this text. Example `Austin`</td></tr>
    <tr><td>`limit`</td><td>integer</td><td>query</td><td>Maximum locations returned; at most 10. Example `5`</td></tr>
  </tbody>
</table>

[Vendor docs](https://serpapi.com/locations-api) · Same job: [cloro](https://docs.webrouter.net/data-apis/cloro.md#cloro-meta-countries), [Keywords Everywhere](https://docs.webrouter.net/data-apis/keywordseverywhere.md#keywordseverywhere-countries)

```python Python theme={null}
router.call_data_api("serpapi.locations.search", {'q': 'Austin', 'limit': 5})
```

```text MCP theme={null}
call_data_api(endpoint="serpapi.locations.search", params={"q": "Austin", "limit": 5})
```

> [!NOTE]
>
> * Free. Use a result's canonical\_name as location in a search.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.