> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# SearchGoogleLocations

# Package: googleBusinessProfile

# Namespace: GbpLocationsService

# Method link: https://dev.wix.com/docs/api-reference/business-management/google-business-profile/gbplocation-v1/search-google-locations.md

## Permission Scopes:
Manage SEO Settings: SCOPE.PROMOTE.MANAGE-SEO

## Introduction

Searches Google's Business Profile catalog for existing listings.

Specify either a free-text query or a title and address. Each result is a real
catalog entry, and carries a `matchStatus` saying whether it can be claimed.

This doesn't need a connected Google account, so you can call it before the
site owner connects one, for example to check whether a business already has a
listing.

Read `matchStatus` carefully, because it's about the catalog rather than about
the site owner:

- `CLAIMABLE`: no Google account has claimed this listing.
- `OWNED_ELSEWHERE`: some Google account has claimed it. That account may well
be the site owner's own, so don't present this as someone else's listing.
Confirm ownership by connecting their account and calling List Unimported
Locations.

For lighter-weight suggestions while someone types, call Suggest
Establishments, which returns autocomplete hints rather than catalog entries.

---

## REST API

### Schema

```
 Method: searchGoogleLocations
 Description: Searches Google's Business Profile catalog for existing listings.  Specify either a free-text query or a title and address. Each result is a real catalog entry, and carries a `matchStatus` saying whether it can be claimed.  This doesn't need a connected Google account, so you can call it before the site owner connects one, for example to check whether a business already has a listing.  Read `matchStatus` carefully, because it's about the catalog rather than about the site owner:  - `CLAIMABLE`: no Google account has claimed this listing. - `OWNED_ELSEWHERE`: some Google account has claimed it. That account may well be the site owner's own, so don't present this as someone else's listing. Confirm ownership by connecting their account and calling List Unimported Locations.  For lighter-weight suggestions while someone types, call Suggest Establishments, which returns autocomplete hints rather than catalog entries.
 URL: https://www.wixapis.com/gbp/v1/google-locations/search
 Method: POST
 Method parameters:
    - ONE-OF: 
     - name: query | type: string | description: Free-text search (business name, optionally with an address), e.g. "Acme Hardware, Main St". Maps to googleLocations:search {query}.  | validation: minLength 1, maxLength 200
     - name: location | type: GoogleLocation | description: Structured search built from data the merchant already entered. Maps to googleLocations:search {location}. Only the fields Google matches on (title, address) are meaningful; the rest are ignored for search.  
        - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
        - name: title | type: string | description: Business name shown on the listing (Google's "title").  | validation: minLength 1, maxLength 300
        - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
        - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
           - name: id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
        - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
        - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
           - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
        - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
           - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
           - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
           - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
           - name: locality | type: string | description: City or locality.  | validation: maxLength 100
           - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
        - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
           - name: businessType | type: BusinessType | description: Type of service-area business.  
                 - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
           - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
              - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
              - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
           - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
        - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
        - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
        - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
        - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
        - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
           - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                 - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
           - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
              - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
              - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
           - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
           - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
        - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
           - name: startDate | type: Date | description: Date the special hours apply to. Required.  
              - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
              - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
              - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
           - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
           - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
           - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
           - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
        - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
           - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
           - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
        - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
           - name: status | type: Status | description: Current listing status.  
                 - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
           - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
 Return type: SearchGoogleLocationsResponse
  - name: matches | type: array<GoogleLocationMatch> | description: Catalog matches ranked by Google, best match first. Empty when nothing matches.  | validation: maxItems 20
     - name: location | type: GoogleLocation | description: The matched catalog location (Google resource name in `name`, plus title, address, and any other fields Google returns on the match).  
        - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
        - name: title | type: string | description: Business name shown on the listing (Google's "title").  | validation: minLength 1, maxLength 300
        - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
        - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
           - name: id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
           - name: displayName | type: string | description: Display name of the category. Returned by Google, and ignored if you send it.  | read-only: true | validation: maxLength 200
        - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
        - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
           - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
        - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
           - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
           - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
           - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
           - name: locality | type: string | description: City or locality.  | validation: maxLength 100
           - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
        - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
           - name: businessType | type: BusinessType | description: Type of service-area business.  
                 - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
           - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
              - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
              - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
           - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
        - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
        - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
        - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
        - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
        - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
           - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                 - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
           - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
              - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
              - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
           - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
           - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
        - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
           - name: startDate | type: Date | description: Date the special hours apply to. Required.  
              - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
              - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
              - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
           - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
           - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
           - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
           - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
        - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
           - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
           - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
        - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
           - name: status | type: Status | description: Current listing status.  
                 - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
           - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
        - name: metadata | type: Metadata | description: Read-only signals Google reports about the listing.  Only populated on the read paths (Query Google Locations, Get Google Location) and on the Update Google Location response. Search Google Locations reads Google's catalog rather than the merchant's own listing, so it leaves this unset — don't read a default there as a "no".  | read-only: true 
           - name: canOperateLodgingData | type: boolean | description: Whether this location can carry lodging (hotel) data — that is, whether Get/Update Google Location Lodging are usable for it. Google derives it from the primary category, so it flips when the category changes.  
           - name: mapsUri | type: string | description: Link to the location's page on Google Maps. Google returns it only once the listing is on Maps, so it stays empty for a listing that is still unverified or suspended.  | validation: maxLength 1000, format WEB_URL
           - name: canHaveFoodMenus | type: boolean | description: Whether this location is eligible for food menus. Callers must check this flag before using Update Location Food Menus.  | read-only: true 
           - name: newReviewUri | type: string | description: Link to the page on Google Search where a customer can leave a review for this location: the one a business sends customers when it asks for a review. Output only on Google's side. Google does not document when it is filled, so an empty value means there is no link to send yet.  | read-only: true | validation: maxLength 1000, format WEB_URL
     - name: status | type: MatchStatus | description: Whether this listing can be claimed. Read it carefully: it describes the catalog rather than the site owner. See Search Google Locations.  
         - enum:
         -     CLAIMABLE: The catalog entry is unclaimed and can be created/associated.
         -     OWNED_ELSEWHERE: The catalog entry is already claimed by some Google account.

 Possible Errors:
   HTTP Code: 500 | Status Code: INTERNAL | Application Code: GOOGLE_API_CALL_FAILED | Description: none


```

### Examples

### Search Google for existing listings
```curl
curl -X POST \
'https://www.wixapis.com/gbp/v1/google-locations/search' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{
  "query": "Sunset Coffee Roasters, Mission St"
}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.gbp.locations.searchGoogleLocations(options)
 Description: Searches Google's Business Profile catalog for existing listings.  Specify either a free-text query or a title and address. Each result is a real catalog entry, and carries a `matchStatus` saying whether it can be claimed.  This doesn't need a connected Google account, so you can call it before the site owner connects one, for example to check whether a business already has a listing.  Read `matchStatus` carefully, because it's about the catalog rather than about the site owner:  - `CLAIMABLE`: no Google account has claimed this listing. - `OWNED_ELSEWHERE`: some Google account has claimed it. That account may well be the site owner's own, so don't present this as someone else's listing. Confirm ownership by connecting their account and calling List Unimported Locations.  For lighter-weight suggestions while someone types, call Suggest Establishments, which returns autocomplete hints rather than catalog entries.
 Method parameters:
   param name: options | type: SearchGoogleLocationsOptions  none | required: true 
    - ONE-OF: - required: true
     - name: query | type: string | description: Free-text search (business name, optionally with an address), e.g. "Acme Hardware, Main St". Maps to googleLocations:search {query}.  | validation: minLength 1, maxLength 200
     - name: location | type: GoogleLocation | description: Structured search built from data the merchant already entered. Maps to googleLocations:search {location}. Only the fields Google matches on (title, address) are meaningful; the rest are ignored for search.  
        - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
        - name: title | type: string | description: Business name shown on the listing (Google's "title").  | validation: minLength 1, maxLength 300
        - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
        - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
           - name: _id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
        - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
        - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
           - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
        - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
           - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
           - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
           - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
           - name: locality | type: string | description: City or locality.  | validation: maxLength 100
           - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
        - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
           - name: businessType | type: BusinessType | description: Type of service-area business.  
                 - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
           - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
              - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
              - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
           - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
        - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
        - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
        - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
        - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
        - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
           - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                 - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
           - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
              - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
              - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
           - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
           - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
        - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
           - name: startDate | type: Date | description: Date the special hours apply to. Required.  
              - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
              - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
              - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
           - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
           - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
           - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
           - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
        - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
           - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
           - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
        - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
           - name: status | type: Status | description: Current listing status.  
                 - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
           - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
 Return type: PROMISE<SearchGoogleLocationsResponse>
  - name: matches | type: array<GoogleLocationMatch> | description: Catalog matches ranked by Google, best match first. Empty when nothing matches.  | validation: maxItems 20
     - name: location | type: GoogleLocation | description: The matched catalog location (Google resource name in `name`, plus title, address, and any other fields Google returns on the match).  
        - name: name | type: string | description: Google resource name, e.g. "locations/12345678901234567890". Empty on create request; populated on response.  | validation: maxLength 200
        - name: title | type: string | description: Business name shown on the listing (Google's "title").  | validation: minLength 1, maxLength 300
        - name: languageCode | type: string | description: BCP-47 language tag, e.g. "en-US". Required when creating a location and immutable afterwards. Not used by SearchGoogleLocations.  | validation: format LANGUAGE_TAG, immutable
        - name: primaryCategory | type: Category | description: Primary business category. Required by Google.  
           - name: _id | type: string | description: Google's category identifier, such as `categories/gcid:restaurant`.  The `categories/` prefix is optional when you send it. A bare `gcid:...` is accepted and prefixed for you.  | validation: minLength 1, maxLength 200
           - name: displayName | type: string | description: Display name of the category. Returned by Google, and ignored if you send it.  | read-only: true | validation: maxLength 200
        - name: additionalCategories | type: array<Category> | description: Additional categories. Google caps at 9.  | validation: maxItems 9
        - name: profile | type: Profile | description: Optional. Google asks for a description for every category except lodging but doesn't enforce it, so neither does this API. Both an absent profile and one with an empty description are accepted.  
           - name: description | type: string | description: Description of the location in the site owner's own words. Optional, and an empty value clears it on the listing. Google allows up to 750 characters.  | validation: maxLength 750
        - name: storefrontAddress | type: PostalAddress | description: Storefront postal address. Required for a business that serves customers at its premises, and allowed alongside `serviceArea` when that field's `businessType` is `CUSTOMER_AND_BUSINESS_LOCATION`.  
           - name: countryCode | type: string | description: ISO 3166-1 alpha-2 country code (e.g. "US", "GB").  | validation: format COUNTRY
           - name: postalCode | type: string | description: Postal/ZIP code.  | validation: maxLength 20
           - name: administrativeArea | type: string | description: Administrative area (state, province, region).  | validation: maxLength 100
           - name: locality | type: string | description: City or locality.  | validation: maxLength 100
           - name: addressLines | type: array<string> | description: Street address lines. Up to 5 lines.  | validation: maxItems 5, maxLength 255
        - name: serviceArea | type: ServiceArea | description: Service-area definition (for businesses that serve customers at the customer's location, exclusively or in addition to their storefront).  
           - name: businessType | type: BusinessType | description: Type of service-area business.  
                 - enum: CUSTOMER_LOCATION_ONLY, CUSTOMER_AND_BUSINESS_LOCATION
           - name: places | type: array<PlaceInfo> | description: Places served. Google caps at 20.  | validation: maxItems 20
              - name: placeName | type: string | description: Human-readable place name (e.g. "Brooklyn, NY").  | validation: maxLength 200
              - name: placeId | type: string | description: Google Place GUID (opaque).  | validation: maxLength 200
           - name: regionCode | type: string | description: ISO 3166-1 alpha-2 country code. Required by Google for CUSTOMER_LOCATION_ONLY businesses; ignored otherwise.  | validation: format COUNTRY
        - name: primaryPhone | type: string | description: Primary business phone.  | validation: maxLength 50
        - name: additionalPhones | type: array<string> | description: Additional phones. Google caps at 2.  | validation: maxItems 2, maxLength 50
        - name: websiteUri | type: string | description: Business website.  Clear it by masking `websiteUri` on Update Google Location and sending `null`. Sending an empty string is rejected.  | validation: maxLength 1000, format WEB_URL
        - name: storeCode | type: string | description: Merchant-defined store code (free-form identifier shown only to the merchant).  | validation: maxLength 64
        - name: regularHours | type: array<BusinessHours> | description: Regular weekly business hours.  | validation: maxItems 14
           - name: openDay | type: DayOfWeek | description: Day of the week when this open/close window starts.  
                 - enum: MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY
           - name: openTime | type: TimeOfDay | description: Wall-clock time the business opens on `openDay`.  
              - name: hours | type: integer | description: Hour of day, from 0 to 24. `24` means midnight at the end of the day, and is valid only with `minutes` 0. Google's TimePeriod admits 00:00-24:00, and a close at midnight set in Google's own UI comes back as `24:00`, so a value read from Google must be accepted back unchanged on an update.  | validation: minimum 0, maximum 24
              - name: minutes | type: integer | description: Minute of the hour, from 0 to 59.  | validation: minimum 0, maximum 59
           - name: closeDay | type: DayOfWeek | description: Day of the week when this open/close window ends.  
           - name: closeTime | type: TimeOfDay | description: Wall-clock time the business closes on `closeDay`.  
        - name: specialHours | type: array<SpecialHourPeriod> | description: Hours for specific dates that override `regularHours`, such as holidays or one-off closures. Each entry covers one date.  Google accepts special hours only on a location that has `regularHours`. Update Google Location refuses 7 or more consecutive closed dates with `SPECIAL_HOURS_CLOSURE_TOO_LONG`. For a closure that long, set `openInfo.status` to `CLOSED_TEMPORARILY` instead, and back to `OPEN` when the business reopens. To clear every special hour, mask `specialHours` on Update Google Location and send none: Google replaces the whole list with what you send.  | validation: maxItems 500
           - name: startDate | type: Date | description: Date the special hours apply to. Required.  
              - name: year | type: integer | description: Year, from 1 to 9999.  | validation: minimum 1, maximum 9999
              - name: month | type: integer | description: Month, from 1 to 12.  | validation: minimum 1, maximum 12
              - name: day | type: integer | description: Day of the month, from 1 to 31.  | validation: minimum 1, maximum 31
           - name: openTime | type: TimeOfDay | description: Time the business opens on `startDate`. Required unless `closed` is `true`.  
           - name: endDate | type: Date | description: Date the business closes, when it closes after midnight. Must be the same as `startDate` or the day after it. Defaults to `startDate`.  
           - name: closeTime | type: TimeOfDay | description: Time the business closes on `endDate`. Required unless `closed` is `true`. `24:00` means midnight at the end of `endDate`.  
           - name: closed | type: boolean | description: Whether the business is closed all day on `startDate`. When `true`, leave `openTime`, `closeTime` and `endDate` out.  
        - name: latLng | type: LatLng | description: Geographic coordinates of the storefront.  
           - name: latitude | type: number | description: Latitude in degrees. Must be in [-90, 90].  
           - name: longitude | type: number | description: Longitude in degrees. Must be in [-180, 180].  
        - name: openInfo | type: OpenInfo | description: Open/closed state of the listing.  
           - name: status | type: Status | description: Current listing status.  
                 - enum: OPEN, CLOSED_PERMANENTLY, CLOSED_TEMPORARILY
           - name: canReopen | type: boolean | description: Whether the listing can be reopened (only relevant for CLOSED_PERMANENTLY).  
        - name: metadata | type: Metadata | description: Read-only signals Google reports about the listing.  Only populated on the read paths (Query Google Locations, Get Google Location) and on the Update Google Location response. Search Google Locations reads Google's catalog rather than the merchant's own listing, so it leaves this unset — don't read a default there as a "no".  | read-only: true 
           - name: canOperateLodgingData | type: boolean | description: Whether this location can carry lodging (hotel) data — that is, whether Get/Update Google Location Lodging are usable for it. Google derives it from the primary category, so it flips when the category changes.  
           - name: mapsUri | type: string | description: Link to the location's page on Google Maps. Google returns it only once the listing is on Maps, so it stays empty for a listing that is still unverified or suspended.  | validation: maxLength 1000, format WEB_URL
           - name: canHaveFoodMenus | type: boolean | description: Whether this location is eligible for food menus. Callers must check this flag before using Update Location Food Menus.  | read-only: true 
           - name: newReviewUri | type: string | description: Link to the page on Google Search where a customer can leave a review for this location: the one a business sends customers when it asks for a review. Output only on Google's side. Google does not document when it is filled, so an empty value means there is no link to send yet.  | read-only: true | validation: maxLength 1000, format WEB_URL
     - name: status | type: MatchStatus | description: Whether this listing can be claimed. Read it carefully: it describes the catalog rather than the site owner. See Search Google Locations.  
         - enum:
         -     CLAIMABLE: The catalog entry is unclaimed and can be created/associated.
         -     OWNED_ELSEWHERE: The catalog entry is already claimed by some Google account.

 Possible Errors:
   HTTP Code: 500 | Status Code: INTERNAL | Application Code: GOOGLE_API_CALL_FAILED | Description: none


```

### Examples

### Search Google for existing listings
Find listings that match a business name. Works before a Google account is connected.

```javascript
import { locations } from "@wix/gbp";

async function searchGoogleLocations() {
  const response = await locations.searchGoogleLocations({
    query: "Sunset Coffee Roasters, Mission St",
  });

  console.log(response.matches);
}

/* Promise resolves to:
 * {
 *   "matches": [
 *     {
 *       "location": {
 *         "name": "locations/8034569321457853640",
 *         "title": "Sunset Coffee Roasters",
 *         "languageCode": "en",
 *         "primaryCategory": {
 *           "_id": "categories/gcid:coffee_shop",
 *           "displayName": "Coffee shop"
 *         },
 *         "storefrontAddress": {
 *           "countryCode": "US",
 *           "postalCode": "94110",
 *           "administrativeArea": "CA",
 *           "locality": "San Francisco",
 *           "addressLines": ["2436 Mission St"]
 *         },
 *         "latLng": {
 *           "latitude": 37.7563,
 *           "longitude": -122.4188
 *         }
 *       },
 *       "status": "CLAIMABLE"
 *     }
 *   ]
 * }
 */

```

### searchGoogleLocations (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { locations } from '@wix/gbp';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { locations },
  // Include the auth strategy and host as relevant
});


async function searchGoogleLocations(options) {
  const response = await myWixClient.locations.searchGoogleLocations(options);
};
```

---