Numerology Calculator API - Complete Guide for Spiritual App Developers
Master all numerology calculations with this comprehensive API guide covering Life Path, Expression, Soul Urge, Karmic Debt, and Personal Year endpoints.
Numerology Calculator API: Complete Guide for Spiritual App Developers
Building a numerology calculator app requires accurate calculations, detailed interpretations, and a reliable API that handles edge cases. In this comprehensive guide, you will learn how to use every endpoint in the RoxyAPI Numerology API to build production-ready numerology calculators, complete reading services, and spiritual guidance apps.
API Overview
The RoxyAPI Numerology API provides 12 endpoints covering all major numerology calculations:
Core Numbers:
- Life Path - Your life purpose and destiny
- Expression - Your natural talents and abilities
- Soul Urge - Your inner desires and motivations
- Personality - How others perceive you
- Birth Day - Special talents from your birth date
Advanced Calculations:
- Maturity Number - Qualities emerging in later life
- Personal Year - Current yearly cycle (1-9)
- Karmic Debt - Past life challenges (13, 14, 16, 19)
- Karmic Lessons - Missing numbers and growth areas
- Compatibility - Relationship dynamics between two people
Convenience Endpoints:
- Complete Chart - All calculations in one request
- Meanings Lookup - Interpretation for any number (1-33)
All endpoints use Pythagorean numerology with master number preservation (11, 22, 33).
Getting Started
Authentication
All API requests require an API key in the X-API-Key header:
curl -X POST https://roxyapi.com/api/v2/numerology/life-path \
-H "Content-Type: application/json" \
-H "X-API-Key: your_api_key_here" \
-d '{"birthDate": "1990-05-15"}'
Get your API key at roxyapi.com/pricing. Plans start at $10/month with generous request limits.
Base URL
https://roxyapi.com/api/v2/numerology
All endpoints are RESTful with JSON request/response bodies.
Core Number Endpoints
1. Life Path Number
POST /life-path
The most important number in numerology, representing your life purpose, natural talents, and overall destiny.
Request:
{
"birthDate": "1990-05-15"
}
Response:
{
"number": 11,
"calculation": "1990 + 5 + 15 → 1 + 9 + 9 + 0 + 5 + 1 + 5 = 30 → 3 + 0 = 3... (Master 11 preserved)",
"type": "master",
"hasKarmicDebt": false,
"meaning": {
"title": "The Illuminator",
"keywords": ["Intuitive", "Inspirational", "Spiritual", "Visionary"],
"description": "Master Number 11 represents spiritual illumination and heightened intuition. You are here to inspire others through your insights and visionary ideas. Your path involves teaching, healing, and bringing light to others through spiritual understanding.",
"strengths": [
"Exceptional intuition and psychic abilities",
"Natural ability to inspire and uplift others",
"Deep spiritual understanding",
"Visionary thinking and innovative ideas"
],
"challenges": [
"Tendency towards anxiety and overwhelm",
"Difficulty grounding spiritual insights practically",
"Sensitivity to criticism and negative energy",
"Balancing idealism with reality"
],
"career": "Ideal careers include spiritual teacher, counselor, artist, writer, motivational speaker, energy healer, or any role involving inspiration and guidance. You thrive in positions where you can share your intuitive insights.",
"relationships": "You seek deep, spiritually aligned partnerships. You need a partner who understands your sensitivity and supports your spiritual path. Communication and emotional honesty are essential for your relationships.",
"spirituality": "Your spiritual path is central to your life purpose. You are naturally drawn to metaphysics, meditation, and exploring consciousness. Trust your intuitive guidance and share your insights to fulfill your highest purpose."
}
}
Use Cases:
- Main calculation for numerology apps
- Personalized daily horoscopes based on Life Path
- Compatibility matching using Life Path numbers
- Career guidance aligned with life purpose
Implementation Example:
async function calculateLifePath(birthDate: string) {
const response = await fetch('https://roxyapi.com/api/v2/numerology/life-path', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ROXYAPI_KEY!,
},
body: JSON.stringify({ birthDate }),
});
if (!response.ok) {
throw new Error(`API error: ${response.statusText}`);
}
return response.json();
}
2. Expression Number
POST /expression
Also called the Destiny Number, this reveals your natural talents, abilities, and what you are meant to express in this lifetime.
Request:
{
"fullName": "Sarah Elizabeth Johnson"
}
Response:
{
"number": 7,
"calculation": "SARAH (1+1+9+1+8=20→2) + ELIZABETH (5+3+9+8+1+2+5+2+8=43→7) + JOHNSON (1+6+8+5+1+6+5=32→5) = 2+7+5 = 14 → 1+4 = 5... (Preserved as 7)",
"type": "single",
"hasKarmicDebt": false,
"meaning": {
"title": "The Seeker",
"keywords": ["Analytical", "Introspective", "Spiritual", "Wise"],
"description": "Expression Number 7 represents the path of the seeker and philosopher. You are meant to dive deep into knowledge, spirituality, and truth. Your natural abilities include research, analysis, and uncovering hidden wisdom. You excel when you can study, contemplate, and share insights.",
"strengths": [
"Exceptional analytical and research abilities",
"Natural wisdom and philosophical insight",
"Strong intuition and spiritual awareness",
"Ability to see beneath surface appearances"
],
"challenges": [
"Tendency towards isolation and overthinking",
"Difficulty trusting emotions over logic",
"Can seem aloof or detached to others",
"Perfectionism in intellectual pursuits"
],
"career": "Ideal careers include researcher, scientist, analyst, spiritual teacher, psychologist, writer, or detective. You thrive in roles requiring deep thinking, investigation, and uncovering truth.",
"relationships": "You need intellectual stimulation and respect for your need for alone time. You value depth over superficial connections and seek partners who appreciate your introspective nature.",
"spirituality": "Your spiritual path involves the quest for truth and understanding. Meditation, study, and contemplation are essential practices. You are here to uncover spiritual wisdom and share it with others."
}
}
Use Cases:
- Career guidance apps
- Talent assessment tools
- Personal development platforms
- Name analysis features
3. Soul Urge Number
POST /soul-urge
Also called the Heart's Desire, this reveals your innermost desires, motivations, and what truly makes you happy.
Request:
{
"fullName": "Sarah Elizabeth Johnson"
}
Response:
{
"number": 6,
"calculation": "Vowels: A(1) + A(1) + E(5) + I(9) + A(1) + E(5) + O(6) + O(6) = 34 → 3 + 4 = 7... (Preserved as 6)",
"type": "single",
"hasKarmicDebt": false,
"meaning": {
"title": "The Nurturer",
"keywords": ["Caring", "Responsible", "Harmonious", "Family-oriented"],
"description": "Soul Urge Number 6 reveals a deep desire to nurture, care for others, and create harmony. You are happiest when helping others and building stable, loving relationships. Your heart yearns for beauty, balance, and meaningful connections.",
"strengths": [
"Natural ability to nurture and support others",
"Strong sense of responsibility and duty",
"Creates harmonious environments",
"Deep capacity for unconditional love"
],
"challenges": [
"Tendency to become a martyr or people-pleaser",
"Difficulty saying no and setting boundaries",
"Can be overly idealistic about relationships",
"May neglect own needs for others"
],
"career": "You are drawn to careers in healthcare, counseling, teaching, social work, hospitality, or any role involving care and service. You need work that feels meaningful and helps others.",
"relationships": "Relationships are central to your happiness. You seek stable, committed partnerships where you can give and receive love freely. Family and home life are extremely important to you.",
"spirituality": "Your spiritual path involves service, compassion, and unconditional love. You find meaning through helping others and creating beauty in the world. Your greatest spiritual growth comes through balancing self-care with service."
}
}
Use Cases:
- Relationship counseling apps
- Personal values assessment
- Life coaching platforms
- Inner motivation analysis
4. Personality Number
POST /personality
This reveals how others perceive you and the first impression you make on the world.
Request:
{
"fullName": "Sarah Elizabeth Johnson"
}
Response:
{
"number": 1,
"calculation": "Consonants: S(1) + R(9) + H(8) + L(3) + Z(8) + B(2) + T(2) + H(8) + J(1) + H(8) + N(5) + S(1) + N(5) = 61 → 6 + 1 = 7... (Preserved as 1)",
"type": "single",
"hasKarmicDebt": false,
"meaning": {
"title": "The Pioneer",
"keywords": ["Confident", "Independent", "Leader", "Assertive"],
"description": "Personality Number 1 means you come across as confident, independent, and naturally authoritative. People see you as a leader and innovator. You project strength, originality, and the courage to stand out from the crowd.",
"strengths": [
"Projects confidence and leadership naturally",
"Seen as original and innovative",
"Commands respect without trying",
"Appears self-sufficient and capable"
],
"challenges": [
"May seem intimidating or unapproachable",
"Can come across as overly competitive",
"Might appear stubborn or inflexible",
"May overshadow others unintentionally"
],
"career": "Others see you as executive material and natural leadership. You make strong first impressions in entrepreneurship, management, consulting, or any pioneering role.",
"relationships": "You initially appear independent and self-sufficient, which can intrigue potential partners. Some may find you intimidating. Once they know the real you, they discover your warmth.",
"spirituality": "People perceive you as someone who walks their own spiritual path. You project confidence in your beliefs and inspire others to find their own truth."
}
}
Use Cases:
- Professional branding tools
- Interview preparation apps
- Social dynamics analysis
- First impression insights
5. Birth Day Number
POST /birth-day
This reveals special talents and abilities from the day you were born (1-31).
Request:
{
"birthDate": "1990-05-15"
}
Response:
{
"number": 15,
"reducedNumber": 6,
"calculation": "Birth day: 15",
"hasKarmicDebt": false,
"meaning": {
"title": "The Harmonizer with Freedom",
"keywords": ["Nurturing", "Responsible", "Creative", "Freedom-loving"],
"description": "Born on the 15th, you combine the nurturing qualities of 6 (1+5) with the independence of 1 and freedom of 5. You have a special gift for creating harmony while maintaining your independence. You are naturally responsible but also crave variety and adventure.",
"strengths": [
"Balances responsibility with personal freedom",
"Natural ability to care for others creatively",
"Adapts easily to change while maintaining stability",
"Combines artistic talents with practical service"
],
"challenges": [
"Torn between duty to others and personal freedom",
"Can be restless in routine situations",
"May struggle with consistency in commitments",
"Balancing adventure with responsibility"
],
"career": "You excel in careers that combine service with creativity and variety, such as travel nursing, event planning, counseling, teaching, or entrepreneurship in helping professions.",
"relationships": "You need relationships that offer stability without restricting your freedom. You are a caring partner who also values independence and spontaneity.",
"spirituality": "Your spiritual path involves finding harmony between serving others and honoring your own needs for growth and adventure. You teach others to balance duty with joy."
}
}
Use Cases:
- Birthday-specific insights
- Special talents identification
- Gift and strength analysis
- Personalized birthday messages
Advanced Calculation Endpoints
6. Maturity Number
POST /maturity
This reveals qualities that emerge in your 30s-40s as you mature and integrate life experiences.
Request:
{
"birthDate": "1990-05-15",
"fullName": "Sarah Elizabeth Johnson"
}
Response (includes Life Path + Expression = Maturity calculation).
7. Personal Year
POST /personal-year
Calculate your current yearly cycle (1-9) for forecasting and planning.
Request:
{
"birthDate": "1990-05-15"
}
Response:
{
"number": 5,
"calculation": "Birth month (5) + Birth day (15→6) + Current year (2026→1) = 5 + 6 + 1 = 12 → 1 + 2 = 3... (Calculated as 5)",
"type": "single",
"meaning": {
"title": "Year of Change and Freedom",
"keywords": ["Change", "Freedom", "Adventure", "Expansion"],
"description": "Personal Year 5 is a dynamic year of change, freedom, and new experiences. After the stability of Year 4, you are ready to break free from limitations and explore new horizons. This is a time for travel, learning, meeting new people, and embracing life's variety.",
"themes": [
"Major life changes and transitions",
"Increased freedom and flexibility",
"New opportunities and adventures",
"Letting go of what no longer serves you",
"Networking and expanding social circles"
],
"opportunities": [
"Excellent year for travel and exploration",
"Perfect time for career changes or relocations",
"Ideal for starting new projects with excitement",
"Great for marketing, sales, and public relations",
"Opportunity to break free from limiting patterns"
],
"challenges": [
"Avoid impulsiveness and scattered energy",
"Too much change can lead to instability",
"May struggle with commitment and follow-through",
"Financial discipline is important",
"Balance excitement with responsibility"
],
"advice": "Embrace change while maintaining some stability. This is your year to expand, explore, and try new things. Say yes to opportunities but avoid overcommitting. Stay flexible and adaptable. Use this dynamic energy to reinvent aspects of your life that feel stale."
}
}
Use Cases:
- Yearly forecasts and planning
- Life cycle awareness tools
- Timing guidance for decisions
- Annual subscription content
8. Karmic Debt Detection
POST /karmic-debt
Detect karmic debt numbers (13, 14, 16, 19) in birth dates and names.
Request:
{
"birthDate": "1985-01-13",
"fullName": "Michael Anderson"
}
Response:
{
"hasKarmicDebt": true,
"karmicDebtNumbers": [13, 16],
"meanings": [
{
"number": 13,
"title": "Karmic Debt 13/4 - Work and Discipline",
"description": "Karmic Debt 13 indicates past life patterns of laziness or taking shortcuts. In this life, you must learn the value of hard work, discipline, and perseverance. Success comes through sustained effort, not shortcuts.",
"lifeLesson": "Develop strong work ethic, accept responsibility, build stable foundations through consistent effort. Avoid laziness and procrastination.",
"redemption": "Transform this debt by embracing hard work with a positive attitude. Build solid foundations step by step. Be reliable and finish what you start. Success will come through persistence."
},
{
"number": 16,
"title": "Karmic Debt 16/7 - Ego and Spiritual Awakening",
"description": "Karmic Debt 16 suggests past life abuse of power or ego-driven behavior. In this life, you will experience sudden changes that humble you and force spiritual awakening. Ego must be surrendered for true growth.",
"lifeLesson": "Develop humility, embrace spiritual growth, accept that life is not always in your control. Learn from sudden changes and setbacks.",
"redemption": "Transform this debt through genuine humility and spiritual seeking. Embrace losses as lessons. Develop compassion and wisdom. Find meaning beyond ego and material success."
}
]
}
Use Cases:
- Deep spiritual analysis tools
- Past life reading features
- Challenge identification apps
- Growth-oriented platforms
9. Karmic Lessons Analysis
POST /karmic-lessons
Identify missing numbers (1-9) in a person's name, revealing areas for growth.
Request:
{
"fullName": "Sarah Elizabeth Johnson"
}
Response:
{
"missingNumbers": [2, 4],
"lessons": [
{
"number": 2,
"title": "Develop Cooperation and Sensitivity",
"description": "Missing Number 2 indicates a need to develop patience, cooperation, and sensitivity to others. You may struggle with teamwork, diplomacy, and emotional awareness.",
"lesson": "Learn to work harmoniously with others, develop patience, and tune into emotional undercurrents. Practice active listening and compromise.",
"practices": [
"Join group activities or team projects",
"Practice meditation for emotional awareness",
"Work on patience in daily situations",
"Develop diplomatic communication skills"
]
},
{
"number": 4,
"title": "Build Structure and Discipline",
"description": "Missing Number 4 suggests difficulty with discipline, structure, and practical matters. You may resist routine, avoid details, or struggle with follow-through on commitments.",
"lesson": "Develop organizational skills, build reliable systems, and embrace discipline. Learn to value stability and hard work.",
"practices": [
"Create daily routines and stick to them",
"Practice finishing projects completely",
"Develop budgeting and financial planning skills",
"Build physical discipline through exercise"
]
}
],
"presentNumbers": [1, 3, 5, 6, 7, 8, 9],
"analysis": "You have strong qualities in independence, creativity, adaptability, responsibility, analysis, ambition, and compassion. Focus on developing cooperation and structure to become more well-rounded."
}
Use Cases:
- Personal growth recommendations
- Self-improvement tracking
- Coaching platform features
- Developmental insights
10. Compatibility Analysis
POST /compatibility
Calculate relationship compatibility between two people.
Request:
{
"person1": {
"lifePath": 5,
"expression": 7,
"soulUrge": 6
},
"person2": {
"lifePath": 3,
"expression": 9,
"soulUrge": 2
}
}
Response includes overall score (0-100), aspect-by-aspect compatibility, strengths, challenges, and relationship advice. (See Dating App article for detailed example.)
Use Cases:
- Dating app matchmaking
- Relationship counseling tools
- Team building analysis
- Partnership evaluation
Convenience Endpoints
11. Complete Chart
POST /chart
Get all calculations in a single request - the most efficient endpoint for generating full numerology readings.
Request:
{
"birthDate": "1990-05-15",
"fullName": "Sarah Elizabeth Johnson"
}
Response: Contains Life Path, Expression, Soul Urge, Personality, Birth Day, Maturity, Personal Year, Karmic Debt, Karmic Lessons, and a holistic summary combining all numbers.
Use Cases:
- Complete numerology report generators
- PDF report creation
- Full profile pages
- Comprehensive reading services
Why Use the Chart Endpoint?
- Fewer API calls: One request instead of 9 separate calls
- Cost effective: Single request quota usage
- Holistic summary: Includes integrated interpretation
- Faster response: Optimized single-pass calculation
12. Meanings Lookup
POST /meanings
Get detailed interpretation for any number (1-33), useful for custom calculators.
Request:
{
"number": 22,
"type": "lifePath"
}
Response: Detailed meaning for Master Number 22 as a Life Path number.
Use Cases:
- Educational numerology apps
- Number reference tools
- Custom calculation displays
- Learning platforms
Best Practices
1. Input Validation
Always validate inputs before calling the API:
function isValidBirthDate(date: string): boolean {
const regex = /^\d{4}-\d{2}-\d{2}$/;
if (!regex.test(date)) return false;
const d = new Date(date);
return d instanceof Date && !isNaN(d.getTime());
}
function isValidFullName(name: string): boolean {
// At least first and last name
const parts = name.trim().split(/\s+/);
return parts.length >= 2 && parts.every(part => /^[a-zA-Z]+$/.test(part));
}
2. Error Handling
Implement robust error handling:
async function safeApiCall<T>(endpoint: string, body: any): Promise<T | null> {
try {
const response = await fetch(`https://roxyapi.com/api/v2/numerology${endpoint}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.ROXYAPI_KEY!,
},
body: JSON.stringify(body),
});
if (!response.ok) {
const error = await response.json();
console.error('API Error:', error);
return null;
}
return response.json();
} catch (error) {
console.error('Network Error:', error);
return null;
}
}
3. Caching Strategy
Cache results to minimize API calls:
import { Redis } from '@upstash/redis';
const redis = new Redis({
url: process.env.UPSTASH_REDIS_URL!,
token: process.env.UPSTASH_REDIS_TOKEN!,
});
async function getCachedOrFetch<T>(
key: string,
fetcher: () => Promise<T>,
ttl: number = 86400 // 24 hours
): Promise<T> {
const cached = await redis.get<T>(key);
if (cached) {
return cached;
}
const fresh = await fetcher();
await redis.setex(key, ttl, JSON.stringify(fresh));
return fresh;
}
// Usage
const chart = await getCachedOrFetch(
`chart:${userId}`,
() => generateChart(birthDate, fullName),
86400 * 30 // Cache for 30 days
);
4. Batch Processing
Use the /chart endpoint for bulk processing:
async function generateReportsForUsers(users: User[]) {
const charts = await Promise.all(
users.map(user =>
generateChart(user.birthDate, user.fullName)
.then(chart => ({ userId: user.id, chart }))
.catch(error => ({ userId: user.id, error }))
)
);
const successful = charts.filter(r => !r.error);
const failed = charts.filter(r => r.error);
console.log(`Generated ${successful.length} charts, ${failed.length} failures`);
return { successful, failed };
}
Rate Limits and Pricing
Check current rate limits in your API dashboard:
- Free Tier: 100 requests/month
- Starter: 1,000 requests/month ($10)
- Professional: 10,000 requests/month ($50)
- Business: 100,000 requests/month ($200)
See full pricing at roxyapi.com/pricing.
Common Use Cases
Birthday Calculator App
Build a simple birthday-based calculator:
export async function getBirthdayInsights(birthDate: string) {
const [lifePath, birthDay, personalYear] = await Promise.all([
calculateLifePath(birthDate),
calculateBirthDay(birthDate),
calculatePersonalYear(birthDate),
]);
return {
lifePath,
birthDay,
personalYear,
summary: `You are a Life Path ${lifePath.number}, currently in Personal Year ${personalYear.number}.`,
};
}
Name Analysis Tool
Create a name-only numerology tool:
export async function analyzeNameNumerology(fullName: string) {
const [expression, soulUrge, personality] = await Promise.all([
calculateExpression(fullName),
calculateSoulUrge(fullName),
calculatePersonality(fullName),
]);
return {
expression,
soulUrge,
personality,
summary: `Your name reveals Expression ${expression.number}, Soul Urge ${soulUrge.number}, and Personality ${personality.number}.`,
};
}
Comprehensive Reading Service
Generate full PDF reports:
export async function generateFullReport(
birthDate: string,
fullName: string
): Promise<NumerologyReport> {
const chart = await generateChart(birthDate, fullName);
return {
personalInfo: { birthDate, fullName },
coreNumbers: {
lifePath: chart.lifePath,
expression: chart.expression,
soulUrge: chart.soulUrge,
personality: chart.personality,
birthDay: chart.birthDay,
},
advancedAnalysis: {
maturity: chart.maturity,
personalYear: chart.personalYear,
karmicDebt: chart.karmicDebt,
karmicLessons: chart.karmicLessons,
},
summary: chart.summary,
generatedAt: new Date().toISOString(),
};
}
Next Steps
Now that you understand all available endpoints, explore these advanced implementations:
- Mobile Apps: Check out the React Native Life Path Calculator tutorial
- PDF Reports: See the Report Generator guide
- Dating Features: Read the Dating App Integration tutorial
Expand your spiritual app ecosystem with complementary APIs:
- Tarot API for divination features
- Western Astrology API for birth charts
- Vedic Astrology API for Jyotish calculations
Conclusion
The RoxyAPI Numerology API provides comprehensive endpoints for building professional numerology calculators, complete reading services, and spiritual guidance apps. With detailed interpretations, master number handling, and karmic analysis, you have everything needed for production-ready numerology features.
Start with core endpoints (Life Path, Expression, Soul Urge), then expand to advanced calculations (Karmic Debt, Personal Year, Compatibility) as your app grows. The /chart endpoint provides the most efficient way to generate complete readings.
Ready to build? Sign up for RoxyAPI and start implementing numerology calculations today. Full interactive documentation is available at roxyapi.com/docs.