Is there an API to get results similar to Google's "people also search for"? - semantic-web

I'm looking for an API that would give similar results to the Google's "people also search for" feature. So that, for instance, when I search for Stanley Kubrik, I see all the other film directors that people search for.
I know about the Freebase API but it simply provides information about the search item, not what other search items it may be related to.
There is also a TargetingIdeaSelector tool in Google AdWords API that shows related keywords, but that doesn't really range the results semantically.
Finally, there's a very simple Bing API that shows related searches (also here), but, again, it does not range information semantically.
Do you know of any API or maybe if there is something like that in Google's APIs that would show me related searches ranged semantically?

Google used to offer such API but it was decapricated a few years back. I am unsure why this was the case but my guess is because it housed no real benefit for them and likely cost a lot to maintain. most major search engines tend to not have search API's in my experience.
You could however try an make your own using a PHP and DOM Parser to parse the results from somewhere like google and export the data out as JSON.
available for download here http://simplehtmldom.sourceforge.net
This should pull out all the links from Google which you can then format out. You can parse all data and can target objects see the documentation for more
$search = $_GET['search'];
> $google_search = file_get_html('https://www.google.co.uk/?gws_rd=ssl#q=' . $search);
>
> foreach($google_search->find('a') as $item) {
> echo $item->href . '<br>';
> }
Hope that helps

The results that Google shows is based on massive amount of data that i guess built on "what X who searched for Y also searched for", "what other people similar to X who also searched for Y searched for" and so on. In addition maybe there is some reliance on semantic information coming from Freebase.
On an initiative to understand what kind of properties Google shows in their infoboxes, i.e. Why when we search for France we get a card with map, flag, capital, population ... etc. amongst the hundreds of properties relate to France i created a "Knowledge Base Extractor " that is able to parse the Google infobox and expose the data as RDF using the Fresnel Vocabulary.
The Algorithm implemented is the following:
Query DBpedia for all concepts (types) for which there is at least one instance that has a link to a Freebase ID
For each of these concepts pick (n) instances randomly
For each instance, issue a Google Search query:
if an infobox is available -> scrap the infobox to extract the properties
if no infoxbox is available, check if Google suggests "do you mean ... ?" and if so, traverse the link and look for an infobox
if no infobox or correction is available, disambiguate the concept (type) used in the search query and check if an infobox is returned
if Google suggests disambiguation in an infobox parse all the links in it -> it is best to find which suggestion maps to the current data-type we are using -> check the Freebase - DBpedia mappings
Cluster properties for each concept
I also capture that "people searched for" section, but you might also want to tweak it a bit more.
Also note that you might want to check the CSS selectors for the infobox as Google changes them often (maybe auto-generated). This is done in the options.json
"knowledgeBox" : "#kno-result",
"knowledgeBox_disambiguate" : ".kp-blk",
"property" : "._Nl",
"property_value" : ".kno-fv",
"label" : ".kno-ecr-pt",
"description" : ".kno-rdesc",
"type" : "._kx",
"images" : ".bicc",
"special_property" : ".kno-sh",
"special_property_value" : "._Zh",
"special_property_value_link" : "a._dt"

Related

Schema.org mandatory fields and the time needed until Google shows changes

I have implemented Schema.org (using Microdata) inside my product pages and when I check Google Webmaster Tools it is crawled by Googlebot and interpreted successfully. The point is I have not implemented some properties inside Product type like brand.
I need to know whether there is some subset of all product attributes should be implemented essentially?
And the second question is how much it takes for Google to show product rating and price as rich snippet inside search results?
There are no mandatory properties/types in Schema.org.
However, consumers of the data, like Google Search, might have rules under which conditions they will make something with your data (e.g., they are looking for specific properties). So you’d have to check their documentation.
For Google Search, their Rich Snippets are documented at https://developers.google.com/structured-data/rich-snippets/. The Products Rich Snippets lists the required and optional properties/types. As you can see, the brand property is not required by Google for showing their Rich Snippet in the search results.
Hussein
As google has pointed out the structured data required for a snippet are :
Product
Name
Description
Pricespecifications (to include:)
Pricecurrency
Pricevalue
Availability
Validfrom
Image
First you should consider checking if the validfrom and availability attributes are added because both of them are the most common mistakes when you write your first SEO codes.
Then there are some attributes that while they are not in required list by Google's developers there seem to be the once that all successful snippets have (you might have noticed that too ) , the : review and vote attributes including the expect values from schema.org libraries. In some people's opinion ,mine also, having those will "almost" make sure they will get noticed.
Those are not pretty easy to get because u will have to create a way for getting reviews and votes.
Otherwise try using the webmaster new tool search console to highlight data for product snippet. Just make sure that the required attributes have their expected values in the text so you can mark all the above attributes with the tool.
Make sure all the attributes are markup and not meta data as it shows you are just making information up.
About the time , check that the structured data have increase for the peoduct and if not then fetch and submit to index.

Rich snippet display issue in google search

Rich snippets is not working in as google says though it can recognize all of the information in structured data section of the following tool. I am using schema.org sites Place type. Is it the issue? If so, then what should I use in my situation. I need to show the following information given in the image. Most important part is to display image of the Place.
*.google.com/webmasters/tools/richsnippets.
Extracted structured data
Item
type: *://schema.org/place
property:
url: *://condonow.com/Toronto--New-Condos--Plaza-Developments--Musée
image: *://condonow.com/Handlers/ImageHandler.ashx?imageID=55174
telephone: 416-862-0888
name: Musée
description: Toronto - New Condos - Plaza Developments - Musée - Overview
Item
type: *://schema.org/postaladdress
property:
name: Address
streetaddress: 525 Adelaide St W
postalcode: M5V 1T4
addressregion: ON
addresslocality: Toronto
Item
type: *://schema.org/geocoordinates
property:
latitude: 43.6452196
longitude: -79.40313659999998
Item
type: *://schema.org/event
property:
name: Worksheet Submission
startdate: 04/19/2013 09:00 AM
Note that it takes time to re-index your website for search engines. The changes in the search results (not rich snippet testing tool) might show after few days. However, in my opinion the main reason why it doesn't show up in the search results is that Google search engine doesn't support that type of content.
Google Search Engine Supports:
Reviews
People
Products
Businesses and organizations
Recipes
Events
Music
Applications
Video
Breadcrumbs
You can read more about these content types and what type of content Google search engine supports at here -http://blog.victorlava.com/what-is-a-rich-snippet-everything/
I see three issues here.
First, AFAIK there is no Rich Snippets in Google Web Search for organizations (pls, look at the docs). So the only thing you may expect - is some kind of Rich Snippets in Local Search (docs).
Second, organizations markup (and Local Search itself) is about, well, organizations - services, businesses, etc. As I get from your site you have real estate listings - it's different. So I'm not sure that you can get any type of rich snippet at all.
Third, at page you have four separate objects (place, postaladdress, geocoordinates, event). Currently there is no way to figure out connection between them. I suppose you wanted to indicate that you have this object (musee) at this address (Toronto, ...) with this geo (lat, long). I'd recommend to use nested items instead (e.g., put address inside Place using itemprop). Maybe (I'm not sure) it'd be better for you to use schema.org/Organization. But as I said it's likely enough that you just can't get anything for you listings either way.
BTW I'm not from Google and it'd better to get answer from someone there.

Getting Website Category Against Keywords Using Google Search API

As the question suggest, does the Google Custom Search API have function to return category (music, entertainment, news, gaming, etc) based on input keywords?
You can use Adwords Keyword Planner tool or display plannertool for getting related ideas of keywords.

Amazon API search results vs. Amazon.com search results

For our web app, which will use Amazon's API as a basis for some of the site's main interactions, we required the ability to do a generalized search of Amazon's products and return results based on relevancy. The expectation was that their API would work exactly like their actual site's search.
Unfortunately it does not. For instance, querying "joy of cooking" does not return a link to the famous cook book, but to some food processor. Contrarily, on the actual site, one would see the book isn't just first, but it and any derivations occupy the top 5 or so results.
Is there a way of getting this level of relevancy search from Amazon's API without specifying a node to browse through? We need to be able to search everything at once, and the API seems very limited on parameter sets.
The answer is that, if you use "All" as your sorting basis, rather than "Blended", you will get results that are inline with Amazon's own product search. Older docs don't seem to account for this discrepency, but testing both methods has shown "All" to be the preferred product sorting method.
http://docs.amazonwebservices.com/AWSECommerceService/2010-11-01/DG/
Pagesearch under "SearchIndex: All"
You don't get any item sorting options with this method, but if all you want is "most relevant" results, this is the preferred method.

Programmatic Querying of Google and Other Search Engines With Domain and Keywords

I'm trying to find out if there is a programmatic way to determine how far down in a search engine's search results my site shows up for given keywords. For example, my query would provide my domain name, and keywords, and the result would return a say 94 indicating that my site was the 94th result. I'm specifically interested in how to do this with google but also interested in Bing and Yahoo.
No.
There is no programmatic access to such data. People generally roll out their own version of such trackers. Get the Google search page and use regexes to find your position. But now different results are show in different geographies and results are personalize.
gl=us parameter will help you getting results from US, you can change geography accordingly to get the results.
Before creating this from scratch, you may want to save yourself some time (and money) by using a service that does exactly that [and more]: Ginzametrics.
They have a free plan (so you can test if it fits your requirements and check if it's really worth creating your own tool), an API and can even import data from Google Analytics.