GetQueryList
From Wiki
The 'getQueryList' API request will return a query list and a list of popular search terms.
Parameters
Element |
Type |
iCategoryId optional |
Category ID to restrict query list to
Value Type: int |
bUseGlobalList optional |
Select query list from all publishers or only your publisher list
Value Type: bool |
iAdult optional |
Allow adult content
Value Type: int |
iLimit optional |
Max number of results to return
Min: 0 Max: 100 Value Type: int |
Response
oQuery |
Objects containing query term, category id and number of occurrences
Value Type: Query |
Example Request (parameters)
$aParams10= array('iCategoryId' => 69, 'bUseGlobalList' => true, 'iLimit' => 5); $oResponse = $oClient->call('getQueryList', $aParams10);
Example Response
stdClass Object ( [oQuery] => Array ( [0] => stdClass Object ( [sQuery] => MEMOREX Storage Media [iCategoryId] => 69 [iCount] => 26 ) [1] => stdClass Object ( [sQuery] => backup drive [iCategoryId] => 69 [iCount] => 19 ) [2] => stdClass Object ( [sQuery] => dvd recorder [iCategoryId] => 69 [iCount] => 13 ) [3] => stdClass Object ( [sQuery] => Verbatim Storage Media [iCategoryId] => 69 [iCount] => 10 ) [4] => stdClass Object ( [sQuery] => Storage Media [iCategoryId] => 69 [iCount] => 10 ) ) )