I am trying to use the Google Custom Search Engine to retrieve news articles from specific sites. I have created a test search engine and add some sites to it to search into.
My problem is that I have a web application to add or remove these site and I want to change theses sites in the CSE programmatically but I couldn't find any way to do it.
Is there ant API to configure my search engine?
I have found the answer, it's under Creating Custom Search Engines programatically, but unfortunately it is not free :(
Related
Right now I'm using Custom Search Engine (CSE) to search through entire web by search term. The request looks like:
GET "https:/www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&q=SEARCH_TERM"
And this request returns me list of search results.
But, I need to implement search by image or image url. Do Google API provide such a url param? Maybe something like "image_url"? So, the request can look the following:
https://www.googleapis.com/customsearch/v1?key=API_KEY&cx=SEARCH_ENGINE_ID&image_url=http://www.example.com/image.png
Basically, I need to implement the same functionality as images.google.com/ but using my Custom Search Engine. Thanks.
Example of what I need to implement:
As far as I know, what you're looking for is only supported by Vision AI service (partially at least, never used it before). Google CSE API only allows you to search images and not by images as you may noticed.
I'm trying to pull pictures from Google Images using AJAX and a color filter.
The Google Search API has been deprecated, and use of the Custom Search API is encouraged instead. However, in reading the Programmer's Guides found there, I see no option for global search instead of site-specific search. It says here to set up a custom search engine, but this requires the searching to be limited to a specific URL!
There is a similar SO post which links to a Google Groups discussion. The only solutions offered there are either to use the deprecated API, something I'm rather loath to do since access has been limited, or to use the Bing API instead, which cannot filter searches by colors.
Are there really no other solutions? Is it impossible to perform a global Google Images search using AJAX?
I have a search bar which should show me only the PDF files from Google when i start searching for something.Which API can i use for searching in google and how can i integrate that in my code.Are there any tutorial available for it.
You'll use the Documents List API
You'll search by MIME type.
It'll look like this (but needs to be properly encoded):
GET https://docs.google.com/feeds/default/private/full/-/{http://schemas.google.com/g/2005#kind}application/pdf
Can I use Google Search API to search pages by html source? I want to make a different search engine which will set limits on the engine based on the code of each site. For example, suppose I want to set a parameter which will exclude sites which contain headings. Is this possible?
I am making an opensearch plugin to be used as a search engine provider in the browser.
http://library.curtin.edu.au/services/toolbar/#searchPlugin
As there is no way to specify any ajax call in the xml file,
How do I make a drop down box populated with search suggestions?
Many thanks
Firefox supports extensions on the OpenSearch Search Engine Plugin format including the ability to indicating a type of application/x-suggestions+json which is used to specify the URL to use for fetching search suggestions.
See https://developer.mozilla.org/en/creating_opensearch_plugins_for_firefox.
For lots of examples see http://mycroft.mozdev.org/index.html.