Available listing attributes by category and country
google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-listattributes.list — Returns the list of attributes that would be available for a location with the given primary category and country.
- Price
- free제공업체 원가
- Success rate
- —성공률 데이터가 아직 없습니다성공률 데이터가 아직 없습니다
- Latency p50
- ——
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-listPreview- Uses platform quota
- Synchronous response
- Reads public data
파라미터
| 파라미터 | 유형 | 필수 | 설명 | 예시 |
|---|---|---|---|---|
| 쿼리 파라미터 | ||||
parent | 문자열 | 선택 | Optional. Resource name of the location to look up available attributes. If this field is set, `category_name`, `region_code`, `language_code` and `show_all` are not required and must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`). | |
showAll | 불리언 | 선택 | Optional. If set to true, metadata for all available attributes are returned, disregarding `parent` and `category_name` fields. `language_code` and `region_code` are required when `show_all` is set to true. | |
pageSize | 정수 | 선택 | How many attributes to include per page. Default is 200, minimum is 1. | |
pageToken | 문자열 | 선택 | If specified, the next page of attribute metadata is retrieved. | |
regionCode | 문자열 | 선택 | Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if `parent` is not set. | |
categoryName | 문자열 | 선택 | Optional. The primary category stable ID to find available attributes. Must be of the format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if `parent` is not set and `show_all` is false. | |
languageCode | 문자열 | 선택 | Optional. The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English. | |
- 쿼리 파라미터
parent문자열선택Optional. Resource name of the location to look up available attributes. If this field is set, `category_name`, `region_code`, `language_code` and `show_all` are not required and must not be set. Format: `locations/{location_id}` (e.g., `locations/1234567890`).
showAll불리언선택Optional. If set to true, metadata for all available attributes are returned, disregarding `parent` and `category_name` fields. `language_code` and `region_code` are required when `show_all` is set to true.
pageSize정수선택How many attributes to include per page. Default is 200, minimum is 1.
pageToken문자열선택If specified, the next page of attribute metadata is retrieved.
regionCode문자열선택Optional. The ISO 3166-1 alpha-2 country code to find available attributes. Required if `parent` is not set.
categoryName문자열선택Optional. The primary category stable ID to find available attributes. Must be of the format `categories/{category_id}` (e.g., `categories/gcid:restaurant`). Required if `parent` is not set and `show_all` is false.
languageCode문자열선택Optional. The BCP 47 code of language to get attribute display names in. If this language is not available, they will be provided in English.
코드 예제
$TOOLSWITCH_KEY를 콘솔에서 생성한 키로 바꾸세요.
curl -X GET 'https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/google-business-profile.x.businessinformation-mybusinessbusinessinformation-attributes-list", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());게이트웨이 API는 미리보기 버전이며 URL과 인증 방식이 변경될 수 있습니다. 예제 매개변수는 샘플 데이터입니다. 호출 요금은 free이며 서비스 수수료가 포함되어 있습니다.