"Search instead for" json property

131 views
Skip to first unread message

sn187

unread,
Apr 25, 2012, 5:48:48 PM4/25/12
to Google AJAX APIs
Hi,
I'm looking for the property for "Search instead for" so I can get the
contents of the Google spelling suggestion. I am trying to make a b2b
like call to Google search api and using Gson object to parse the
response. But, I don't know the exact property / attribute name of
the "Search instead for" so I can get it's content.
Thanks,

Jeremy Geerdes

unread,
Apr 25, 2012, 6:44:03 PM4/25/12
to google-ajax...@googlegroups.com
There is no such property accessible via any of Google's public APIs. I believe Bing has a spelling API. Yahoo! used to have one, but I'm not sure I would rely on it even if it is still available.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrge...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
> --
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> google-ajax...@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-searc...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

omr

unread,
Apr 25, 2012, 8:44:20 PM4/25/12
to google-ajax...@googlegroups.com

JSON/Atom Custom Search API results data can include a "spelling" object with "correctedQuery" and "htmlCorrectedQuery" properties.  You can observe this as follows:

Create a Custom Search Engine (CSE):

  http://www.google.com/cse/  

Configure the CSE to search the web:

  http://support.google.com/customsearch/bin/answer.py?hl=en&answer=1210656

Use the JSON/Atom Custom Search API:

  https://developers.google.com/custom-search/v1/overview

Submit this (misspelled) query via the API:

  surfboreds

The API will return results for the uncorrected query, but the "spelling" object will provide "correctedQuery" and "htmlCorrectedQuery" properties:

  "spelling": {
    "correctedQuery": "surfboards",
    "htmlCorrectedQuery": "\u003cb\u003e\u003ci\u003esurfboards\u003c/i\u003e\u003c/b\u003e"
   }

See related documentation:

Use your browser's text search function to find all occurrences of "correctedQuery" in the "Response" section of this page from API documentation:

  https://developers.google.com/custom-search/v1/cse/list#response


-- omr

sn187

unread,
Apr 26, 2012, 10:38:27 AM4/26/12
to Google AJAX APIs
I see, I'll check out other API's you listed.
Thanks.

On Apr 25, 6:44 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> There is no such property accessible via any of Google's public APIs. I believe Bing has a spelling API. Yahoo! used to have one, but I'm not sure I would rely on it even if it is still available.
>
> Jeremy R. Geerdes
> Generally Cool Guy
> Des Moines, IA
>
> For more information or a project quote:
> jrgeer...@gmail.com

sn187

unread,
Apr 26, 2012, 10:39:49 AM4/26/12
to Google AJAX APIs
Thanks for the suggestion to use custom search api ... but I wonder
how it would work with person names.
I guess I'll come back and report about that :)
Thanks.

On Apr 25, 8:44 pm, omr <omr99...@yahoo.com> wrote:
> JSON/Atom Custom Search API<https://developers.google.com/custom-search/v1/overview>results data can include a "
> spelling" object with "*correctedQuery*" and "htmlCorrectedQuery"
> properties.  You can observe this as follows:
>
> Create a Custom Search Engine (CSE):
>
>  http://www.google.com/cse/
>
> Configure the CSE to search the web:
>
>  http://support.google.com/customsearch/bin/answer.py?hl=en&answer=121...
>
> Use the JSON/Atom Custom Search API:
>
>  https://developers.google.com/custom-search/v1/overview
>
> Submit this (*misspelled*) query via the API:
>
>   surfboreds
>
> The API will return results for the *uncorrected *query, but the "spelling"
> object will provide "*correctedQuery*" and "htmlCorrectedQuery" properties:
>
>   "spelling": {
>     "*correctedQuery*": "*surfboards*",
>     "htmlCorrectedQuery": "\u003cb\u003e\u003ci\u003e*surfboards*
> \u003c/i\u003e\u003c/b\u003e"
>    }
>
> See related documentation:
>
> Use your browser's text search function to find all occurrences of "*
> correctedQuery*" in the "Response" section of this page from API
Reply all
Reply to author
Forward
0 new messages