Für die
Google Business Performance API gibt es eine
NEUE API-Methode, mit der sich mehrere „DailyMetrics“-Objekte in einer einzelnen Anfrage abrufen lassen.
Sehen Sie sich den
Zeitplan für die Einstellung und die Anleitung für die Migration von der reportInsights API-Methode Version 4 zur Google Business Profile Performance API an.
My Business Q&A API
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Über die My Business Q&A API können Fragen und Antworten zu bestimmten Einträgen gepostet werden.
Hinweis: Wenn Sie nach dem Aktivieren der API ein Kontingent von 0 haben, fordern Sie bitte Zugriff auf die Google Unternehmensprofil-API an.
Dienst: mybusinessqanda.googleapis.com
Um diesen Dienst aufzurufen, empfehlen wir die Verwendung der von Google bereitgestellten Clientbibliotheken. Wenn Ihre Anwendung Ihre eigenen Bibliotheken verwenden muss, um diesen Dienst aufzurufen, verwenden Sie die folgenden Informationen, wenn Sie die API-Anfragen stellen.
Discovery-Dokument
Ein Discovery-Dokument ist eine maschinenlesbare Spezifikation zum Beschreiben und Nutzen von REST APIs. Sie wird verwendet, um Clientbibliotheken, IDE-Plug-ins und andere Tools zu erstellen, die mit Google APIs interagieren. Ein Dienst kann mehrere Discovery-Dokumente haben. Der Dienst bietet das folgende Discovery-Dokument:
Dienstendpunkt
Ein Dienstendpunkt ist eine Basis-URL, die die Netzwerkadresse eines API-Dienstes angibt. Ein Dienst kann mehrere Dienstendpunkte haben. Dieser Dienst hat den folgenden Dienstendpunkt und alle nachstehenden URIs beziehen sich auf ihn:
https://mybusinessqanda.googleapis.com
Methoden |
create |
POST /v1/{parent=locations/*/questions}
Fügt eine Frage für den angegebenen Ort hinzu. |
delete |
DELETE /v1/{name=locations/*/questions/*}
Löscht eine bestimmte Frage des aktuellen Nutzers. |
list |
GET /v1/{parent=locations/*/questions}
Gibt eine paginierte Liste mit Fragen und einigen ihrer Antworten für einen bestimmten Ort zurück. |
patch |
PATCH /v1/{question.name=locations/*/questions/*}
Aktualisiert eine bestimmte Frage des aktuellen Nutzers. |
Methoden |
delete |
DELETE /v1/{name=locations/*/questions/*}/answers:delete
Löscht die Antwort des aktuellen Nutzers auf eine Frage. |
list |
GET /v1/{parent=locations/*/questions/*}/answers
Gibt die paginierte Liste von Antworten auf eine angegebene Frage zurück. |
upsert |
POST /v1/{parent=locations/*/questions/*}/answers:upsert
Erstellt eine Antwort oder aktualisiert die vorhandene Antwort des Nutzers auf die angegebene Frage. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003eThe My Business Q&A API enables posting questions and answers for specific business listings.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage questions and answers programmatically using the API's REST resources.\u003c/p\u003e\n"],["\u003cp\u003eThe API provides methods to create, delete, list, and update questions and answers.\u003c/p\u003e\n"],["\u003cp\u003eTo use this API, you will need to enable it and may require requesting access through Google.\u003c/p\u003e\n"]]],[],null,["# My Business Q&A API\n\nThe My Business Q\\&A API allows questions and answers to be posted for specific listings. \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.locations.questions](#v1.locations.questions)\n- [REST Resource: v1.locations.questions.answers](#v1.locations.questions.answers)\n\nService: mybusinessqanda.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://mybusinessqanda.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://mybusinessqanda.googleapis.com`\n\nREST Resource: [v1.locations.questions](/my-business/reference/qanda/rest/v1/locations.questions)\n-------------------------------------------------------------------------------------------------\n\n| Methods ||\n|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| [create](/my-business/reference/qanda/rest/v1/locations.questions/create) | `POST /v1/{parent=locations/*/questions}` Adds a question for the specified location. |\n| [delete](/my-business/reference/qanda/rest/v1/locations.questions/delete) | `DELETE /v1/{name=locations/*/questions/*}` Deletes a specific question written by the current user. |\n| [list](/my-business/reference/qanda/rest/v1/locations.questions/list) | `GET /v1/{parent=locations/*/questions}` Returns the paginated list of questions and some of its answers for a specified location. |\n| [patch](/my-business/reference/qanda/rest/v1/locations.questions/patch) | `PATCH /v1/{question.name=locations/*/questions/*}` Updates a specific question written by the current user. |\n\nREST Resource: [v1.locations.questions.answers](/my-business/reference/qanda/rest/v1/locations.questions.answers)\n-----------------------------------------------------------------------------------------------------------------\n\n| Methods ||\n|-----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [delete](/my-business/reference/qanda/rest/v1/locations.questions.answers/delete) | `DELETE /v1/{name=locations/*/questions/*}/answers:delete` Deletes the answer written by the current user to a question. |\n| [list](/my-business/reference/qanda/rest/v1/locations.questions.answers/list) | `GET /v1/{parent=locations/*/questions/*}/answers` Returns the paginated list of answers for a specified question. |\n| [upsert](/my-business/reference/qanda/rest/v1/locations.questions.answers/upsert) | `POST /v1/{parent=locations/*/questions/*}/answers:upsert` Creates an answer or updates the existing answer written by the user for the specified question. |"]]