Tiny Search Api


[Update: the tiny icon factory has moved from tiny.media.mit.edu to tinyiconfactory.com]


search (this broke when I upgraded wordpress. I will fix it eventually)

This an example search form using json, that retrieves the first 252 or less icons matching a given term from the Tiny Icon Factory. I am using Brent's new REST style search API for the Tiny framework. It is very simple to use, you just have to query the server with a URL that looks like this:

http://tinyiconfactory.com/search/[term].[format]

where term stands for what you're searching for, and format can be html, xml, or json (term.js in this case), with html as the default. When using json, you can optionally provide a name for a callback function:

http://tinyiconfactory.com/search/tiny.js?callback=myfunction

You can visit the Tiny Search Documentation page for more detailed information on how to use this API. These are a few examples using html:

http://tinyiconfactory.com/search/obey.html
obey.png

http://tinyiconfactory.com/search/sun.html
sun.png

http://tinyiconfactory.com/search/slime.html
slime.png

http://tinyiconfactory.com/search/lock.html
lock.png

It is interesting what you get when you search for love:
http://tinyiconfactory.com/search/love.html
You get contradiction.
love.png

Here are links to the icons named with the 13 first positive integers:
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13. Weird.

Other fun things to try: any letter from the alphabet (a, t, or any other), no,
pong
, joe, play, martini, jesus ... or anything else (almost).

Leave a Reply