Is there an API to autocomplete Google Scribe?

Is there a way to use the Google Scribe autocomplete service (in Google Labs) via the api - do you give it a word or words and it completes it?

+3
source share
1 answer

As far as I know, there is still no official API for Google Scribe. But to play a little, you can use the same API calls as Google Scribe. Just check the AJAX calls that they make during input.

Here is an example call with curl:

curl -i -X POST -H 'Content-Type: application/json' -d '{"method":"scribe.textSuggestions.get","id":"scribe.textSuggestions.get","params":{"query":". this is a t","cp":40},"jsonrpc":"2.0","key":"scribe.textSuggestions.get","apiVersion":"v1"}' https://www.googleapis.com/rpc?key=AIzaSyBStAcD4WoVx3l1Cmc8xKvJTm2c0G2eqH4
+3
source

Source: https://habr.com/ru/post/1764524/


All Articles