message-quoteQuotes API

API for famous quotes: Inspirational and notable sayings

A quotes API is like a treasure chest of inspirational words, allowing you to easily access and integrate quotes into your apps and websites. It's the perfect tool for adding a touch of motivation, wisdom, or humor to your content.

Base URL

The base URL for the Quotes API is:

https://santechapi.vercel.app

Authentication

headers : {
"token" : {YOUR API KEY}
}

Endpoint: /quotes

HTTP Method: GET

Example Request:

GET /quotes

Example Response:

200

[
	{
		"q": "There are no mistakes in life, only lessons.",
		"a": "Robin Sharma",
		"c": "44",
		"h": "<blockquote>&ldquo;There are no mistakes in life, only lessons.&rdquo; &mdash; <footer>Robin Sharma</footer></blockquote>"
	},
	{
		"q": "Truth is like the sun. You can shut it out for a time, but it ain't going away.",
		"a": "Elvis Presley",
		"c": "79",
		"h": "<blockquote>&ldquo;Truth is like the sun. You can shut it out for a time, but it ain't going away.&rdquo; &mdash; <footer>Elvis Presley</footer></blockquote>"
	},
	{
		"q": "Sometimes you have to travel a long way to find what is near.",
		"a": "Paulo Coelho",
		"c": "61",
		"h": "<blockquote>&ldquo;Sometimes you have to travel a long way to find what is near.&rdquo; &mdash; <footer>Paulo Coelho</footer></blockquote>"
	},
	{
		"q": "Elegance does not consist in putting on a new dress.",
		"a": "Coco Chanel",
		"c": "52",
		"h": "<blockquote>&ldquo;Elegance does not consist in putting on a new dress.&rdquo; &mdash; <footer>Coco Chanel</footer></blockquote>"
	}
]

The response includes the quote text and the author.

Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

Example Error Response:

400

Feel free to explore the Quotes API and retrieve random quotes for inspiration or motivation.

If you have any further questions or need additional assistance, feel free to ask.

Last updated

Was this helpful?