---
title: "Get attribute metadata"
method: GET
path: "/v1/accounts/{accountId}/gmb-attribute-metadata"
tags: ["GMB Attributes"]
---

# Get attribute metadata

`GET /v1/accounts/{accountId}/gmb-attribute-metadata`

Returns metadata about which Google Business Profile attributes are available for
a location or business category. Use this endpoint to discover valid attribute names,
value types, and allowed enum values before reading or writing via gmb-attributes.

Two mutually exclusive query modes:

**Location mode**: pass `locationId` (or rely on the account's stored `selectedLocationId`).
Google returns attributes valid for that specific location.

**Category mode**: pass `categoryName` (must start with `categories/`) and `regionCode`.
Google returns attributes valid for that category across the given region.
`languageCode` is optional in category mode.

Both modes support `pageSize` and `pageToken` for pagination.

## Path parameters

- `accountId` string, required

## Query parameters

- `locationId` string
- `categoryName` string
- `regionCode` string
- `languageCode` string
- `pageSize` integer
- `pageToken` string

## Response `200`

Attribute metadata fetched successfully

- object
  - `success` boolean
  - `accountId` string
  - `locationId` string — Only present in location mode.
  - `attributeMetadata` object[]
    - `parent` string — Resource name of the attribute (e.g. "attributes/has_delivery").
    - `valueType` string — Value type (e.g. BOOL, ENUM, URL, REPEATED_ENUM).
    - `displayName` string — Localized human-readable attribute name.
    - `groupDisplayName` string — Display name of the attribute group.
    - `repeatable` boolean — True if multiple values can be set simultaneously.
    - `deprecated` boolean — True if this attribute should no longer be used.
    - `valueMetadata` object[] — Possible enum values (for ENUM / REPEATED_ENUM types).
      - `value` string
      - `displayName` string
  - `nextPageToken` string — Present when additional pages of results are available.

## Other responses

- `400` — Invalid request (mixed modes, missing required params, wrong platform, or Google returned 4xx)
- `401` — Access token is invalid or revoked. Reconnect the Google Business Profile account.
- `404` — Account not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/revisions/5bcceb4c15ba/schema)
