STANDS4 Web Services:

Quotes API

The Quotes API from STANDS4 enables you to get famous quotations data by author or subject. Use the Quotes REST API to enrich your website or application content and features.

Request URL:

https://www.stands4.com/services/v2/quotes.php

Request parameters:

uid string Y  

Your API user id

Parameter Value Required Default Description
tokenid string Y  

Your valid developer token id

searchtype string Y RANDOM

The type of query to perform, could be one of the following:

SEARCH, AUTHOR, or RANDOM

query string    

Author name in case of AUTHOR request, or any query in case of SEARCH request

format string N xml

The format in which you want the result returned (xml or json)

Sample request URL:

https://www.stands4.com/services/v2/quotes.php?uid=1001&tokenid=tk324324324&searchtype=AUTHOR&query=Albert+Einstein&format=xml

Response elements:

Element Description
results

Contains all of the query responses

result

Contains each individual response

quote

The quote text

author

The quote author

Sample response:

<?xml version="1.0" encoding="UTF-8"?>
<results>
    <result>
        <quote>The only real valuable thing is intuition.</quote>
        <author>Albert Einstein</author>
    </result>
    <result>
        <quote>Never underestimate your own ignorance.</quote>
        <author>Albert Einstein</author>
    </result>
</results>
{
	"results": {
		"result": [
			{
				"quote": "The only real valuable thing is intuition.",
				"author": "Albert Einstein"
			},
			{
				"quote": "Never underestimate your own ignorance.",
				"author": "Albert Einstein"
			}
		]
	}
}

Want to use this service?

The Quotes API service is free to use for up to 100 queries per day.

For a premium commercial license, please contact us.

Apply here

Browse Quotes.net

Quiz

Are you a quotes master?

»
Who said, “Hope is the power of being cheerful in circumstances that we know to be desperate.”
A G.K. Chesterton
B Desmond Tutu
C Christopher Reeve
D C.S. Lewis