Random Famous Quotes

Private API

Get a random quote in JSON format. Current categories are: - famous - movies

  • Incorrect category being returned in API

    published 2 years ago

    Hi, all,

    This issue should be fixed now. Please let me know if it still gives you problems.

    Also, anyone who wants to contribute with quotes - even for different categories - please reach out to me and we can work it out.

  • Random Famous Quotes API up again

    published 3 years ago

    First of all, I apologize for the problems lately with the API, I am using this API myself in a couple of projects with my clients, so I understand the frustration when this was not working. I have recently switched servers and I don't plan on switching again, so the API will remain up from now on.

    If you have more categories and quotes you want to contribute with, just open a ticket to get in touch with me and we can see how you can send me either a sql import file with the data or just a CSV or Excel file, what I need is these fields: quote, author, category.

    If anyone is having problems making the API work for the different categories - currently only "famous" and "movies" - please take a look at this sample cURL call I do to make it work, and adjust to your needs:

                $ch = curl_init();
                curl_setopt( $ch, CURLOPT_URL, 'https://andruxnet-random-famous-quotes.p.mashape.com/' );
                curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
                curl_setopt( $ch, CURLOPT_POSTFIELDS, 'cat=' . $category_name );
                curl_setopt( $ch, CURLOPT_HTTPHEADER, array( 'X-Mashape-Authorization: $mashape_key' ) );
                $quote_data = json_decode( curl_exec( $ch ) );
                curl_close( $ch );

    Thanks for hanging in there using the API.