Using multiple google search API keys in a same website? - google-api

I have made a custom search engine using Google search API. The search engine has 2 separate engines (categories) and I want to use separate API keys for them. Does this violate the TOS of Google ?

Related

How do I change which of my projects a call to the Google Programmable Search Engine/Element Paid API uses?

I am making calls to the Google Programmable Search Engine/Element Paid API googleapis.com/customsearch/v1. I want to change which project it refers to.
What controls that?
Does each project have a Search Engine key?
Does each Search Engine key have a project?
Should I create a new Search Engine?

Google translate API with synonyms

I am using Google translate API in my iOS app. But to get the best fit translation for my words, I need to get synonyms of translated word like it present on Google Translate web page.
I have found some libraries which provide synonyms but all works with English words only.
Is there any Google API which we can use with google translate api to get synonyms of translated word in target language.
The Google Translation API service doesn't support the multiple translations of a word functionality. This feature is only available via the web interface at translate.google.com, as it is mentioned in the Google's official FAQs documentation.
Based on this, it seems that GCP doesn't offers a specific API alternative you can use to get synonyms; Therefore, I think you should try by using third-party software, such as Datamuse API or the libraries you mentioned before, to get the synonyms and then translate them by using the Google Translation API service as an available workaround.

User search in RESTful spring API

So basically, I have a spring API with MySQL database and I need to be able to perform search of a user by his name in front-end web app which is using my API. The trick is that I need a kind of google search so by typing, lets say, 3 letters, list of all users who's name starts from these 3 letters would be returned from the API to the web app. By typing or deleting any letter, list should change dynamically.
My question is how can implement this kind of "dynamic" search in my API. What should requests look like? What should the whole architecture of the process in the API look like?
There are a number of ways to pull this off. Coding this in your API is probably going to be the least efficient. I would recommend using SOLR or Lucene to index the data you want to search on. Your front-end will have some JS that will update your list when characters are entered or deleted in the text field.
JQuery provides a plugin that might be just what you're looking for from the UI.
https://jqueryui.com/autocomplete/

How to retrieve google search results legitimately, can you do this with custom search engine?

I need to retrieve google search results for about 200 phrases per day, legitimately through google's systems. I am using php and have been using googles old web search api: https://developers.google.com/web-search/ though as it clearly states it is now officially deprecated. They want users to move across to the "Custom Search Engine API", which I have signed up to be billed for does not do the same thing, it won't run without a cx parameter, meaning you REQUIRE a custom search engine, which you cannot (any more) set to show google results.
Is there a legitimate way to query google for results any more or am I stranded using the existing API up to its 100 query limit per day until they switch it off?

Google Image Search API: Search by two or more domain restrictions

In Google Image Search (the web interface) you can restrict your search results by a single domain. It appears that the same rule applies to the API (http://code.google.com/apis/imagesearch/v1/reference.html#_methods) but as far as I know, the "one site" rule isn't documented anywhere (other than never mentioning multiple sites).
Does anyone know if it is possible to restrict a search across two or more domain names via the web interface OR the Image Search API?
This is not supported. The Google Image Search API is also being deprecated, so it would be best to search for alternatives anyway.

Resources