🌍 Astrocartography API and ✋ Palmistry API are now live. Ship them in your app today.Get Started
Astro Chat API

Compatibility Astro Chat

Start a compatibility-focused conversation between two people. This endpoint analyzes the synergy between two birth charts for marriage, relationship, or partnership insights.
POSThttps://json-chat.astrologyapi.com/api/chat

Compatibility Astro Chat Overview

Send a POST request to https://json-chat.astrologyapi.com/api/chat. Authenticate with your API access token. The request body accepts the following parameters:

ParameterTypeDescription
languagerequiredstringLanguage code (e.g., "en")
f_first_namerequiredstringFemale first name
f_last_namerequiredstringFemale last name
f_dayrequirednumberFemale birth day
f_monthrequirednumberFemale birth month
f_yearrequirednumberFemale birth year
f_hourrequirednumberFemale birth hour
f_minuterequirednumberFemale birth minute
f_latituderequirednumberFemale birth latitude
f_longituderequirednumberFemale birth longitude
f_timezonerequirednumberFemale birth timezone
f_placerequiredstringFemale birth place
m_first_namerequiredstringMale first name
m_last_namerequiredstringMale last name
m_dayrequirednumberMale birth day
m_monthrequirednumberMale birth month
m_yearrequirednumberMale birth year
m_hourrequirednumberMale birth hour
m_minuterequirednumberMale birth minute
m_latituderequirednumberMale birth latitude
m_longituderequirednumberMale birth longitude
m_timezonerequirednumberMale birth timezone
m_placerequiredstringMale birth place
aprequiredstringAstro Profile. Set to "MATCHING" for compatibility chat.
eprequiredstringExpertise level. Options: "STANDARD", "ADVANCED", "EXPERT".
sidrequiredstringUnique identifier for the current chat session. Use the same session ID to continue an existing conversation.
qrequiredstringThe compatibility question (e.g., "how is the compatibility for marriage?").

API Details

Request

Example request body:

{
  "language": "en",
  "f_first_name": "Sakshi",
  "f_last_name": "",
  "f_day": 22,
  "f_month": 6,
  "f_year": 2001,
  "f_hour": 17,
  "f_minute": 22,
  "f_latitude": 19.14,
  "f_longitude": 72.52,
  "f_timezone": 5.5,
  "f_place": "Mumbai, INIDIA",
  "m_first_name": "Hema",
  "m_last_name": "",
  "m_day": 22,
  "m_month": 7,
  "m_year": 1989,
  "m_hour": 10,
  "m_minute": 10,
  "m_latitude": 25.7464,
  "m_longitude": 82.6837,
  "m_timezone": 5.5,
  "m_place": "Jaunpur, Uttar Pradesh",
  "ap": "MATCHING",
  "ep": "STANDARD",
  "sid": "astro-1",
  "q": "how is the compatibility for marriage?"
}

Code samples

curl --location 'https://json-chat.astrologyapi.com/api/chat' \
  --header 'Content-Type: application/json' \
  --header 'x-astrologyapi-key: <YOUR_ACCESS_TOKEN>' \
  --data '{
    "language": "en",
    "f_first_name": "Sakshi",
    "f_last_name": "",
    "f_day": 22,
    "f_month": 6,
    "f_year": 2001,
    "f_hour": 17,
    "f_minute": 22,
    "f_latitude": 19.14,
    "f_longitude": 72.52,
    "f_timezone": 5.5,
    "f_place": "Mumbai, INIDIA",
    "m_first_name": "Hema",
    "m_last_name": "",
    "m_day": 22,
    "m_month": 7,
    "m_year": 1989,
    "m_hour": 10,
    "m_minute": 10,
    "m_latitude": 25.7464,
    "m_longitude": 82.6837,
    "m_timezone": 5.5,
    "m_place": "Jaunpur, Uttar Pradesh",
    "ap": "MATCHING",
    "ep": "STANDARD",
    "sid": "astro-1",
    "q": "how is the compatibility for marriage?"
}'

Response

Example response:

{
  "status": true,
  "message": "The compatibility between Sakshi and Hema shows strong emotional syncing (Guna Milan: 28/36). Both partners share complementary moon signs...",
  "response": {
    "sid": "astro-1",
    "timestamp": "2026-01-28T12:05:00Z"
  }
}