bossterms API
---------------
This small API allows you to get keywords connected with a search term
using Yahoo's BOSS API
You have several URL parameters:
term: the search term (needs to be words and spaces, everything else
is filtered out)
callback: the name of a JavaScript method to wrap the JSON return in -
JSON-P I guess you can call it.
format: If format is set to html the API returns an HTML list. If
it isn't set, it returns a JSON object with a JavaScript header.
This allows you to use this script as a form action (with a
hidden for field called format) and override this normal
behaviour with JavaScript.
The JSON output has the following properties:
term: Your search term
keyterms: An array of the keywords
html: The keywords as an HTML list
Try it out:
Get keywords for "donkey" as HTML:
bossterms.php?term=donkey&format=html
Get keywords for "kitten" as JSON:
bossterms.php?term=kitten
Get keywords for "puppies" as JSON and call "bark":
bossterms.php?term=puppies&callback=bark
Chris