New from QuotesKill is a QuotesKill API that allows you to incorporate quotes into your own website. We currently do not return quotes through XML, but rather in XHTML, so that they can more easily be included in your HTML pages. This is possible through an
include function in a variety of web programming languages.
The API can be accessed through the URL
http://quoteskill.com/api.php and is used as follows:
Passed parameters are
style -- plain or rich --
maxlength -- specified by the maximum desired character length for the quote -- and
id, if a user only wants to get a specific quote. If no id value is passed, a random quote will be returned each time.
If plain is passed for style, the quote is returned along with a link-less author name. If rich is passed, the quote is returned with a linked author name
Example URL: http://quoteskill.com/api.php?style=rich&maxlength=300 This would return a random quote under 300 characters in length with a linked byline.
Note: the quote text can be styled by selecting the class
qk-quote. Also, there is a
<p> tag before the byline. It can be styled by selecting the class
qk-p. In addition, the byline can be styled by selecting the class
qk-byline.