Google Places javascript API request all published business locations from my account - google-maps

I have a few Google Map locations added at my business.google.com account.
I'm trying to find a way to request all of them from my account; to include them in my website.
I've already signed up for my API key, and added my trusted domain, but I haven't found a way to request all of them with the API without already knowing either their locations or place ID.
My goal here is to manage only one list at Google account to keep them updated. I don't want double-management, adding and editing them both at my Google account and my website database.
I've figured out that I can download my locations as cvs file, that could be then uploaded to my website database when a location is edited or updated. But is there any way to request a json with them directly with the javascript API from within my website domain in one ajax request?
E.g. 'https://maps.googleapis.com/maps/api/place/details/json?key=MY-KEY&someOtherParam=toGetThemAll'
Thanks in advance

You can look into Google My Business API:
https://developers.google.com/my-business/content/prereqs
There is a REST endpoint to get a list of locations related to one account:
https://developers.google.com/my-business/reference/rest/v3/accounts.locations/list

Related

Website Restrict Google Maps API key dynamicly via SDK

my question: Is there any Google API / SDK I can use to be able to dynamically add "HTTP referrers (web sites)" (assign domains) to maps API key ?
Background
I'm building a web-application portal that will allow anyone to create a business website and assign a custom domain to it.
On that generated website customer will have google maps map pointing to address of their business.
Customer has an option to add custom domain to their business website created by my web-application (by CNAME to the my web-application)
Desired feature is that once the domain background job will get triggered that will add that domain/host to list of restricted domains/hosts for my Google Maps Api key so that their domain will be able to read google maps on their domanin
note: I Have cron job DNS lookup validation check implemented to ensure that domain is really assigned to the domain
live example
here is website generated by customer on my web-application http://sbs-sos.sajtka.sk/ he assigned a domain and pointed CNAME http://sbs-sos.sk/
Reason why the google map works is because I manually white-listed their domain. I need to automate this
please aware portal is not fully launched so many bugs are happening
The feature request to manage API keys restrictions via SDK was submitted in Google issue tracker in 2016:
https://issuetracker.google.com/issues/35829646
Currently, there are no any official SDK for that. However, the last update from Google says that they released experimental API to programmatically manage your API Keys and their restrictions.
The best way to handle thousands of authorized domains is to use an API to programmatically manage your API Keys and their restrictions, and we have recently launched a new service that allows you to do this.
This API is still in Alpha. If you are interested in becoming a Trusted Tester for this service, you can use the following form to sign up, please read the instructions carefully:
https://forms.gle/qx2SMcarWCAsbWVp7
Please note that this API is not part of the Google Maps Platform. After you fill out the form, you will be contacted by the API Keys API team with instructions on how to get started, and how to receive support.
API Keys API is currently free of charge. However, please note that use of Cloud Endpoints may be subject to charges at high traffic volume. You can check the pricing sheet here:
https://cloud.google.com/endpoints/pricing-and-quotas
I would suggest joining Trusted Tester program and try out this API.
I hope this helps!

How can I search for files shared with a group?

Using the Google Drive v3 Api, I would like to list all files that have been shared with a certain group.
When I add the following to the qparameter for files.list, an empty set is returned. Can anyone clarify that the {email_address} in writers query only accepts user email addresses and not group email addresses?
Is there any other way to list files shared to a group email using the Google Drive Api?
Edit:
It was working for a while and today it stopped returning results again. It seems that the Google Drive API team has changed something on this?
Google must have pushed a fix to the API, since it just started working...

google reviews with places API - no data for business with hidden address?

I was trying to embed google plus reviews on my website using the google places api. The following link is the process I used to set this up.
http://gurutechnolabs.tumblr.com/post/112214772991/how-to-embed-google-reviews-using-google-places
When I enter https://maps.googleapis.com/maps/api/place/textsearch/json?key=yourAPIKey&query=YourPlace into the browser I don't get any data when I enter my business name. I do get data when I enter a different business name. I suspect the issue is my business address isn't public as I serve customers only at their location. Is this the issue and any way to use this feature with a hidden address? Thanks in advance.
If your business is defined as Service Area Buiseness, it will not be accessible via Places API search or Places API autocomplete.
If this is feasible, try to change the type of the business in Google My Business. Not sure if it will be possible to extract reviews by a place ID, however, it's not easy to figure out what is the place ID of your business.
Can I have the link to your business in Google Plus for further investigation?

Using Google API to find if a company has a website

I am looking for a solution that would tell me if a particular company has a website. The way I imagine using it is: I would send a phrase-based query to the API (for example "Salesforce Limited") and it would return a website if it has one in its database).
I checked Google Maps API and Google Places API but can's see if they provide website addresses for places.
I know Google displays a location on the right hand side if you type a name of the place and at times also has a website link referring to it:
example data I am after
Do you know if the website data can be accessed by any of the Google APIs and if not what could be an alternative way of obtaining such data?
Thanks
Kam

Embed a map from Google Maps Engine

A friend of mine has a Google Maps Engine account where he loads up map data which he want's to share with users. These maps are private (ie you need to log in to view them). I've made a system using PHP where people can login to my friends website and I want them to be able to view these maps embedded in his website.
In the Google Maps Engine (GME) interface each map has an 'API ID' and 'Layer names/keys'.
I also have a an API Project with an API Key, client ID, secret etc. Using my API Project I've been able to get an Access token and a Refresh token for my email address which is in the "viewable by" section of the GME interface.
My goal is that I can log onto my friend's website then, using server side PHP, use the refresh token which is now stored in a database, get an access token and echo the content part of his page with the map inside it.
This is what I want to do https://developers.google.com/maps/documentation/javascript/examples/mapsenginelayer-noauth-layerkey
But with Authentication.
I figured it out, in case anyone else has the same question you just need to add
accessToken: 'the_access_token',
In the list of Maps Engine Layer options. I fount the answer here: https://developers.google.com/maps/documentation/javascript/3.exp/reference#MapsEngineLayerOptions