I am coding in Google Apps Script.
I have an URL like that https://www.google.com.vn/search?q=something.
I want to send a GET request to that URL and from the response, I can know the number of results that should be show in the top of the SERPs. (like the picture)
Is there any way for me to do that?
Sending a GET request to a web page will get you html response, instead you can try Google's Custom Search JSON API
And I quote:
The JSON Custom Search API lets you develop websites and applications to retrieve and display search results from Google Custom Search programmatically. With this API, you can use RESTful requests to get either web search or image search results in JSON format.
Related
I am looking at a dart library that hits a specific vimeo url...
https://player.vimeo.com/video/{videoId}/config
Hitting this url returns a json file with a lot of fields. I am trying to find any docs that give a description of all of these fields. I have been unable to do so at this point.
When I got to the Vimeo API reference, it refers to language specific apis like the python api or the javascript api, not the restful api (or at least the portion I am looking for).
Does anyone know how to find docs that refer to the json returned from the previously listed URL?
I think you want to go to the API reference docs:
https://developer.vimeo.com/api/reference/videos#search_videos
On that page you can scroll down and review the Response (there are three areas to click: Details, Example and Reference). You want reference.
I am currently working on a project using the google maps JS API. i would like to display the place type in a similar fashion to how a google search would result (example below).
Using the getDetails method in PlacesService (as show here), i can receive an array of types for a place, yet they are not descriptive as what a google search shows, and are not localized. is it possible to achieve using the API?
Currently, the API doesn't provide this information.
There are a couple of feature requests in the Google issue tracker that might match your requirement:
https://issuetracker.google.com/issues/35822953
https://issuetracker.google.com/issues/35827225
You can star these feature requests to add your vote and subscribe to further notifications.
I'd like to programatically get a list of all of the valid place types for search requests. I can look at the list here, but would like to be able to query the server and get a json list so I can keep it up to date automatically instead of having to check the linked page periodically.
Is there an API for that?
I have this url to view the nearest hospitals with the given coordinates.
http://maps.google.com/maps?q=hospitals+near+{lat},{long}
Is their a way to get the results in XML or JSON?
Thanks!
You have lots of options, starting here. IF you want a URL you can query and get back XML or JSON then go here.
Those are links directly to the Google APIs documentation. You have many options available including a JavaScript API as well as a web service that can retrieve JSON or XML.
I'm using YQL to query a Google Spreadsheet for a list of ISBN's. I'd like to take those ISBN's and use Google Books API to generate a column of Google Preview buttons for those books.
Here's a fiddle I've started:
http://jsfiddle.net/SpuXG
Now in this example from Google, ISBNs are submitted as a form and that input is used by the Google API / JSON.
http://goo.gl/b15yC
Is there a way to get Google's API to take the ISBNs from the existing JSON object from my YQL instead of the input form?
The only way I've found to do something similar is via Google Books bookshelves (not with a spreadsheet or YQL). Here's a fiddle: http://jsfiddle.net/TECHg/1/