And I Quote API

A simple API to display quotes on your website.

And I Quote lets you manage your quotes database and allows you to have random quotes displayed on your website. The API allows for simple RSS or JSON calls and accepts a few parameters. You can choose to access rss or json feeds. Here are the most simple request you can put in:

http://andiquote.org/rss.php
http://andiquote.org/json.php

The feeds above will give you the twenty most recently submitted quotes. For all examples below, we use the rss feed. But, you can as easily use the json feed.

Quotes on a keyword

You can request quotes on a particular keyword, or multiple keywords, like so:

http://andiquote.org/rss.php?k=76

The above will give you the latest quotes on the (public) keyword work.

http://andiquote.org/rss.php?k=76,141

The above will give you quotes matching the (public) keywords work OR growth.

You can also add a page number to that (starting from page 0):

http://andiquote.org/rss.php?k=76,141&p=1

The above will return the second page of quotes matching 'work' OR 'growth'.

Quotes from an author

You can request quotes from a particular author, like so:

http://andiquote.org/rss.php?a=67

The above will give you quotes by George Bernard Shaw.

You can make some combos:

http://andiquote.org/rss.php?a=67&k=116

The above will return quotes by George Bernard Shaw on government.

Quotes submitted by a user

Of course you can also ask for quotes submitted by a particular user, like so:

http://andiquote.org/rss.php?u=3

The above will give you quotes submitted by user babakfakhamzadeh.

And you can make some combos:

http://andiquote.org/rss.php?a=797&k=142&u=3

The above will return quotes by Aleksandr Solzhenitsyn on the (private) keyword friendship, submitted by user babakfakhamzadeh.

Quotes hearted by a user

You can also request quotes hearted by a particular user, like so:

http://andiquote.org/rss.php?h=1

And random too!

You can add the parameter r=1 to any feed to have a random quote returned matching the criteria you specify. Here's an example:

http://andiquote.org/rss.php?a=797&k=142&u=3&r=1