PaperQuotes API

Collection of Quotes from hundreds different categories in 15 languages.

https://api.paperquotes.com/quotes?tags=love,life&language=en

{"quote": "Don't cry because it's over, smile because it happened.", "author": "Dr. Seuss", "tags": [ "smiling", "happiness", "life", "smile" ], "language": "en" }

PaperQuotes API PlayGround

Go!

EASY INTEGRATION

Our API can be easily integrated into every existing platform in any language. Take a look at some coding examples.


$ch = curl_init();
$headers = array(
'Authorization: Token {token}',
'Content-Type: application/json',
 
);
$api_endpoint = 'http://api.paperquotes.com/apiv1/quotes/?tags=love&limit=5';
curl_setopt($ch, CURLOPT_URL, $api_endpoint);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_HEADER, 0);
 
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
 
curl_setopt($ch, CURLOPT_TIMEOUT, 30);
 
$response = curl_exec($ch);
 
echo $response;

Make sure you have Jquery included:


$.ajax({ 
   type : "GET", 
   url : "https://api.paperquotes.com/apiv1/quotes/", 
   beforeSend: function(xhr){xhr.setRequestHeader('Authorization', 'Token {token}');},
   success : function(result) { 
       console.log(result.results); 
   }, 
   error : function(result) { 
     //handle the error
   } 
 }); 

                    

See full client documentation here:

https://github.com/markus-perl/gender-api-client-npm


import requests, json

PAPERQUOTES_API_ENDPOINT = 'http://api.paperquotes.com/apiv1/quotes?tags=love&limit=5'
TOKEN = '{your_token}'
response = requests.get(PAPERQUOTES_API_ENDPOINT, headers={'Authorization': 'TOKEN {}'.format(TOKEN)})

if response.ok:

    quotes = json.loads(response.text).get('results')

    for quote in quotes:
        print quote.get('quote')
        print quote.get('author')
        print quote.get('tags')

using System; 
using System.IO; 
using System.Net; 
   
namespace Examples.System.Net
{
    public class WebRequestGetExample
    {
        public static void Main()
        {
            // Create a request for the URL.  
            WebRequest request = WebRequest.Create(
              "http://api.paperquotes.com/apiv1/quotes/?curated=1&tags=love,life");
             
            request.Headers.Add("Authorization", "Token {token}");
            // If required by the server, set the credentials. 
            //request.Credentials = CredentialCache.DefaultCredentials;
             
            // Get the response. 
            WebResponse response = request.GetResponse();
            // Display the status. 
          //  Console.WriteLine(((HttpWebResponse)response).StatusDescription);
             
            // Get the stream containing content returned by the server.
            // The using block ensures the stream is automatically closed.
            using (Stream dataStream = response.GetResponseStream())
            {
                // Open the stream using a StreamReader for easy access. 
                StreamReader reader = new StreamReader(dataStream);
                // Read the content. 
                string responseFromServer = reader.ReadToEnd();
                // Display the content. 
                Console.WriteLine(responseFromServer);
            }
             
            // Close the response. 
            response.Close();
        }
    }
}
                    

Clients

Free Plan Available

Sign up and get 500 free API calls!

PRICING

10%
Now only for a short time
Sign Up Today And Get A
10% Discount On Your Subscription

Subscription Plans

FREE
500 API calls/month
✓ All API endpoints
✓ All Categories
✓ All Languages
✓ Email Support
 
0.00 USD
Per month
BASIC
5,000 API calls/month
✓ All API endpoints
✓ All Categories
✓ All Languages
✓ Email Support
14.99 USD
9.99 USD
Per month
STANDARD
25,000 API calls/month
✓ All API endpoints
✓ All Categories
✓ All Languages
✓ Email/Phone Support
19.99 USD
17.99 USD
Per month
PREMIUM
100,000 API calls/month
✓ All API endpoints
✓ All Categories
✓ All Languages
✓ Priority Support
99.99 USD
74.49 USD
Per month

Subscriptions can be canceled at any time.

All prices are quoted as net prices and subject to VAT.

Sign up now and receive a 10% discount code by email which can be used with any package.