Google Maps Posts API
Get the Google Maps Posts data using this API, consisting of posts description, date, images and link.
Here is the list of default parameters for this API :
API Example:
cURL "https://api.serpdog.io/maps_post?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0"
const axios = require('axios');
axios.get('https://api.serpdog.io/maps_post?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0')
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'api_key': 'APIKEY', 'data_id': '0x88371272500ebf33:0x70a094fd98fb45c0'}
resp = requests.get('https://api.serpdog.io/maps_post', params=payload)
print (resp.text)
try {
String url = "https://api.serpdog.io/maps_post?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0";
URL urlForGetRequest = new URL(url);
String readLine = null;
HttpURLConnection conection = (HttpURLConnection) urlForGetRequest.openConnection();
conection.setRequestMethod("GET");
int responseCode = conection.getResponseCode();
if (responseCode == HttpURLConnection.HTTP_OK) {
BufferedReader in = new BufferedReader(new InputStreamReader(conection.getInputStream()));
StringBuffer response = new StringBuffer();
while ((readLine = in.readLine()) != null) {
response.append(readLine);
}
in.close();
System.out.println(response.toString());
} else {
throw new Exception("Error in API Call");
}
} catch (Exception ex) {
ex.printStackTrace();
}
require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:data_id => "0x88371272500ebf33:0x70a094fd98fb45c0"
}
uri = URI('https://api.serpdog.io/maps_post')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
<?php
$url = "https://api.serpdog.io/maps_post?api_key=APIKEY&data_id=0x88371272500ebf33:0x70a094fd98fb45c0";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
{
"post_results": {
"location_details": {
"name": "Kline Home Exteriors",
"logo": "https://lh3.googleusercontent.com/-prudi4SDf0Y/AAAAAAAAAAI/AAAAAAAAAAA/amGm1Mdgbc8/s40-c-k-mo/photo.jpg"
},
"post_data": [
{
"description": "Upgrade Your Home's Exterior with Stonework!!Check our latest blog post to see the benefits and options with manufactured stone!!",
"date": "Aug 4, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipOHtMv9JsXmSZKqP09NmAnKV1jBETJNJNtbETNZ=h400-no",
"link": "https://www.klinehomeexteriors.com/blog/upgrade-your-homes-exterior-with-stonework"
},
{
"description": "Check out our latest blog post on tips to follow before installing new Vinyl Siding!",
"date": "Jul 7, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNl49lhymIZHTNZejjthCcV2DwHpdaPWd20bWte=h400-no",
"link": "https://www.klinehomeexteriors.com/blog/before-installing-new-vinyl-siding"
},
{
"description": "Check out our latest blog to help you choose a new roof for your home!",
"date": "May 13, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipP7tsANa2TyubOFjmQjof2sHs-0L4_ytdzxQq3h=h400-no",
"link": "https://www.klinehomeexteriors.com/blog/how-to-choose-a-new-roof-for-your-home"
},
{
"description": "What makes our composite decking so unique? ⭐️They use compress technology, which makes the decking dense, strong and built to last!⭐️The EverGrain core, which is used in amusement parks and stadiums, is resilient and durable.⭐️Non-repeating grains makes each board stand out with a natural appearance.Are you ready to update your deck to something that will last?",
"date": "Apr 27, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipOaKDSNYDlqzoRMHF6dC131I5g9s94R3nDPJQL7=h400-no",
"link": "https://www.klinehomeexteriors.com/services/decks-porches"
},
{
"description": "Are you looking for a company with a mission?We value you as a customer, and strive to make a positive impact on your home!",
"date": "Mar 18, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNAslnaPnm9MsCLK8xot57PL9WopoeaCDefYmxE=h400-no",
"link": "http://klinehomeexteriors.com/"
},
{
"description": "Exciting things are coming!We filmed a short segment with Fox 8 for their Virtual Home Show!Scott is a great face for the company. We will let you know soon when it's airing and where you can catch it!",
"date": "Jan 26, 2022",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipMqMpKCGgFGVR_ZbcxDJtfs6-rLcosxmLtM0l5k=h400-no",
"link": "http://klinehomeexteriors.com/"
},
{
"description": "Is this chilly weather making you long for spring?Start dreaming! What projects are you looking forward to in 2022?",
"date": "Dec 14, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipMjtqOOj8eFRyQ1bUaKfdl_pjz3GUUeqJQtVRAB=h400-no",
"link": "http://www.klinehomeexteriors.com/"
},
{
"description": "What a difference a new roof can make! Add a modern flare 🔥 to your home with a WeatherMax Metal Roof and see the difference on your own home! 🏡",
"date": "Nov 3, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNoa4qSJ1Vsj6W_Im_QAbDSAxkiVc_eqpHrraed=h400-no",
"link": "http://www.klinehomeexteriors.com/"
},
{
"description": "What are your home exterior dreams? Let Kline Home Exteriors help you make them come true!",
"date": "Oct 6, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipNJGcclDn3Y1zFdm0s3Abkel_sHBp3tJw0uY41x=h400-no",
"link": "http://www.klinehomeexteriors.com/"
},
{
"description": "Are you thinking about the deck you've been wanting to build? NOW IS THE TIME! We have time to build your deck in 2021! Contact us today for your free quote!",
"date": "Aug 18, 2021",
"image": "https://lh3.googleusercontent.com/geougc/AF1QipMj0veifwlrbFvLDf22MCsI5efwXHZjPu9DAEEO=h400-no",
"link": "http://klinehomeexteriors.com/"
}
],
"next_page_token": "CgwI7vvziAYQ2M6i6QIqBkVnSUlDZw=="
}
}
Last updated