Google Custom Search Query Parameters and Category Parameters

Dusty picture Dusty · Dec 12, 2012 · Viewed 9.2k times · Source

So I'm trying to set the query parameters and category parameters for google custom search. Here is an example search results page url:

http://www.whiterootmedia.com/search_results/index.html?q=my%20search%20phrase

So it looks like the default query parameter is q so I put q in the box when setting up the analytics portion for my google custom search engine. Is this ok? I read it wasn't ok to use q but to instead use query? And why does it matter?

Also should I set a category parameter that looks to be optional.

Thanks, Dusty

Answer

perNalin picture perNalin · Dec 31, 2012

The Google Search API just uses q. AFAIK the API doesn't have a query parameter. Check out the custom search API documentation.

Not sure what you mean by the 'category' parameter. Haven't come across that one before.