POST/v1/western/reports/friendship

Friendship Compatibility Report API

Friendship report for two people, built on their synastry.

One of 33 endpoints in the Western engine.

Request

Call it from curl, Node.js or Python

bash
curl -X POST 'https://api.astronode.dev/v1/western/reports/friendship' \
  -H 'Authorization: Bearer aie_test_REPLACE_WITH_YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  --data '{
  "person_a": {
    "date": "1993-07-04",
    "time": "09:27:11",
    "tz_offset_minutes": 330,
    "lat": 31.7473,
    "lng": 77.7754
  },
  "person_b": {
    "date": "1994-11-22",
    "time": "18:45:00",
    "tz_offset_minutes": 330,
    "lat": 28.6139,
    "lng": 77.209
  },
  "verbosity": "short"
}'

Free test key (aie_test_*): 1,000 requests / month.

Request schema

Fields POST /v1/western/reports/friendship accepts

Request body fields for POST /v1/western/reports/friendship
FieldTypeNotes
person_arequiredobject-
person_a.daterequiredstring

pattern ^\d{4}-\d{2}-\d{2}$

e.g. 1993-07-04

person_a.timerequiredstring

pattern ^\d{2}:\d{2}(:\d{2})?$

e.g. 09:27:11

person_a.tz_offset_minutesrequiredinteger

Offset from UTC in minutes (e.g., 330 for IST)

-840..840

e.g. 330

person_a.latrequirednumber

-90..90

e.g. 31.7473

person_a.lngrequirednumber

-180..180

e.g. 77.7754

person_brequiredobject-
person_b.daterequiredstring

pattern ^\d{4}-\d{2}-\d{2}$

e.g. 1993-07-04

person_b.timerequiredstring

pattern ^\d{2}:\d{2}(:\d{2})?$

e.g. 09:27:11

person_b.tz_offset_minutesrequiredinteger

Offset from UTC in minutes (e.g., 330 for IST)

-840..840

e.g. 330

person_b.latrequirednumber

-90..90

e.g. 31.7473

person_b.lngrequirednumber

-180..180

e.g. 77.7754

languageenum

en | hi · default "en"

verbosityenum

short | standard | detailed · default "standard"

From the OpenAPI 3.1 spec.

Response

What you get back

Returned inside the standard envelope (request_id, data, meta). This endpoint documents 200, 400, 401, 409, 429, 500.

Fields inside data

Inferred from a recorded response; fields can vary with input.

Response data fields for POST /v1/western/reports/friendship
FieldTypeNotes
typestring

e.g. western_friendship_report

versionstring

e.g. 1.6.0

languagestring

e.g. en

verbositystring

e.g. short

summarystring

e.g. Friendship signals from inter-chart contacts.

sectionsobject[]-
sections[].headingstring

e.g. Section 1

sections[].bodystring

e.g. 76 inter-chart aspects.

disclaimerstring

e.g. This report uses the tropical zodiac and Western/psychological astrology conventions. It is interpretive, not prescript…

Example data for the request above

Recorded from this call; long lists are shortened.

json
{
  "type": "western_friendship_report",
  "version": "1.6.0",
  "language": "en",
  "verbosity": "short",
  "summary": "Friendship signals from inter-chart contacts.",
  "sections": [
    {
      "heading": "Section 1",
      "body": "76 inter-chart aspects."
    }
  ],
  "disclaimer": "This report uses the tropical zodiac and Western/psychological astrology conventions. It is interpretive, not prescriptive - read for self-reflection, not absolute prediction."
}

In practice

Using the Friendship Compatibility Report API

Available on every plan, including Free. Plans and limits

Why products call it

  • Dating & social apps - The shareable artefact. The same for friendships - useful if your app is social rather than dating.

Questions

Which plan includes the Friendship Compatibility Report API?
All plans, including Free.
What does POST /v1/western/reports/friendship need in the request?
Required: person_a and person_b. Optional: language and verbosity.
What does POST /v1/western/reports/friendship return?
type, version, language, verbosity, summary, sections and disclaimer, inside data.
What is the Friendship Compatibility Report API used for?
Products such as dating & social apps. In the dating & social apps build, at the "The shareable artefact" stage: The same for friendships - useful if your app is social rather than dating.

Ready to call POST /v1/western/reports/friendship?

Free tier covers 1,000 requests / month. Razorpay-billed, GST-compliant invoices when you upgrade.

Informational, not predictive. Not medical, legal, or financial advice.