Search code examples
google-custom-searchgoogle-apis-explorer

What is the parameter I should use to find the exact search term


Using google search engine api to extract data from google. what is the parameter I should use to find the exact search_term

https://www.googleapis.com/customsearch/v1?key="YOUR_KEY"&cx="ENGINE_API"&q="search_term&alt=json

Solution

  • You may want to try exactTerms.

    exactTerms (string) - Identifies a phrase that all documents in the search results must contain.

    Request > Parameters > exactTerms
    https://developers.google.com/custom-search/json-api/v1/reference/cse/list#exactTerms