Table of contents
  1. GeoScraper API Documentation - Google Maps Q&A API
    1. Google Maps Q&A API
      1. Endpoint
      2. Headers
      3. Request Body
      4. Sample Request
      5. Sample Response
      6. Description

GeoScraper API Documentation - Google Maps Q&A API

Google Maps Q&A API

This endpoint enables you to scrape questions and answers from a Google Maps business listing.

Endpoint

  • POST: https://api.geoscraper.net/google/map/qa

Headers

  • X-Berserker-Token: Your_Access_Token
  • Content-Type: application/json

Request Body

  • Format: JSON
  • Fields:
    • data_id (required): The unique identifier for the place.
    • hl (optional): Language parameter to specify the response language.
    • catched (optional): Boolean to indicate if cached data should be used.
    • token (optional): Token for the next page (obtainable from the first page response).

Sample Request

import requests
import json

url = "https://api.geoscraper.net/google/map/qa"

payload = json.dumps({
  "data_id": "0x3ae33f8ee1c9f54f:0xe28de46119ba485e",
  "hl": "en",
  "catched": False,
  "token": ""
})
headers = {
  'X-Berserker-Token': 'Your_Access_Token',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

Sample Response

[
    {
        "text": "What is a fixed-price MVP?",
        "question_id": "8@1:CAESGUNWX1Y4ZG45TVpGQlZzd2dMNVgtZFNvOUE|",
        "helpful_count": 1,
        "author_name": "TwoZeroTwo LLC",
        "author_profile_image_url": "https://maps.gstatic.com/tactile/placeqa/merchant_2x.png",
        "total_answers_count": 1,
        "answers": [
            {
                "text": "A fixed-price MVP means you pay a flat fee of $3,000 for a fully functional Minimum Viable Product. There are no hidden costs or surprise charges, allowing you to budget with complete confidence.\n",
                "answer_id": "8@1:CAESGUNWX2xISk93cFUzcHIzSmF5WnQwampzRFE|",
                "helpful_count": 0,
                "author_name": "TwoZeroTwo LLC",
                "author_profile_image_url": "https://maps.gstatic.com/tactile/placeqa/merchant_2x.png"
            }
        ],
        "question_url": "https://www.google.com/local/place/qa/question/0x3ae33f8ee1c9f54f:0xe28de46119ba485e/answers/8@1:CAESGUNWX1Y4ZG45TVpGQlZzd2dMNVgtZFNvOUE|",
        "author_profile_review_count": null,
        "author_profile_url": null,
        "author_profile_photo_count": null
    },
    {
        "next_page_token": ""
    }
]

Description

  • The response includes a list of questions and answers from the specified Google Maps business listing. Each question contains details like the question text, question ID, helpful count, author information, and associated answers. The next_page_token can be used to paginate through additional questions and answers.

Note: Replace Your_Access_Token with your actual API access token.