Affirmations API
Elevate Your Mind, Transform Your Life with Powerful AI-Powered Positive Affirmations 🌟
🧘 Unleash the Power of Positive Thinking
Our cutting-edge Affirmations API delivers instantly personalized, inspiring messages to boost mental wellness, motivation, and personal growth. With 2,520 affirmations across 56 curated categories and multi-format response support (JSON or plain text), this API is your all-in-one solution for wellness, meditation, and personal development applications.
🌈 Key Features
- Vast Affirmation Library: 2,520 unique affirmations from 8 curated data sources — deduplicated, normalized, and tag-standardized
- 56 Categories: Covering love, health, beauty, gratitude, spiritual growth, happiness, money & success, blessings, sleep & relaxation, anxiety relief, self-love, motivation, and more
- Instant Retrieval: Real-time, personalized affirmations with multi-format responses (JSON via
?format=jsonor plain text via?format=text) - Flexible Filtering: Category filtering, full-text search, pagination, and randomization
- Daily Deterministic Affirmation: Consistent daily affirmation via the
/todayand/dailyendpoints - Personalization: Insert user names and target specific moods/goals via
/personalize - Thought Reframing: Transform negative thoughts into positive affirmations via
/reframe - Bundles & Schedules: Affirmation + breathing exercise bundles via
/bundleand recommended daily schedules by timezone via/schedule - Batch Retrieval: Shuffled batches of affirmations via
/batch - Enterprise Reliability: 99.99% uptime guarantee and scalable enterprise-grade infrastructure
📊 Affirmation Categories (56 total)
Core Categories: Love, Health, Beauty, Gratitude, Spiritual Growth, Happiness, Money & Success, Blessings, Sleep & Relaxation
Additional Categories: Anxiety Relief, Self-Love, Self-Worth, Romantic Love, Positive Thinking, Confidence, Motivation & Productivity, Joy & Positivity, Inner Peace & Calm, Mental Health, Career & Confidence, Creativity, Emotional Healing, Friendships & Connection, Grief & Healing, Habit, Morning Affirmations, Evening Affirmations, Family Harmony, Focus & Study, Loneliness & Connection, Manifestation & Attraction, Mental Clarity & Focus, Presence & Mindfulness, Prosperity & Financial Abundance, Purpose & Life Direction, Recovery, Relationships, Resilience, Self-Love & Self-Worth, Spiritual Connection & Faith, Success & Achievement, Crisis Support, Depression Support, and more.
🔧 API Endpoints
1. List Affirmations (Paginated)
GET /v1/affirmations
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| category | string | – | Filter by affirmation category |
| lang | string | en | Language code |
| limit | integer | 10 | Items per page |
| page | integer | 1 | Page number |
| search | string | – | Full-text search |
Response Schema:
{
"items": [
{
"id": 123,
"text": "I make decisions that come from my heart",
"category": "love",
"mood": "romantic",
"lang": "en",
"length": 45
}
],
"meta": {
"count": 2520,
"currentPage": 1,
"itemsPerPage": 10,
"numberOfPages": 252
}
}
2. Get All Categories
GET /v1/affirmations/categories
Response:
[
"love",
"health",
"beauty",
"gratitude",
"spiritual",
"happiness",
"money",
"blessing",
"sleep",
"anxiety",
"self-love",
"motivation",
"success",
"inspiration"
// ... and 42 more categories
]
3. Random Affirmation by Category
GET /v1/affirmations/categories/{category}/random
Response Example:
{
"id": 42,
"text": "I make decisions that come from my heart",
"category": "love",
"mood": "romantic",
"lang": "en",
"length": 45
}
4. Get Random Affirmation
GET /v1/affirmations/random
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| category | string | – | Optional category filter |
| format | string | json | Response format: json or text |
| lang | string | en | Language code |
Response Example (JSON):
{
"id": 7,
"text": "I am free spirited and positive.",
"category": "beauty",
"mood": "inspired",
"lang": "en",
"length": 32
}
Response Example (Plain Text):
I am free spirited and positive.
5. Get Today’s Affirmation
GET /v1/affirmations/today
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| category | string | – | Optional category filter |
| lang | string | en | Language code |
Returns the deterministic affirmation of the day — the same affirmation is returned for all users on a given day.
Response Example:
{
"id": 88,
"text": "Each new day brings fresh opportunities for growth.",
"category": "motivation",
"mood": "hopeful",
"lang": "en",
"length": 48
}
Alias: GET /v1/affirmations/daily — returns the same deterministic daily affirmation.
6. Get a Batch of Affirmations
GET /v1/affirmations/batch
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| category | string | – | Optional category filter |
| lang | string | en | Language code |
| limit | integer | 10 | Number of affirmations to return |
Response:
[
{
"id": 12,
"text": "I am confident in my abilities.",
"category": "confidence",
"mood": "empowered",
"lang": "en",
"length": 34
},
...
]
7. Get a Personalized Affirmation (POST)
POST /v1/affirmations/personalize
Request Body:
{
"mood": "confidence",
"goal": "success",
"name": "Alex"
}
Returns an affirmation matched to the given mood with the user’s name inserted into the message.
Response Example:
{
"id": 156,
"text": "Alex, you are confident and capable of achieving great success.",
"category": "confidence",
"mood": "confidence",
"lang": "en",
"length": 58
}
8. Reframe a Negative Thought (POST)
POST /v1/affirmations/reframe
Request Body:
{
"negativeThought": "I can't do this."
}
Returns a positive reframe of the given negative thought.
Response Example:
{
"reframed": "I am capable of learning and growing through this challenge."
}
9. Get an Affirmation Bundle
GET /v1/affirmations/bundle
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| category | string | – | Optional category filter |
Returns an affirmation paired with a matching breathing exercise — perfect for meditation and wellness apps.
Response Example:
{
"affirmation": {
"id": 55,
"text": "With every breath, I release tension and welcome peace.",
"category": "sleep",
"mood": "calm",
"lang": "en",
"length": 47
},
"breathingExercise": {
"name": "Box Breathing",
"inhaleSeconds": 4,
"holdSeconds": 4,
"exhaleSeconds": 4,
"holdEmptySeconds": 4,
"cycles": 4
}
}
10. Get a Daily Schedule
GET /v1/affirmations/schedule
Query Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
| timezone | string | – | Timezone identifier (e.g., America/New_York) |
Returns recommended morning and evening times for affirmation practice based on the given timezone.
Response Example:
{
"timezone": "America/New_York",
"morning": "07:00",
"evening": "20:00",
"suggestedAffirmations": [
{
"category": "morning",
"text": "Today is a new beginning filled with possibilities."
},
{
"category": "evening",
"text": "I release today's worries and welcome restful sleep."
}
]
}
💡 Use Cases
- Mental Health Apps — Daily mood support and positive reinforcement
- Personal Development Platforms — Self-improvement and goal-setting content
- Meditation & Wellness Tools — Mindfulness prompts and breathing pairings
- Educational Resources — Social-emotional learning content
- Productivity Enhancement — Morning motivation and focus boosters
- Sleep & Relaxation Apps — Evening wind-down affirmations
- Journaling Apps — Daily reflection prompts
🌟 Why Choose Our Affirmations API?
- Scientifically Crafted Messages from 8 trusted sources
- Always Fresh & Unique — 2,520 deduplicated affirmations across 56 categories
- 99.99% Uptime Guarantee — Enterprise-grade reliability
- Scalable Enterprise Solution — Handle large volumes efficiently
- Easy Integration — Simple RESTful API design with JSON or text responses
- No Machine Learning Required — Ready-to-use content out of the box
- Multi-Format Support — JSON for apps, plain text for displays and widgets
📖 Integration Guidelines
- RESTful API design
- JSON and plain text responses
- Optional category filtering on most endpoints
- Pagination support for list endpoints
- Language support via
langparameter (default:en)
📞 Support Channels
- Email: [email protected]
Transform your digital experience, one affirmation at a time!
API Robots APIs:
- We provide and develop high-quality APIs.
- Our APIs have a 99.99% uptime.
- Our aim is to achieve the lowest possible latency.
Support: https://www.apirobots.pro/