Google Business Profile एपीआई में
एपीआई का नया तरीका है. इसकी मदद से, एक ही एपीआई अनुरोध में कई `डेली मेट्रिक` फ़ेच की जा सकती हैं.
सेवा बंद होने का शेड्यूल देखें. साथ ही, v4 reportInsights API वाले तरीके से Google Business Profile की परफ़ॉर्मेंस एपीआई में माइग्रेट करने के बारे में निर्देश देखें.
REST Resource: categories
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: कैटगरी
कारोबार की जानकारी देने वाली कैटगरी (इसमें यह जानकारी नहीं होती कि यह क्या करता है). मान्य कैटगरी आईडी की सूची और उनके ऐसे नामों की मैपिंग के लिए जिन्हें कोई भी व्यक्ति आसानी से पढ़ सके, categories.list देखें.
JSON के काेड में दिखाना |
{
"displayName": string,
"categoryId": string,
"serviceTypes": [
{
object (ServiceType )
}
],
"moreHoursTypes": [
{
object (MoreHoursType )
}
]
} |
फ़ील्ड |
displayName |
string
को अपनाएं. कैटगरी का ऐसा नाम जिसे कोई भी व्यक्ति आसानी से पढ़ सके. जगह की जानकारी पढ़ते समय, इसे सेट किया जाता है. जगह में बदलाव करते समय, categoryId को सेट करना ज़रूरी है. ध्यान दें: इस फ़ील्ड का इस्तेमाल सिर्फ़ जवाबों के लिए किया जाता है. यहां अनुरोध में बताई गई किसी भी वैल्यू को अनदेखा कर दिया जाता है.
|
categoryId |
string
को अपनाएं. इस कैटगरी के लिए स्थायी आईडी. यह Google की ओर से उपलब्ध कराया जाता है. कैटगरी में बदलाव करते समय (जगह बनाते या अपडेट करते समय) categoryId ज़रूर बताया जाना चाहिए. ध्यान दें: इस फ़ील्ड का इस्तेमाल सिर्फ़ जवाबों के लिए किया जाता है. यहां अनुरोध में बताई गई किसी भी वैल्यू को अनदेखा कर दिया जाता है.
|
serviceTypes[] |
object (ServiceType )
को अपनाएं. इस कारोबार की कैटगरी के लिए उपलब्ध सभी तरह की सेवाओं की सूची. ध्यान दें: इस फ़ील्ड का इस्तेमाल सिर्फ़ जवाबों के लिए किया जाता है. यहां अनुरोध में बताई गई किसी भी वैल्यू को अनदेखा कर दिया जाता है.
|
moreHoursTypes[] |
object (MoreHoursType )
सिर्फ़ आउटपुट के लिए. इस तरह के कारोबार के लिए, कारोबार के खुले होने के और समय की जानकारी उपलब्ध है.
|
ServiceType
कारोबार जो सेवा ऑफ़र करता है उसकी जानकारी देने वाला मैसेज.
JSON के काेड में दिखाना |
{
"serviceTypeId": string,
"displayName": string
} |
फ़ील्ड |
serviceTypeId |
string
सिर्फ़ आउटपुट के लिए. इस सेवा के लिए Google की ओर से दिया गया स्थायी आईडी.
|
displayName |
string
सिर्फ़ आउटपुट के लिए. सेवा के टाइप के लिए दिखने वाला नाम, जिसे कोई भी व्यक्ति आसानी से पढ़ सकता है.
|
MoreHoursType
कारोबार के खुले होने के सामान्य समय के अलावा, कारोबार के खुले होने के अन्य घंटे.
JSON के काेड में दिखाना |
{
"hoursTypeId": string,
"displayName": string,
"localizedDisplayName": string
} |
फ़ील्ड |
hoursTypeId |
string
सिर्फ़ आउटपुट के लिए. इस घंटे के लिए Google की ओर से दिया गया स्थायी आईडी.
|
displayName |
string
सिर्फ़ आउटपुट के लिए. कारोबार के खुले होने के समय के हिसाब से, अंग्रेज़ी में दिखने वाला डिसप्ले नेम, जिसे कोई भी व्यक्ति आसानी से पढ़ सकता है.
|
localizedDisplayName |
string
सिर्फ़ आउटपुट के लिए. कारोबार के खुले होने के समय के हिसाब से, स्थानीय भाषा में लिखा गया डिसप्ले नेम, जिसे कोई भी व्यक्ति आसानी से पढ़ सकता है.
|
तरीके |
|
दी गई भाषा और GConcept आईडी के लिए, कारोबार की कैटगरी की सूची दिखाता है. |
|
कारोबार की कैटगरी की सूची दिखाता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[[["\u003cp\u003e\u003cstrong\u003eCategory\u003c/strong\u003e resource describes a business's type using a stable \u003ccode\u003ecategoryId\u003c/code\u003e and provides human-readable names (\u003ccode\u003edisplayName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eEach \u003cstrong\u003eCategory\u003c/strong\u003e can optionally include \u003cstrong\u003eServiceType\u003c/strong\u003e and \u003cstrong\u003eMoreHoursType\u003c/strong\u003e information detailing the services offered and special hours.\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eServiceType\u003c/strong\u003e objects provide specific service details with unique IDs (\u003ccode\u003eserviceTypeId\u003c/code\u003e) and human-readable names (\u003ccode\u003edisplayName\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003e\u003cstrong\u003eMoreHoursType\u003c/strong\u003e objects specify additional hours beyond regular business hours using an ID (\u003ccode\u003ehoursTypeId\u003c/code\u003e) and localized display names.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access and utilize Category data using the \u003ccode\u003ebatchGet\u003c/code\u003e and \u003ccode\u003elist\u003c/code\u003e methods documented in the \u003cstrong\u003eMethods\u003c/strong\u003e section.\u003c/p\u003e\n"]]],[],null,["# REST Resource: categories\n\n- [Resource: Category](#Category)\n - [JSON representation](#Category.SCHEMA_REPRESENTATION)\n - [ServiceType](#Category.ServiceType)\n - [JSON representation](#Category.ServiceType.SCHEMA_REPRESENTATION)\n - [MoreHoursType](#Category.MoreHoursType)\n - [JSON representation](#Category.MoreHoursType.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Category\n------------------\n\nA category describing what this business is (not what it does). For a list of valid category IDs, and the mappings to their human-readable names, see [categories.list](https://developers.google.com/my-business/reference/rest/v4/categories/list).\n\n| JSON representation ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ``` { \"displayName\": string, \"categoryId\": string, \"serviceTypes\": [ { object (/my-business/reference/rest/v4/categories#Category.ServiceType) } ], \"moreHoursTypes\": [ { object (/my-business/reference/rest/v4/categories#Category.MoreHoursType) } ] } ``` |\n\n| Fields ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `displayName` | `string` . The human-readable name of the category. This is set when reading the location. When modifying the location, `categoryId` must be set. Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `categoryId` | `string` . A stable ID (provided by Google) for this category. The `categoryId` must be specified when modifying the category (when creating or updating a location). Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `serviceTypes[]` | `object (`[ServiceType](/my-business/reference/rest/v4/categories#Category.ServiceType)`)` . A list of all the service types that are available for this business category. Note: This field is used in responses only. Any value specified here in a request is ignored. |\n| `moreHoursTypes[]` | `object (`[MoreHoursType](/my-business/reference/rest/v4/categories#Category.MoreHoursType)`)` Output only. More hours types that are available for this business category. |\n\n### ServiceType\n\nA message describing a service type that the business offers.\n\n| JSON representation ||\n|------------------------------------------------------------|---|\n| ``` { \"serviceTypeId\": string, \"displayName\": string } ``` |\n\n| Fields ||\n|-----------------|-------------------------------------------------------------------------------|\n| `serviceTypeId` | `string` Output only. A stable ID (provided by Google) for this service type. |\n| `displayName` | `string` Output only. The human-readable display name for the service type. |\n\n### MoreHoursType\n\nMore hours types that a business can offers, in addition to its regular hours.\n\n| JSON representation ||\n|------------------------------------------------------------------------------------------|---|\n| ``` { \"hoursTypeId\": string, \"displayName\": string, \"localizedDisplayName\": string } ``` |\n\n| Fields ||\n|------------------------|-------------------------------------------------------------------------------------|\n| `hoursTypeId` | `string` Output only. A stable ID provided by Google for this hours type. |\n| `displayName` | `string` Output only. The human-readable English display name for the hours type. |\n| `localizedDisplayName` | `string` Output only. The human-readable localized display name for the hours type. |\n\n| Methods ------- ||\n|--------------------------------------------------------------------|-----------------------------------------------------------------------------------|\n| ### [batchGet](/my-business/reference/rest/v4/categories/batchGet) | Returns a list of business categories for the provided language and GConcept ids. |\n| ### [list](/my-business/reference/rest/v4/categories/list) | Returns a list of business categories. |"]]