Google Maps Posts API
Scrape business updates and posts from Google Maps. Monitor time-sensitive announcements, promotional content, and official news directly from business profiles for local discovery or competitor monitoring.
Tags: Google API
Parameters
| Name | Required | Type | Default | Description |
|---|---|---|---|---|
| data_id | Yes | string | The unique Google Maps location ID (feature ID). You can get this from our Google Maps Search API. | |
| next_page_token | No | string | Token used to retrieve the next page of business posts. |
Copy Request
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/maps/posts?data_id=YOUR_VALUE" \
-H "X-API-Key: YOUR_API_KEY"js
const res = await fetch("https://api.justserpapi.com/api/v1/google/maps/posts?data_id=YOUR_VALUE", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);python
import requests
url = "https://api.justserpapi.com/api/v1/google/maps/posts"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
"data_id": "YOUR_VALUE"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())php
<?php
$url = "https://api.justserpapi.com/api/v1/google/maps/posts?data_id=YOUR_VALUE";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/maps/posts?data_id=YOUR_VALUE", nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}Response
Example:
json
{
"code": 200,
"message": "success",
"data": {
"location_details": {
"name": "Coffee Lab Kaiserhöfe",
"logo": "https://lh6.googleusercontent.com/-0lTYH0JlR6A/AAAAAAAAAAI/AAAAAAAAAAA/lLRoKUl4x8M/s40-c-k-mo/photo.jpg"
},
"post_data": [
{
"description": "Bitte eine Voranmeldung. Alle sind willkommen",
"date": "Jun 4, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipMKaNKTkusuDOVeI9uSjsRYm40Rsl0H4-jnbhuU=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=CIHM0ogKEICAgICOvKTXlQE&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Follow us on InstagramCoffee_lab_kaiserhoefe",
"date": "Dec 3, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipPz_VftBEP2GjiTNoH5lUw2txOvXgnzEN2QR4UA=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=CIHM0ogKEICAgIDGufmk4AE&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Cake + Daily Brew now 5€",
"date": "Dec 3, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipOu4gycheI3poA0C893L-fFVa6VFiyOqJ5DgDRw=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=8317656723882046731&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Ham & cheese croissant + Daily Brew nur 5,00€",
"date": "Dec 2, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNdowraAIhZtXcASh3p-WLG5_sON-lT-gKMGzWu=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=8623628907114944720&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Liebe Gäste! Bei uns gilt momentan: - Wenn sie zum Mitnehmen bestellen, brauchen Sie nur eine Maske zu tragen. - Wenn Sie bei uns die Atmosphäre genießen möchten, so zeigt uns bitte Ihren aktuellen Impfnachweis vor. 2G (geimpft oder genesen) ",
"date": "Dec 2, 2021",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=CIHM0ogKEICAgIDGmeP_OA&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "We are still open for you and have homemade belgian waffle ❤️",
"date": "Dec 15, 2020",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=CIHM0ogKEICAgICSorXHsgE&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Vegan Food 👍🏻",
"date": "Oct 28, 2020",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipO3c_HqyEmFJbEyqRrplw_mIR1zbpHAFXY052_O=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=3568503723339172358&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
},
{
"description": "Happy Latte Day!!!!! Cafe Latte (auch Hafer) für 3,00€",
"date": "Oct 2, 2020",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNWXh3d6DCObDHJ30V0gMq_3NpSgc8MOHaK6cyF=h400-no",
"link": "https://search.google.com/local/posts?q=Coffee+Lab+Kaiserh%C3%B6fe&ludocid=11946353341162129687&lpsid=1805703358718098684&source=sh/x/loc/post&lsig=AB86z5U29xqBsMdS5v5kWInMJg7A"
}
],
"next_page_token": "CgwI-7Xd-wUQwLXp0gMqAA=="
},
"requestId": "920a646c-8e45-4c32-8c06-496613167cd3",
"timestamp": 1771920770145
}