L'API
Google Business Performance propose une
NOUVELLE méthode qui permet d'extraire plusieurs `DailyMetrics` avec une seule requête API.
Consultez le
planning d'abandon et les instructions pour migrer de la méthode API reportInsights v4 à l'API Google Business Profile Performance.
My Business Account Management API
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
L'API My Business Account Management fournit une interface permettant de gérer l'accès à un établissement sur Google.
Remarque : Si votre quota est de 0 après avoir activé l'API, veuillez demander l'accès à l'API Fiche d'établissement Google.
Service: mybusinessaccountmanagement.googleapis.com
Pour appeler ce service, nous vous recommandons d'utiliser les bibliothèques clientes fournies par Google. Si votre application doit utiliser vos propres bibliothèques pour appeler ce service, utilisez les informations suivantes lorsque vous effectuez les requêtes API.
Document de découverte
Un document de découverte est une spécification exploitable par un ordinateur qui permet de décrire et de consommer les API REST. Ce document permet de créer des bibliothèques clientes, des plug-ins IDE et d'autres outils qui interagissent avec les API Google. Un même service peut fournir plusieurs documents de découverte. Ce service fournit le document de découverte suivant :
Point de terminaison du service
Un point de terminaison de service est une URL de base qui spécifie l'adresse réseau d'un service d'API. Un service peut disposer de plusieurs points de terminaison de service. Ce service possède le point de terminaison de service suivant, et tous les URI ci-dessous sont relatifs à ce point de terminaison de service :
https://mybusinessaccountmanagement.googleapis.com
Méthodes |
create |
POST /v1/accounts
Crée un compte avec le nom et le type spécifiés sous le parent indiqué. |
get |
GET /v1/{name=accounts/*}
Récupère le compte spécifié. |
list |
GET /v1/accounts
Répertorie tous les comptes de l'utilisateur authentifié. |
patch |
PATCH /v1/{account.name=accounts/*}
Met à jour le compte professionnel spécifié. |
Méthodes |
create |
POST /v1/{parent=accounts/*}/admins
Invite l'utilisateur spécifié à devenir administrateur du compte indiqué. |
delete |
DELETE /v1/{name=accounts/*/admins/*}
Supprime l'administrateur spécifié du compte indiqué. |
list |
GET /v1/{parent=accounts/*}/admins
Répertorie les administrateurs du compte spécifié. |
patch |
PATCH /v1/{accountAdmin.name=accounts/*/admins/*}
Met à jour l'administrateur pour l'administrateur de compte spécifié. |
Méthodes |
accept |
POST /v1/{name=accounts/*/invitations/*}:accept
Accepte l'invitation spécifiée. |
decline |
POST /v1/{name=accounts/*/invitations/*}:decline
Refuse l'invitation spécifiée. |
list |
GET /v1/{parent=accounts/*}/invitations
Répertorie les invitations en attente pour le compte spécifié. |
Méthodes |
transfer |
POST /v1/{name=locations/*}:transfer
Déplace un établissement d'un compte appartenant à l'utilisateur vers un autre compte géré par le même utilisateur. |
Méthodes |
create |
POST /v1/{parent=locations/*}/admins
Invite l'utilisateur spécifié à devenir administrateur de l'établissement indiqué. |
delete |
DELETE /v1/{name=locations/*/admins/*}
Supprime l'administrateur spécifié en tant qu'administrateur de l'établissement spécifié. |
list |
GET /v1/{parent=locations/*}/admins
Répertorie tous les administrateurs de l'établissement spécifié. |
patch |
PATCH /v1/{locationAdmin.name=locations/*/admins/*}
Met à jour l'administrateur pour l'établissement spécifié. |
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[null,null,["Dernière mise à jour le 2025/07/25 (UTC)."],[[["\u003cp\u003eThe My Business Account Management API allows you to manage access to Google Business Profile locations.\u003c/p\u003e\n"],["\u003cp\u003eYou can create and manage Google Business Profile accounts, including inviting and removing administrators.\u003c/p\u003e\n"],["\u003cp\u003eThe API enables managing location access, including transferring locations between accounts and managing location administrators.\u003c/p\u003e\n"],["\u003cp\u003eUsers with a quota of 0 after enabling the API should request GBP API access for full functionality.\u003c/p\u003e\n"]]],[],null,["# My Business Account Management API\n\nThe My Business Account Management API provides an interface for managing access to a location on Google. \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](#v1.accounts)\n- [REST Resource: v1.accounts.admins](#v1.accounts.admins)\n- [REST Resource: v1.accounts.invitations](#v1.accounts.invitations)\n- [REST Resource: v1.locations](#v1.locations)\n- [REST Resource: v1.locations.admins](#v1.locations.admins)\n\nService: mybusinessaccountmanagement.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://mybusinessaccountmanagement.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://mybusinessaccountmanagement.googleapis.com`\n\nREST Resource: [v1.accounts](/my-business/reference/accountmanagement/rest/v1/accounts)\n---------------------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts/create) | `POST /v1/accounts` Creates an account with the specified name and type under the given parent. |\n| [get](/my-business/reference/accountmanagement/rest/v1/accounts/get) | `GET /v1/{name=accounts/*}` Gets the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts/list) | `GET /v1/accounts` Lists all of the accounts for the authenticated user. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts/patch) | `PATCH /v1/{account.name=accounts/*}` Updates the specified business account. |\n\nREST Resource: [v1.accounts.admins](/my-business/reference/accountmanagement/rest/v1/accounts.admins)\n-----------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/accounts.admins/create) | `POST /v1/{parent=accounts/*}/admins` Invites the specified user to become an administrator for the specified account. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/accounts.admins/delete) | `DELETE /v1/{name=accounts/*/admins/*}` Removes the specified admin from the specified account. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.admins/list) | `GET /v1/{parent=accounts/*}/admins` Lists the admins for the specified account. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/accounts.admins/patch) | `PATCH /v1/{accountAdmin.name=accounts/*/admins/*}` Updates the Admin for the specified Account Admin. |\n\nREST Resource: [v1.accounts.invitations](/my-business/reference/accountmanagement/rest/v1/accounts.invitations)\n---------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------|\n| [accept](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/accept) | `POST /v1/{name=accounts/*/invitations/*}:accept` Accepts the specified invitation. |\n| [decline](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/decline) | `POST /v1/{name=accounts/*/invitations/*}:decline` Declines the specified invitation. |\n| [list](/my-business/reference/accountmanagement/rest/v1/accounts.invitations/list) | `GET /v1/{parent=accounts/*}/invitations` Lists pending invitations for the specified account. |\n\nREST Resource: [v1.locations](/my-business/reference/accountmanagement/rest/v1/locations)\n-----------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [transfer](/my-business/reference/accountmanagement/rest/v1/locations/transfer) | `POST /v1/{name=locations/*}:transfer` Moves a location from an account that the user owns to another account that the same user administers. |\n\nREST Resource: [v1.locations.admins](/my-business/reference/accountmanagement/rest/v1/locations.admins)\n-------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/accountmanagement/rest/v1/locations.admins/create) | `POST /v1/{parent=locations/*}/admins` Invites the specified user to become an administrator for the specified location. |\n| [delete](/my-business/reference/accountmanagement/rest/v1/locations.admins/delete) | `DELETE /v1/{name=locations/*/admins/*}` Removes the specified admin as a manager of the specified location. |\n| [list](/my-business/reference/accountmanagement/rest/v1/locations.admins/list) | `GET /v1/{parent=locations/*}/admins` Lists all of the admins for the specified location. |\n| [patch](/my-business/reference/accountmanagement/rest/v1/locations.admins/patch) | `PATCH /v1/{locationAdmin.name=locations/*/admins/*}` Updates the Admin for the specified location. |"]]