My Business Business Information API
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eThe My Business Business Information API allows you to manage business information through a programmatic interface.\u003c/p\u003e\n"],["\u003cp\u003eYou may need to request access to the Google Business Profile API if you have a quota of 0 after enabling it.\u003c/p\u003e\n"],["\u003cp\u003eGoogle provides client libraries to facilitate interaction with the API, or you can use the provided discovery document and service endpoint to integrate it with your own libraries.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides resources to manage locations, attributes, categories, chains, and Google Locations data.\u003c/p\u003e\n"],["\u003cp\u003eYou can access comprehensive documentation and details about each resource and its available methods through the provided links.\u003c/p\u003e\n"]]],[],null,["# My Business Business Information API\n\nThe My Business Business Information API provides an interface for managing business information. \n\nNote - If you have a quota of 0 after enabling the API, please [request](https://developers.google.com/my-business/content/prereqs#request-access) for GBP API access.\n\n- [REST Resource: v1.accounts.locations](#v1.accounts.locations)\n- [REST Resource: v1.attributes](#v1.attributes)\n- [REST Resource: v1.categories](#v1.categories)\n- [REST Resource: v1.chains](#v1.chains)\n- [REST Resource: v1.googleLocations](#v1.googleLocations)\n- [REST Resource: v1.locations](#v1.locations)\n- [REST Resource: v1.locations.attributes](#v1.locations.attributes)\n\nService: mybusinessbusinessinformation.googleapis.com\n-----------------------------------------------------\n\nTo call this service, we recommend that you use the Google-provided [client libraries](https://cloud.google.com/apis/docs/client-libraries-explained). If your application needs to use your own libraries to call this service, use the following information when you make the API requests.\n\n### Discovery document\n\nA [Discovery Document](https://developers.google.com/discovery/v1/reference/apis) is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:\n\n- \u003chttps://mybusinessbusinessinformation.googleapis.com/$discovery/rest?version=v1\u003e\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://mybusinessbusinessinformation.googleapis.com`\n\nREST Resource: [v1.accounts.locations](/my-business/reference/businessinformation/rest/v1/accounts.locations)\n-------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/businessinformation/rest/v1/accounts.locations/create) | `POST /v1/{parent=accounts/*}/locations` Creates a new Location that will be owned by the logged in user. |\n| [list](/my-business/reference/businessinformation/rest/v1/accounts.locations/list) | `GET /v1/{parent=accounts/*}/locations` Lists the locations for the specified account. |\n\nREST Resource: [v1.attributes](/my-business/reference/businessinformation/rest/v1/attributes)\n---------------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| [list](/my-business/reference/businessinformation/rest/v1/attributes/list) | `GET /v1/attributes` Returns the list of attributes that would be available for a location with the given primary category and country. |\n\nREST Resource: [v1.categories](/my-business/reference/businessinformation/rest/v1/categories)\n---------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| [batchGet](/my-business/reference/businessinformation/rest/v1/categories/batchGet) | `GET /v1/categories:batchGet` Returns a list of business categories for the provided language and GConcept ids. |\n| [list](/my-business/reference/businessinformation/rest/v1/categories/list) | `GET /v1/categories` Returns a list of business categories. |\n\nREST Resource: [v1.chains](/my-business/reference/businessinformation/rest/v1/chains)\n-------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-----------------------------------------------------------------|\n| [get](/my-business/reference/businessinformation/rest/v1/chains/get) | `GET /v1/{name=chains/*}` Gets the specified chain. |\n| [search](/my-business/reference/businessinformation/rest/v1/chains/search) | `GET /v1/chains:search` Searches the chain based on chain name. |\n\nREST Resource: [v1.googleLocations](/my-business/reference/businessinformation/rest/v1/googleLocations)\n-------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|\n| [search](/my-business/reference/businessinformation/rest/v1/googleLocations/search) | `POST /v1/googleLocations:search` Search all of the possible locations that are a match to the specified request. |\n\nREST Resource: [v1.locations](/my-business/reference/businessinformation/rest/v1/locations)\n-------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [delete](/my-business/reference/businessinformation/rest/v1/locations/delete) | `DELETE /v1/{name=locations/*}` Deletes a location. |\n| [get](/my-business/reference/businessinformation/rest/v1/locations/get) | `GET /v1/{name=locations/*}` Returns the specified location. |\n| [getAttributes](/my-business/reference/businessinformation/rest/v1/locations/getAttributes) | `GET /v1/{name=locations/*/attributes}` Looks up all the attributes set for a given location. |\n| [getGoogleUpdated](/my-business/reference/businessinformation/rest/v1/locations/getGoogleUpdated) | `GET /v1/{name=locations/*}:getGoogleUpdated` Gets the Google-updated version of the specified location. |\n| [patch](/my-business/reference/businessinformation/rest/v1/locations/patch) | `PATCH /v1/{location.name=locations/*}` Updates the specified location. |\n| [updateAttributes](/my-business/reference/businessinformation/rest/v1/locations/updateAttributes) | `PATCH /v1/{attributes.name=locations/*/attributes}` Update attributes for a given location. |\n\nREST Resource: [v1.locations.attributes](/my-business/reference/businessinformation/rest/v1/locations.attributes)\n-----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|--------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------|\n| [getGoogleUpdated](/my-business/reference/businessinformation/rest/v1/locations.attributes/getGoogleUpdated) | `GET /v1/{name=locations/*/attributes}:getGoogleUpdated` Gets the Google-updated version of the specified location. |"]]