API Documentation

Google Place Details

ScrapeIN Google Place Details Response Description

Google Place Details Scraper API is a tool that allows users to extract data from any Google Place in a structured format. The API returns a JSON object that contains the search results and additional metadata about the search or CSV.

JSON Example Google Place Details

{
  "search_parameters" : {
    "data_cid" : "7415861409383649399",
    "output" : "json",
    "search_type" : "place_details",
    "engine" : "google"
  },
  "search_metadata" : {
    "created_at" : "2023-04-23T08:16:25.670Z",
    "processed_at" : "2023-04-23T08:16:36.666Z",
    "total_time_taken" : 11,
    "engine_url" : "https://www.google.com/maps?cid=7415861409383649399&hl=en",
    "html_url" : "https://app.scrapein.app/api/v1/google/place-details?data_cid=7415861409383649399&output=html&api_key={API-KEY}&search_type=place_details&engine=google",
    "json_url" : "https://app.scrapein.app/api/v1/google/place-details?data_cid=7415861409383649399&output=json&api_key={API-KEY}&search_type=place_details&engine=google"
  },
  "search_information" : {
    "original_query_yields_zero_results" : false
  },
  "place_details" : {
    "data_id" : "0x80858088a8d29d65:0x66ea6ea931d71077",
    "data_cid" : "7415861409383649399",
    "title" : "Apple Union Square",
    "address" : "300 Post St, San Francisco, CA 94108",
    "address_breakdown" : {
      "address1" : "300 Post St",
      "city" : "San Francisco",
      "state" : "California",
      "zipcode" : "94108",
      "country" : "US"
    },
    "website" : "https://www.apple.com/retail/unionsquare?cid\\u003daos-us-seo-maps",
    "rating" : 4.2,
    "reviews" : 4062,
    "type" : "Electronics store",
    "category" : "Electronics store",
    "categories" : [
      "Electronics store",
      "Computer repair service",
      "Mobile phone repair shop"
    ],
    "description" : "Visit the Apple Store to shop for iPhone, Mac, Apple Watch, iPad and more. Our Specialists will answer your questions and get you set up. Or get technical support at the Genius Bar.",
    "phone" : "+14154864800",
    "opening_hours" : {
      "per_day" : [
        {
          "name" : "Sunday",
          "value" : "11 AM–7 PM",
          "date" : "2023-04-23",
          "day_number" : 0,
          "parsed" : [
            {
              "open" : "11 AM",
              "close" : "7 PM"
            }
          ]
        },
        {
          "name" : "Monday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-24",
          "day_number" : 1,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        },
        {
          "name" : "Tuesday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-25",
          "day_number" : 2,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        },
        {
          "name" : "Wednesday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-26",
          "day_number" : 3,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        },
        {
          "name" : "Thursday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-27",
          "day_number" : 4,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        },
        {
          "name" : "Friday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-28",
          "day_number" : 5,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        },
        {
          "name" : "Saturday",
          "value" : "10 AM–8 PM",
          "date" : "2023-04-29",
          "day_number" : 6,
          "parsed" : [
            {
              "open" : "10 AM",
              "close" : "8 PM"
            }
          ]
        }
      ]
    },
    "gps_coordinates" : {
      "latitude" : 37.7886897,
      "longitude" : -122.4071735
    },
    "knowledge_graph_id" : "/g/1hhxfnnkm",
    "business_availability_modes" : [
      {
        "text" : "Delivery",
        "id" : "/geo/type/establishment_poi/has_delivery"
      },
      {
        "text" : "In-store pickup",
        "id" : "/geo/type/establishment_poi/has_in_store_pickup"
      },
      {
        "text" : "In-store shopping",
        "id" : "/geo/type/establishment_poi/has_in_store_shopping"
      },
      {
        "text" : "Same-day delivery",
        "id" : "/geo/type/shopping/has_delivery_same_day"
      }
    ],
    "rating_breakdown" : {
      "one_star" : 329,
      "two_star" : 136,
      "three_star" : 313,
      "four_star" : 855,
      "five_star" : 2429
    }
  }
}

JSON Structure

The JSON structure returned by the Google Place Details API includes required elements, such as search_parameters, search_metadata, search_information as described in the Results SERP Google API section, as well as those specific to Google Place Details, which are described below.

Here is a description of each parameter in the JSON response from the ScrapeIN Google Place Details API.

places_details

The places_details is an array that contains information about the place that match the search query.

  • data_id: A unique identifier for the place.
  • data_cid: A unique identifier for the place, used by Google.
  • title: The name or title of the place.
  • address: The full address of the place.
  • address_breakdown: An object that breaks down the address into its individual components, such as address1, city, state, zipcode, and country.
  • website: The website URL of the place.
  • rating: The average rating of the place, on a scale of 1 to 5.
  • reviews: The total number of reviews for the place.
  • type: The type of the place, such as Electronics store.
  • category: The category of the place, which may be the same as the type or more specific.
  • categories: An array of categories that the place belongs to.
  • description: A description or summary of the place.
  • phone: The phone number of the place.
  • hours: An array of objects representing the opening hours of the Place. Each object contains a name and value string property.
  • opening_hours: An object that provides the opening hours for the place, broken down by day of the week.
  • gps_coordinates: An object that provides the GPS coordinates of the place, as latitude and longitude.
  • knowledge_graph_id: The ID of the place in Google's Knowledge Graph.
  • business_availability_modes: An array of availability modes for the business, such as delivery or in-store pickup.
  • rating_breakdown: An object that breaks down the number of reviews by star rating, from one to five stars.
  • unclaimed: a boolean indicating whether the Google My Business listing shown in the place result has been claimed by the owner or not.
  • people_also_search_for: an array of objects containing a name and category string property from the people also search for section.
  • menu: an array of objects representing the available menus of the Place, each containing a text and link string property.
  • reservations: an array of objects representing the reservation links for Place, each containing a text and link string property.
  • order: an array of objects representing the ordering links for Place, each containing a text and link string property.
  • order_food: an array of objects representing the specific food-ordering links for Place, each containing a text and link string property.
  • known_attributes: an array of objects containing the known attributes shown on the place details page.
    • attribute: a string indicating the attribute name of the known attribute.
    • value: an object containing a name and optional link property showing the value of the known attribute.
    • name: a string indicating the name of the known attribute.
    • link: a string indicating the link of the known attribute.
    • value: a string indicating the value of the known attribute.