Guna Milan API with Shopify

Integrate Guna Milan API in Shopify. Complete code examples and SDK documentation.

Operation

POST /v2/astrology/guna-milan

36-Guna (Ashtakoot) marriage compatibility score between two charts. Aliases: /ashtakoot-match, /matching/ashtakoota

Parameters

NameInTypeDescription
malebodyobject—
femalebodyobject—

Request example for Shopify

Call the API with a server-side step that can send an HTTP request (an automation tool or your own backend). Set these fields:

{
  "male": {
    "datetime": "1995-06-20T10:30:00",
    "latitude": 28.6139,
    "longitude": 77.209,
    "timezone": "+05:30"
  },
  "female": {
    "datetime": "1997-03-15T14:00:00",
    "latitude": 19.076,
    "longitude": 72.8777,
    "timezone": "+05:30"
  }
}

Store the key in the tool's credential or secret field, not in the body or in a shared template.

Shopify runs page scripts in the visitor's browser, so do not put the API key in a page script. Send the request from a server-side step and let the page read the result.

Try it in the keyless sandbox

The sandbox mirrors the production route and needs no API key:

curl -X POST https://api.vedika.io/sandbox/astrology/guna-milan \
  -H "Content-Type: application/json" \
  -d '{"male":{"datetime":"1995-06-20T10:30:00","latitude":28.6139,"longitude":77.209,"timezone":"+05:30"},"female":{"datetime":"1997-03-15T14:00:00","latitude":19.076,"longitude":72.8777,"timezone":"+05:30"}}'

Sandbox response from POST /sandbox/astrology/guna-milan, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.

{
  "data": {
    "female_info": {
      "moon_nakshatra": "Dhanishta",
      "moon_sign": "Aquarius"
    },
    "gunaDetails": {
      "bhakoot": {
        "interpretation": "Excellent financial and family prospects - prosperity and growth expected.",
        "maxPoints": 7,
        "name": "Bhakoot (Financial & Family Prosperity)",
        "score": 7,
        "tips": [
          "Plan finances together and maintain transparency"
        ]
      },
      "gana": {
        "interpretation": "Contrasting natures - significant effort needed for peaceful coexistence.",
        "maxPoints": 6,
        "name": "Gana (Temperament & Nature)",
        "score": 0,
        "tips": [
          "Understand your partner's natural temperament"
        ]
      },
      "grahaMaitri": {
        "interpretation": "Moderate mental compatibility - can understand each other with effort.",
        "maxPoints": 5,
        "name": "Graha Maitri (Mental & Intellectual Harmony)",
        "score": 3,
        "tips": [
          "Practice active listening and clear communication"
        ]
      },
      "nadi": {
        "interpretation": "Nadi Dosha present - same energy channel may cause health issues.",
        "maxPoints": 8,
        "name": "Nadi (Health & Genetic Compatibility)",
        "score": 0,
        "significance": "Nadi indicates health compatibility and genetic factors. Same Nadi creates Nadi Dosha which may affect health of offspring and overall family health.",
        "tips": [
          "If Nadi Dosha exists, perform Nadi Dosha Nivarana Puja"
        ]
      },
      "tara": {
        "interpretation": "Good everyday compatibility with minor adjustments needed.",
        "maxPoints": 3,
        "name": "Tara (Birth Star Harmony)",
        "score": 1.5,
        "significance": "Tara indicates the day-to-day compatibility and the general luck the couple will experience together. It affects health, well-being, and daily harmony.",
        "tips": [
          "Pay attention to auspicious times for important activities"
        ]
      },
      "varna": {
        "interpretation": "Excellent spiritual harmony - both partners will respect each other's values and ego.",
        "maxPoints": 1,
        "name": "Varna (Spiritual Compatibility)",
        "score": 1,
        "tips": [
          "Focus on shared spiritual values and mutual respect"
        ]
      }
    },
    "guna_kootas": [
      {
        "description": "Kshatriya (male) vs Shudra (female)",
        "female_koot": "Shudra",
        "id": 1,
        "male_koot": "Kshatriya",
        "maximum_points": 1,
        "name": "Varna"
      }
    ],
    "interpretation": {
      "challenges": [
        "Contrasting temperaments"
      ],
      "guidance": [
        "Strongly recommend consulting an experienced astrologer"
      ],
      "marriageProspects": "Marriage not recommended without extensive remedies and careful consideration.",
      "strengths": [
        "Strong spiritual compatibility"
      ],
      "summary": "A challenging match with significant compatibility concerns."
    },
    "male_info": {
      "moon_nakshatra": "Purva Ashadha",
      "moon_sign": "Sagittarius"
    },
    "match_result": "Not Compatible"
  },
  "meta": {
    "contentMode": "fixture",
    "engine": "vedika-intelligence",
    "fixtureId": "demo-birth-1995-new-delhi",
    "inputUsage": "ignored",
    "mode": "sandbox",
    "sample": true
  },
  "success": true
}

Related

Last updated: 22 November 2026

Start 14-day trial