---
title: "Search for Google locations"
method: GET
path: "/google-oauth-accounts/locations/search"
tags: ["Google"]
---

# Search for Google locations

`GET /google-oauth-accounts/locations/search`

## Request

- Base URL: `https://api.partoo.co/v2`
- URL: `https://api.partoo.co/v2/google-oauth-accounts/locations/search`
- Auth: API key in header `x-APIKey`
- TypeScript: <https://skmtc.dev/partoo/apis/partoo-rest-api/docs/google-oauth-accounts/locations/search/get.ts> (a function with typed inputs; its response is checked against the schema)

Performs a search for Google locations based on the provided query parameters. This endpoint requires authentication, and only authorized users with the appropriate permissions can access it.

## Query parameters

- `query` string
- `google_location_id` string
- `oauth_account_id` string
- `not_connected_only` boolean
- `verification_status` string
- `page` integer

## Response `200`

OK

- GoogleLocations: Paginated Google Locations
  - `locations` GoogleLocation[]
    - `id` string: The unique identifier of the Google location on Partoo.
    - `location_name` string: The name of the location.
    - `store_code` string: The store code of the google location.
    - `region_code` string: The region code where the location is situated.
    - `postal_code` string: The postal code of the location.
    - `address_details` string: The details of the location's address.
    - `locality` string: The locality of the location.
    - `place_id` string: The unique identifier of the Google Maps place.
    - `google_verifications` object: The status and checked date of the Google verification for the location.
      - `status` string: The status of the Google verification.
      - `checked_at` string, date-time: The date and time when the Google verification was last checked.
    - `phone_numbers` string: The phone number associated with the location.
  - `page` integer: Current page number
  - `max_page` integer: Last page number
  - `count` integer: Number of resources complying with filters

## Other responses

- `401`: You are not authenticated
- `403`: You are not allowed to perform this action
- `404`: Resource does not exist

---

[API](https://skmtc.dev/partoo/apis/partoo-rest-api.md) - [All operations](https://skmtc.dev/partoo/apis/partoo-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/partoo/apis/partoo-rest-api/revisions/dcb8190f5a29?raw)
