I want to use Google API for Did you mean feature. So basically I want to write a piece of code, which sends a word to Google search and either Google finds the exact hits or gives a "DID YOU MEAN" reply which i would use.
Is it made available? Tried finding it but couldn't find.
Google Apps Script is a cloud-based JavaScript platform which allows developers to write scripts only owner can manipulate API services such as Calendar, Docs, Drive, Gmail, and Sheets and easily create Add-Ons for these services with chromium based applications.
Stay organized with collections Save and categorize content based on your preferences. Google Cloud APIs are programmatic interfaces to Google Cloud Platform services.
The Google API stands for 'Application Programmable Interface', which is an interface that allows you to seamlessly integrate your software with Google services. The Google APIs can pull data from and/or automate features of Google Services like Google Analytics, Adwords, YouTube and more.
So I invested some time and this what I've found
1/ You should have your custom search engine
https://cse.google.com
2/ Configure it to search all webs
https://support.google.com/customsearch/answer/2631040?hl=en
3/ Make query to that engine following the document
https://developers.google.com/custom-search/json-api/v1/using_rest
Spelling / Did you mean repairs if possible can be found in "spelling" section. (Irrelevant sections removed) . Fox ex: I searched for "devart" here
{
"kind": "customsearch#search",
"url": {
},
"queries": {
"request": [
]
},
"context": {
},
"searchInformation": {
},
"spelling": {
"correctedQuery": "deviantart",
"htmlCorrectedQuery": "<b><i>deviantart</i></b>"
},
"items": [
]
}
I had the same question and its downvoted also while they are allowing these questions on the site. You may want to read about the auto-complete apis here
https://stackoverflow.com/questions/40061449/google-auto-correct-api
Google Search autocomplete API?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With