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

A*C*G Life Categories

GET
/acg/categories
request.sh
curl -X GET https://api.astroway.info/v1/acg/categories \
-H "X-Api-Key: aw_live_..." \
-H "Content-Type: application/json"

Reference taxonomy: 19 areas of life, each naming the planet-and-angle lines that govern it with a weight and a polarity. Free, cacheable, drives the two endpoints below.

Successful calculation

Media type application/json
object
ok
boolean
data
object
count
number
nullable
language
string
nullable
requestedLanguage
string
nullable
categories
Array<object>
nullable
object
id
string
nullable
name
string
nullable
description
string
nullable
lineCount
number
nullable
lines
Array<object>
nullable
object
planet
string
nullable
planetId
number
nullable
angle
string
nullable
weight
number
nullable
polarity
string
nullable
Example
{
"ok": true,
"data": {
"count": 19,
"language": "uk",
"requestedLanguage": "uk",
"categories": [
{
"id": "adventure",
"name": "Пригоди",
"description": "Ризик, новизна, різкі зміни ритму. Місця, де людина виходить із звичного сценарію.",
"lineCount": 6,
"lines": [
{
"planet": "Uranus",
"planetId": 7,
"angle": "ASC",
"weight": 3,
"polarity": "supportive"
}
]
}
]
}
}

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"
}
}
Корисно?