APIHub
Back to Explore

My Business Q&A API

The API lets you list, create, update, and delete questions and their answers for a specific Google My Business location.

Analytics
none
HTTPS
CORS: Unknown
Description enriched
Visit official documentation

Latency

308ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
DELETE

/v1/{name}

Deletes a specific question written by the current user.

  • name (path, required) — Required. The name of the question to delete.
PATCH

/v1/{name}

Updates a specific question written by the current user.

  • name (path, required) — Immutable. The unique name for the question. locations/*/questions/* This field will be ignored if set during question creation.
  • updateMask (query) — Required. The specific fields to update. Only question text can be updated.
DELETE

/v1/{name}/answers:delete

Deletes the answer written by the current user to a question.

  • name (path, required) — Required. The name of the question to delete an answer for.
GET

/v1/{parent}

Returns the paginated list of questions and some of its answers for a specified location. This operation is only valid if the specified location is verified.

  • parent (path, required) — Required. The name of the location to fetch questions for.
  • answersPerQuestion (query) — Optional. How many answers to fetch per question. The default and maximum `answers_per_question` values are 10.
  • filter (query) — Optional. A filter constraining the questions to return. The only filter currently supported is "ignore_answered=true"
  • orderBy (query) — Optional. The order to return the questions. Valid options include 'update_time desc' and 'upvote_count desc', which will return the questions sorted descendingly by the requested field. The default sort order is 'update_time desc'.
  • pageSize (query, limit) — Optional. How many questions to fetch per page. The default and maximum `page_size` values are 10.
  • pageToken (query) — Optional. If specified, the next page of questions is retrieved.
POST

/v1/{parent}

Adds a question for the specified location.

  • parent (path, required) — Required. The name of the location to write a question for.
GET

/v1/{parent}/answers

Returns the paginated list of answers for a specified question.

  • parent (path, required) — Required. The name of the question to fetch answers for.
  • orderBy (query) — Optional. The order to return the answers. Valid options include 'update_time desc' and 'upvote_count desc', which will return the answers sorted descendingly by the requested field. The default sort order is 'update_time desc'.
  • pageSize (query, limit) — Optional. How many answers to fetch per page. The default and maximum `page_size` values are 10.
  • pageToken (query) — Optional. If specified, the next page of answers is retrieved.
POST

/v1/{parent}/answers:upsert

Creates an answer or updates the existing answer written by the user for the specified question. A user can only create one answer per question.

  • parent (path, required) — Required. The name of the question to write an answer for.

7 endpoints auto-detected

curl -X DELETE \
  "https://mybusinessqanda.googleapis.com/v1/{name}"

mybusinessqanda.googleapis.com · HTTPS only