We have a huge collection of quotes in our database. And our best Quotes API gives easy way to access the data. Note if you are using our public API / quotes from our website an attribution link back to theysaidso.com is required. If you don't want to display attribution please sign up for the private API. Here is the code you can cut and paste to provide attribution.
<span style="z-index:50;font-size:0.9em;"><img src="https://theysaidso.com/branding/theysaidso.png" height="20" width="20" alt="theysaidso.com"/><a href="https://theysaidso.com" title="Powered by quotes from theysaidso.com" style="color: #9fcc25; margin-left: 4px; vertical-align: middle;">theysaidso.com</a></span>
Which will translate to something like this in your webpage. Nothing too big. Just a small token of appreciation from you for our service.theysaidso.com
The end point for connecting, if you subscribe directly from us use this endpoint.
Currently we support API Key based authentication. Please set a request header 'X-TheySaidSo-Api-Secret' with value of your API key. Alternatively you can also pass api_key=
Here is an example of requesting for a random quote using curl.
curl -v -i -X GET -H 'X-TheySaidSo-Api-Secret: <your_api_key>' http://quotes.rest/quote.json
Here is an example of requesting for a random quote using passing api_key as a parameter.
Want it in JSON format? Just append .json to the query like below. Alternatively you send a http accept header indicating you expect json response. Mashape by default does this so if you are using Mashape the following is not applicable.
Just append .xml to the query to get the result in XML format.
To maintain our service level we rate limit (10 API calls per hour) our public API usage. If you sign up and use the private api key or any of the supported authentication schemes this limit is increased to according to the service level of your plan.
To get the quote of the day use the following api call.
We have more than 15 categories (5 categories published now. 10 categories are being added) for our Quote of the Day service. To get the all the categories in the QOD system, use the following API.
Here is example of requesting a Management Quote of the day!
Want a random quote from our system? Call the following API.
Want a quote that fits your display profile? You can use any of the following combination to pick the best quote size.
The following returns a quote with at least 100 char length.
The following returns a quote with maximum of 100 char length i.e. 0-100 char length quote.
The following returns a quote with a length between 100 chars to 300 chars.
We categorize the quotes with tags and we have lot of categories of quotes in our system. To browse the categories in the system, use the following api. Adjust the start parameter to browse.
If you need a random quote from any of the above 500+ categories, just specify the category in you query.
You can also programmatically add quotes to our system using our API. Use REST PUT to add a new quote. This will be your private quote in the system.
We have beautiful curated quotes as images. You can access them easily using our API and show them in your websites or Applications. To get a random quote image use the following:
To get a random quote image from a particular category use the following:
To get a random quote image from a particular author use the following:
The private API methods are accessible only through subscription. Drop us a note (Choose About > Contact) if you have any questions.
|1 API Key|
|8,000 API Calls/Day|
|1 API Key|
|2,500 API Calls / Day|
|1 API Key|
|1000 API Calls / Day|
If you don't want to subscribe directly from us, you can also get access through Mashape. Click the button below to visit our API at Mashape and subscribe from Mashape.