Random Affirmation API

This endpoint returns a random affirmation to boost your confidence and motivation. Affirmations are positive statements that can help you overcome negative thoughts and improve your mindset and well-being.

There is also an image matching the affirmation that can be combined, see below:

Affirmation Example
GET
https://api.apileague.com/retrieve-random-affirmation
Example Request and Response
GET
https://api.apileague.com/{{ examples.getRandomAffirmation }}
{
    "image": "https://img.apileague.com/portrait-backgrounds/affirmation-177.png",
    "affirmation": "My job brings me joy and happiness."
}
cURL
Java
Javascript
Python
Go
C#
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}
 {{ codeCopyText }}

Frequently Asked Questions

What are affirmations?

Affirmations are positive statements that can help you challenge and overcome self-sabotaging and negative thoughts. When you repeat them often and believe in them, you can start to make positive changes.

Can I get affirmations for specific topics?

Currently, the API returns a random affirmation from a curated list designed to be generally uplifting and motivating.

Does it include images?

Yes, the API response includes a URL to a background image that matches the affirmation, which is perfect for creating visual content.

How is the Random Affirmation API different from the Random Quote API?

The Random Affirmation API provides positive statements designed to boost self-confidence, while the Random Quote API returns famous quotes from various authors on a wide range of topics.

Questions? Need Help? Ask Away