Search API: keywords

07/10/2009

Search for templates may return no or unsatisfactory results. It can be complemented by searching for matching keywords and presenting them as additional web-to-print search options to the user.

Search request

The request can be HTTP GET or POST and should be made to http://zetaprints.com?page=api-keywords only. The search returns keywords for the entire web-to-print database. Search within a specific domain is not available yet.

POST fields

  • Search – a string value up to 250 characters of search terms

The same field can be used in HTTP GET, but you need to use ; as a parameter separator instead of &.

Example: http://zetaprints.com/?page=api-keywords;Search=cards

Search results

The results are returned in an RSS-like XML format, sorted by title.

<title>found keyword</title>

<description>number of templates for this keyword</description>

Your application can sort or filter the results by the number of templates and show only top-N.

<rss version="2.0">
 <channel>
 <lastBuildDate>Wed, 07 10 2009 01:40:39 +0000</lastBuildDate>
 <title>Web-to-print keywords</title>
 <link>http://zetaprints.com</link>
 <generator>ZetaPrints</generator>
 <item>
 <title>A6 CARDS</title>
 <description>12</description>
 </item>
 <item>
 <title>Business Cards</title>
 <description>1331</description>
 </item>
 <item>
 <title>Name Cards</title>
 <description>217</description>
 </item>
 <item>
 <title>Namecards</title>
 <description>217</description>
 </item>
 <item>
 <title>Thank You Cards</title>
 <description>243</description>
 </item>
 <item>
 <title>Visiting Cards</title>
 <description>141</description>
 </item>
 </channel>
</rss>
See also: