The My Business Q&A API allows questions and answers to be posted for specific listings.
Note - If you have a quota of 0 after enabling the API, please request for GBP API access.
Service: mybusinessqanda.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document 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:
Service endpoint
A 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:
https://mybusinessqanda.googleapis.com
REST Resource: v1.locations.questions
Methods | |
---|---|
create |
POST /v1/{parent=locations/*/questions} Adds a question for the specified location. |
delete |
DELETE /v1/{name=locations/*/questions/*} Deletes a specific question written by the current user. |
list |
GET /v1/{parent=locations/*/questions} Returns the paginated list of questions and some of its answers for a specified location. |
patch |
PATCH /v1/{question.name=locations/*/questions/*} Updates a specific question written by the current user. |
REST Resource: v1.locations.questions.answers
Methods | |
---|---|
delete |
DELETE /v1/{name=locations/*/questions/*}/answers:delete Deletes the answer written by the current user to a question. |
list |
GET /v1/{parent=locations/*/questions/*}/answers Returns the paginated list of answers for a specified question. |
upsert |
POST /v1/{parent=locations/*/questions/*}/answers:upsert Creates an answer or updates the existing answer written by the user for the specified question. |