Compact results

Parameter name: compact
Aliases: c
Default: 1 (on)
Values: 1,0 (on,off)
Description: Returns results with abbreviated fieldname descriptions. E.g. total="1622" will be displayed as t="1622".
Example: The following query returns the results with abbreviated fieldname descriptions for the phrase airport parking:
http://api.keyworddiscovery.com/query.php?query=airport+parking&compact=1


Results

Results are returned as XML. Two examples are listed below, one with compact enabled and one without:

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

This request is for the search term "airport parking" with compact results displayed. By default, compact result display is turned on if this parameter is not specified. 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>

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

This request is for the search term "airport parking" with compact results disabled. By default, compact result display is turned on if this parameter is not specified. The XML returned from this query is shown below:

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

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

  • q (query) - query string
  • t (total) - total search
  • m (result monthly) - 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.




Limit | Database