Life Path Number API

Calculate and analyze Life Path Number from birth date with comprehensive numerological insights

What is Life Path Number?

The Life Path Number is the most important number in numerology, calculated from your birth date. It reveals your life's purpose, natural talents, challenges, and the path you're meant to follow.

1

Leader

Independent, ambitious, pioneering spirit

2

Peacemaker

Diplomatic, sensitive, cooperative nature

3

Creative

Expressive, optimistic, joyful personality

4

Builder

Practical, hardworking, disciplined approach

5

Freedom Seeker

Adventurous, versatile, freedom-loving spirit

6

Nurturer

Caring, responsible, service-oriented nature

7

Seeker

Analytical, spiritual, introspective mind

8

Achiever

Ambitious, powerful, material success focus

9

Humanitarian

Compassionate, generous, global consciousness

11

Master Teacher

Intuitive, inspirational, spiritual leadership

22

Master Builder

Practical idealism, large-scale achievements

How Life Path Number is Calculated

1

Write Birth Date

Example: June 15, 1990 → 06/15/1990

2

Reduce to Single Digits

Month: 0+6=6, Day: 1+5=6, Year: 1+9+9+0=19→1+9=10→1+0=1

3

Sum All Digits

6 (month) + 6 (day) + 1 (year) = 13

4

Reduce to Single Digit

1+3 = 4 (Life Path Number)

Interactive Calculator

API Endpoint

GET /v1/numerology/life-path Complete Analysis

Get comprehensive Life Path Number analysis with personality traits, challenges, and life purpose insights.

curl -X GET 'https://api.astro-fusion.com/v1/numerology/life-path?date=1990-06-15' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Complete Analysis Response

Full Life Path Analysis

{
  "lifePathNumber": 4,
  "calculation": {
    "birthDate": "1990-06-15",
    "month": 6,
    "day": 15,
    "year": 1990,
    "monthReduced": 6,
    "dayReduced": 6,
    "yearReduced": 1,
    "sum": 13,
    "finalNumber": 4
  },
  "personality": {
    "coreTraits": [
      "Practical",
      "Hardworking",
      "Disciplined",
      "Reliable",
      "Methodical"
    ],
    "strengths": [
      "Strong work ethic",
      "Attention to detail",
      "Organizational skills",
      "Problem-solving ability",
      "Loyalty and dependability"
    ],
    "weaknesses": [
      "Stubbornness",
      "Rigidity",
      "Workaholic tendencies",
      "Difficulty adapting to change",
      "Perfectionism"
    ]
  },
  "lifePurpose": {
    "primaryPurpose": "To build stable foundations and create lasting value",
    "careerPath": [
      "Engineering",
      "Architecture",
      "Project Management",
      "Financial Planning",
      "Teaching"
    ],
    "lifeLessons": [
      "Learning to balance work and personal life",
      "Developing flexibility and adaptability",
      "Understanding that change is natural",
      "Building patience with others",
      "Recognizing the value of different approaches"
    ]
  },
  "challenges": {
    "earlyLife": "Learning discipline and structure",
    "midLife": "Breaking free from rigid patterns",
    "lateLife": "Finding balance between work and relationships",
    "karmicLessons": [
      "Flexibility",
      "Emotional expression",
      "Trust in others",
      "Creativity",
      "Spontaneity"
    ]
  },
  "compatibility": {
    "mostCompatible": [2, 7, 8],
    "leastCompatible": [1, 5],
    "relationshipDynamics": {
      "with2": "Complementary partnership",
      "with7": "Intellectual stimulation",
      "with8": "Shared ambition",
      "with1": "Potential conflicts over control",
      "with5": "Different approaches to life"
    }
  },
  "favorable": {
    "colors": ["Blue", "Green", "Earth tones"],
    "numbers": [4, 8, 13, 17, 22, 26, 31],
    "days": ["Saturday", "Sunday"],
    "gemstones": ["Sapphire", "Emerald"],
    "careers": [
      "Accountant",
      "Engineer",
      "Project Manager",
      "Teacher",
      "Architect"
    ]
  },
  "unfavorable": {
    "colors": ["Red", "Orange"],
    "situations": [
      "Sudden changes",
      "Unplanned events",
      "Creative chaos",
      "Lack of structure"
    ]
  },
  "lifeCycles": {
    "currentCycle": {
      "ageRange": "37-46",
      "theme": "Career building and family responsibilities",
      "focus": "Balancing work and personal life"
    },
    "nextCycle": {
      "ageRange": "46-55",
      "theme": "Mid-life reassessment",
      "focus": "Finding greater flexibility and creativity"
    }
  },
  "spiritualGrowth": {
    "currentLevel": "Building foundations",
    "nextSteps": [
      "Practice meditation regularly",
      "Learn to embrace change",
      "Develop trust in the universe",
      "Cultivate patience and understanding"
    ],
    "affirmation": "I build solid foundations for lasting success"
  }
}

Understanding the Analysis

🔢 Calculation Breakdown

Step-by-step reduction of birth date components to derive the Life Path Number.

👤 Personality Profile

Core traits, strengths, and areas for growth based on your Life Path Number.

🎯 Life Purpose

Your soul's mission and optimal career paths for fulfillment.

⚖️ Compatibility Matrix

How you relate to others based on numerological compatibility.

💎 Favorable Elements

Colors, numbers, and stones that enhance your natural vibrations.

🌱 Spiritual Growth

Guidance for personal development and spiritual evolution.

Master Numbers (11, 22, 33)

Master Numbers are powerful spiritual numbers that are not reduced to single digits. They carry intense vibrations and represent great potential.

11 - Master Teacher

Characteristics: Intuitive, inspirational, spiritual, sensitive

Challenges: Anxiety, fear, self-doubt, nervous tension

Life Purpose: To teach and inspire others through spiritual wisdom

Career Paths: Spiritual teacher, healer, counselor, artist, writer

22 - Master Builder

Characteristics: Practical, ambitious, organized, visionary

Challenges: Overwhelm, self-criticism, workaholic tendencies

Life Purpose: To build large-scale projects that benefit humanity

Career Paths: Entrepreneur, architect, engineer, philanthropist

33 - Master Healer

Characteristics: Compassionate, nurturing, selfless, wise

Challenges: Martyr complex, emotional burnout, boundary issues

Life Purpose: To heal and serve humanity through unconditional love

Career Paths: Healer, therapist, teacher, humanitarian work

JavaScript Integration

class NumerologyAPI {
  constructor(apiKey) {
    this.apiKey = apiKey;
    this.baseURL = 'https://api.astro-fusion.com/v1';
  }

  async getLifePathNumber(birthDate) {
    const params = new URLSearchParams({
      date: birthDate
    });

    const response = await fetch(\`\${this.baseURL}/numerology/life-path?\${params}\`, {
      headers: {
        'Authorization': \`Bearer \${this.apiKey}\`,
        'Content-Type': 'application/json'
      }
    });

    if (!response.ok) {
      throw new Error(\`HTTP error! status: \${response.status}\`);
    }

    return await response.json();
  }

  calculateLifePathLocally(birthDate) {
    // Local calculation for validation
    const date = new Date(birthDate);
    const month = date.getMonth() + 1; // JS months are 0-based
    const day = date.getDate();
    const year = date.getFullYear();

    // Reduce month to single digit
    const monthReduced = month > 9 ? month.toString().split('').reduce((a, b) => parseInt(a) + parseInt(b), 0) : month;

    // Reduce day to single digit
    const dayReduced = day > 9 ? day.toString().split('').reduce((a, b) => parseInt(a) + parseInt(b), 0) : day;

    // Reduce year to single digit
    const yearStr = year.toString();
    let yearSum = 0;
    for (let digit of yearStr) {
      yearSum += parseInt(digit);
    }
    const yearReduced = yearSum > 9 ? yearSum.toString().split('').reduce((a, b) => parseInt(a) + parseInt(b), 0) : yearSum;

    // Sum all components
    const total = monthReduced + dayReduced + yearReduced;

    // Reduce to single digit (unless master number)
    const finalNumber = (total === 11 || total === 22 || total === 33) ? total : (total > 9 ? total.toString().split('').reduce((a, b) => parseInt(a) + parseInt(b), 0) : total);

    return {
      lifePathNumber: finalNumber,
      calculation: {
        month, day, year,
        monthReduced, dayReduced, yearReduced,
        total, finalNumber
      }
    };
  }

  async validateCalculation(birthDate) {
    const localResult = this.calculateLifePathLocally(birthDate);
    const apiResult = await this.getLifePathNumber(birthDate);

    return {
      local: localResult,
      api: apiResult,
      matches: localResult.lifePathNumber === apiResult.lifePathNumber
    };
  }
}

// Usage
const numerologyAPI = new NumerologyAPI('YOUR_API_KEY');

// Get life path analysis
numerologyAPI.getLifePathNumber('1990-06-15')
  .then(analysis => {
    console.log('Life Path Number:', analysis.lifePathNumber);
    console.log('Personality:', analysis.personality.coreTraits);
    console.log('Life Purpose:', analysis.lifePurpose.primaryPurpose);
    console.log('Compatible Numbers:', analysis.compatibility.mostCompatible);

    // Display detailed information
    displayLifePathAnalysis(analysis);
  })
  .catch(error => {
    console.error('Error fetching life path analysis:', error);
  });

// Validate calculation
numerologyAPI.validateCalculation('1990-06-15')
  .then(validation => {
    if (validation.matches) {
      console.log('✅ Calculation validated successfully');
    } else {
      console.log('❌ Calculation mismatch detected');
      console.log('Local:', validation.local.lifePathNumber);
      console.log('API:', validation.api.lifePathNumber);
    }
  });

function displayLifePathAnalysis(analysis) {
  const container = document.getElementById('life-path-results');

  const html = \`
    <div class="life-path-result">
      <h3>Life Path Number: \${analysis.lifePathNumber}</h3>

      <div class="personality-section">
        <h4>Core Personality Traits</h4>
        <ul>
          \${analysis.personality.coreTraits.map(trait => \`<li>\${trait}</li>\`).join('')}
        </ul>
      </div>

      <div class="purpose-section">
        <h4>Life Purpose</h4>
        <p>\${analysis.lifePurpose.primaryPurpose}</p>
        <h5>Recommended Careers</h5>
        <ul>
          \${analysis.lifePurpose.careerPath.map(career => \`<li>\${career}</li>\`).join('')}
        </ul>
      </div>

      <div class="challenges-section">
        <h4>Key Challenges</h4>
        <ul>
          \${analysis.challenges.karmicLessons.map(lesson => \`<li>\${lesson}</li>\`).join('')}
        </ul>
      </div>

      <div class="compatibility-section">
        <h4>Compatibility</h4>
        <p><strong>Most Compatible:</strong> \${analysis.compatibility.mostCompatible.join(', ')}</p>
        <p><strong>Least Compatible:</strong> \${analysis.compatibility.leastCompatible.join(', ')}</p>
      </div>
    </div>
  \`;

  container.innerHTML = html;
}

Life Path Calculator Widget

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Life Path Calculator</title>
    <style>
        body { font-family: Arial, sans-serif; max-width: 800px; margin: 0 auto; padding: 20px; }
        .calculator { background: #f5f5f5; padding: 20px; border-radius: 8px; margin: 20px 0; }
        .result { background: white; padding: 20px; border-radius: 8px; margin: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        input, button { padding: 10px; margin: 5px; border-radius: 4px; border: 1px solid #ddd; }
        button { background: #007bff; color: white; cursor: pointer; }
        button:hover { background: #0056b3; }
    </style>
</head>
<body>
    <h1>Life Path Number Calculator</h1>

    <div class="calculator">
        <h2>Enter Your Birth Date</h2>
        <input type="date" id="birthDate" value="1990-06-15">
        <button onclick="calculateLifePath()">Calculate</button>
    </div>

    <div class="result" id="result" style="display: none;">
        <h2>Your Life Path Analysis</h2>
        <div id="analysis"></div>
    </div>

    <script>
        const API_KEY = 'YOUR_API_KEY';

        async function calculateLifePath() {
            const birthDate = document.getElementById('birthDate').value;
            const resultDiv = document.getElementById('result');
            const analysisDiv = document.getElementById('analysis');

            try {
                const response = await fetch(\`https://api.astro-fusion.com/v1/numerology/life-path?date=\${birthDate}\`, {
                    headers: {
                        'Authorization': \`Bearer \${API_KEY}\`,
                        'Content-Type': 'application/json'
                    }
                });

                if (!response.ok) {
                    throw new Error('Failed to fetch analysis');
                }

                const analysis = await response.json();

                analysisDiv.innerHTML = \`
                    <h3>Life Path Number: \${analysis.lifePathNumber}</h3>

                    <h4>Personality Traits</h4>
                    <ul>
                        \${analysis.personality.coreTraits.map(trait => \`<li>\${trait}</li>\`).join('')}
                    </ul>

                    <h4>Life Purpose</h4>
                    <p>\${analysis.lifePurpose.primaryPurpose}</p>

                    <h4>Compatible Numbers</h4>
                    <p>\${analysis.compatibility.mostCompatible.join(', ')}</p>

                    <h4>Favorable Colors</h4>
                    <p>\${analysis.favorable.colors.join(', ')}</p>
                \`;

                resultDiv.style.display = 'block';
            } catch (error) {
                analysisDiv.innerHTML = \`
                    <p style="color: red;">Error: \${error.message}</p>
                    <p>Please check your API key and try again.</p>
                \`;
                resultDiv.style.display = 'block';
            }
        }
    </script>
</body>
</html>