Show Query total

Parameter name: show_query_total
Default: no
Values: yes (the query will show the total result if this parameter is included in the address, regardless of its value. omitting this parameter altogether will stop the query displaying the total result)
Description: Shows the total number of results for each item in the result set.
Example The following query shows the total number of results for each result for the phrase airport parking:
http://api.keyworddiscovery.com/query.php?query=airport+parking&show_query_total=yes

WARNING: The show_query_total parameter will use an additional api credit per result. For example, if the limit is set to 1000, the total number of API credits used will be 1001. A query using the show_query_total parameter will be slower than other queries due to the need for additional data fetching.


Results

Results are returned as XML. Two examples are listed below:

http://api.keyworddiscovery.com/query.php?query=airport+parking&show_query_total=yes

This request is for the search term "airport parking" with show_query_total enabled. By default, compact result display is turned on. The XML returned from this query is shown below:

<?xml version="1.0" encoding="utf-8"?>
<results compact="true" maximum="10" offset="0" query="airport parking">
 <r m="6240" q="airport parking" results="6533" t="3720" />
 <r m="1077" q="manchester airport parking" results="150" t="642" />
 <r m="755" q="orlando airport parking" results="177" t="450" />
 <r m="500" q="sea-tac airport parking" results="24" t="298" />
 <r m="495" q="atlanta airport parking" results="108" t="295" />
 <r m="458" q="seatac airport parking" results="79" t="273" />
 <r m="446" q="philadelphia airport parking" results="112" t="266" />
 <r m="433" q="laguardia airport parking" results="26" t="258" />
 <r m="423" q="bristol airport parking" results="51" t="252" />
 <r m="413" q="newark airport parking" results="103" t="246" />
 <exclude />
</results>

http://api.keyworddiscovery.com/query.php?query=airport+parking

This request is for the search term "airport parking" with show_query_total omitted. By default, compact result display is turned on. The XML returned from this query is shown below:

<?xml version="1.0" encoding="utf-8"?>
<results compact="true" maximum="10" offset="0" query="airport parking">
 <r m="6240" q="airport parking" t="3720" />
 <r m="1077" q="manchester airport parking" t="642" />
 <r m="755" q="orlando airport parking" t="450" />
 <r m="500" q="sea-tac airport parking" t="298" />
 <r m="495" q="atlanta airport parking" t="295" />
 <r m="458" q="seatac airport parking" t="273" />
 <r m="446" q="philadelphia airport parking" t="266" />
 <r m="433" q="laguardia airport parking" t="258" />
 <r m="423" q="bristol airport parking" t="252" />
 <r m="413" q="newark airport parking" t="246" />
 <exclude />
</results>

Each result is returned as an 'r' tag with the following attributes

  • q - query string
  • t - total search
  • results - number of unique searches with the keyword/s within the phrase
  • m - monthly estimate. (takes into account a percentage of data that Keyword discovery has in relation to the total number searches done world wide.)



NOTE: Data provided on a URL has to be correctly URL encoded.




Show total | Multiple queries