Show Total

Show Total
Parameter name: show_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 found results from the current query.
Example: The following query shows the total number of results for the phrase airport parking:
http://api.keyworddiscovery.com/query.php?query=airport+parking&show_total=yes


Results

Results are returned as XML. Two examples listed below, one with show_total enabled, other with the parameter omitted:

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

This request is for the search term "airport parking" with show_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" total_found="6533">
 <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>

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

This request is for the search term "airport parking" with show_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
  • 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.




Adult Filter | Show query total