Google

Google Maps search API

Searches Google Maps with a request body of keyword, language and country (an ISO-2 code such as us), all required. Each place has its name, place id, categories, address, coordinates, phone, website, rating and review count. rating is null when Google has no aggregate rating.

post/google/map/search

Request

  • Base URL: https://api.crawlora.net/api/v1
  • URL: https://api.crawlora.net/api/v1/google/map/search
  • Auth: API key in header x-api-key

Headers

x-api-keystring required

API key required

Request body

countrystring
keywordstring
languagestring

Example request

{
  "country": "us",
  "keyword": "hotel san francisco",
  "language": "en"
}

Response

OK

codeinteger
msgstring

Example response

{
  "code": 200,
  "data": [
    {
      "address": "250 Beach St, San Francisco, CA 94133",
      "amenities": [
        "['Free Wi-Fi'",
        " 'Air-conditioned'",
        " 'Wi-Fi'",
        " 'Parking']"
      ],
      "category": [
        "['hotel']"
      ],
      "description": "A 3-minute walk from Pier 41 in the Fisherman's Wharf district...",
      "image": "https://lh5.googleusercontent.com/p/AF1QipP_O55x7gOwR3AaM09CVmzEUude9wMHMPwc--yp",
      "latitude": 37.8077617,
      "locations": [
        "['San Francisco'",
        " 'Los Angeles']"
      ],
      "longitude": -122.4132228,
      "name": "Hotel Zephyr San Francisco",
      "phone": "14156176565",
      "place_id": "ChIJ99URUeOAhYAR0J5ZUxTesDQ",
      "rating": 4.1,
      "review_count": 3213,
      "url": "https://www.google.com/maps/place/?q=place_id:ChIJ99URUeOAhYAR0J5ZUxTesDQ",
      "website": "https://www.hotelzephyrsf.com/"
    }
  ],
  "msg": "OK"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.