问题
I need your help. I am looking to create a custom search engine.
I am currently looking at using the Google Custom search API. I tried looking into this but I couldn't find anything concrete.
Is there any way to setup related search words on a Google Custom search website? Is there any API that can generate "searches related to"?
回答1:
Yes, there is a service by SimilarSites which outputs data very similar to the Google Related API, but they use their own proprietary algos.
回答2:
I'm not pretty sure what you mean by "searches related to". Nevertheless for every single request in CSE API you can specify the following parameters:
- linkSite - "Specifies that all search results should contain a link to a particular URL".
- relatedSite - "Specifies that all search results should be pages that are related to the specified URL".
- orTerms - "Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms".
- hq - "Appends the extra query terms to the query".
More infos can be found here.
May be it will be useful for you.
回答3:
There are several interesting APIs that can help you here.
Keywords Competitors API - This is an API that let you query a domain and get all the other domains that are competing on the same paid or organic search keywords.
Search Keywords API - Another API that will provide all the leading keywords (paid and organic) for a given domain. This can even be broken down to specific countries.
SimilarWeb API - Get more websites that are similar to a given domain, based on many different factors including keywords and tags.
来源:https://stackoverflow.com/questions/11547584/google-custom-search-api-searches-related-to-function