Перейти до вмісту
AstroWay/api v2.158.7 · docs
усі системи в нормі

Synastry (HTML)

GET
/embed/synastry
request.sh
curl -X GET https://api.astroway.info/v1/embed/synastry \
-H "Content-Type: application/json"

Two-subject compatibility score + key cross-aspects.

date_a
string format: date

Birth date YYYY-MM-DD of subject A. Required; the widget renders an error without both subjects.

time_a
string

Birth time of subject A. Defaults to 12:00:00.

tz_a
number

UTC offset of subject A. Defaults to 0.

lat_a
number

Latitude of subject A. Defaults to 0.

lng_a
number

Longitude of subject A. Defaults to 0.

date_b
string format: date

Birth date YYYY-MM-DD of subject B. Required; the widget renders an error without both subjects.

time_b
string

Birth time of subject B. Defaults to 12:00:00.

tz_b
number

UTC offset of subject B. Defaults to 0.

lat_b
number

Latitude of subject B. Defaults to 0.

lng_b
number

Longitude of subject B. Defaults to 0.

lang
string
Allowed values: uk en de ru pl es pt fr it nl cs ro hu el tr ar hi ja ko vi id

Widget language. Also accepts the Accept-Language header.

Example
de
theme
string
Allowed values: dark light console

Colour scheme. Unknown values fall back to dark.

Example
light

Rendered widget markup, ready to drop into an iframe.

Media type text/html
string

Validation error

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_INPUT",
"message": "Validation failed: date: Date must be YYYY-MM-DD",
"details": [
{
"path": "date",
"message": "Date must be YYYY-MM-DD"
}
]
}
}

Missing or invalid API key

Media type application/json
Example
{
"ok": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
}
Корисно?