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

Remedies catalogue (upaya)

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

The whole remedies catalogue: for each of the nine grahas and eight doshas, the classical and popular remedies by type (mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab). Each item names its source and a basis: classical when the cited text has it, modern-popular otherwise. Optional type filter, one value or a comma list. Static lookup, no chart needed.

type
string
Example
mantra,puja

Remedy type, or a comma list of them: mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab. All types when omitted.

fields
string

Comma-separated dotted paths, relative to data, to keep in the response. A path is applied to every element of an array, so planets.name means the name of each planet. Paths that match nothing come back in _fields_unmatched; a list where nothing matches at all is a 400, because an empty object would be a confident wrong answer.

Example
planets.name,planets.longitude
precision
integer
<= 15

Round every non-integer number in the response to this many decimal places. Integers are left alone, because an id is not a measurement. Ecliptic longitudes ship with fourteen decimals by default; 2 is about a tenth of an arcminute.

Example
4

Successful calculation

Media type application/json
object
ok
boolean
data
object
types
Array<string>
nullable
grahas
Array<object>
nullable
object
graha
string
nullable
grahaId
number
nullable
name
string
nullable
sanskrit
string
nullable
remedies
Array<object>
nullable
object
graha
string
nullable
dosha
nullable
id
string
nullable
type
string
nullable
title
string
nullable
detail
object
mantraKind
string
nullable
pratika
string
nullable
vedaRef
string
nullable
japaCount
number
nullable
source
string
nullable
basis
string
nullable
note
string
nullable
doshas
Array<object>
nullable
object
dosha
string
nullable
name
string
nullable
classicalStatus
string
nullable
grahas
Array<string>
nullable
detection
object
method
string
nullable
path
string
nullable
note
string
nullable
specific
Array
nullable
related
Array<object>
nullable
object
method
string
nullable
path
string
nullable
note
string
nullable
sources
Array<string>
nullable
basisNote
string
nullable
disclaimer
string
nullable
Example
{
"ok": true,
"data": {
"types": [
"mantra"
],
"grahas": [
{
"graha": "sun",
"grahaId": 0,
"name": "Sun",
"sanskrit": "Surya",
"remedies": [
{
"graha": "sun",
"dosha": null,
"id": "sun.vedic-mantra",
"type": "mantra",
"title": "Vedic mantra of Sun",
"detail": {
"mantraKind": "vedic",
"pratika": "Aa krishnena rajasa",
"vedaRef": "Rigveda 1.35.2",
"japaCount": 7000
},
"source": "BPHS ch. 84 vv. 17-20 (graha shanti; ch. 86 in the G.C. Sharma 2006 edition) for the count; the mantra itself from Yajnavalkya Smriti, Acharadhyaya, Graha-shanti prakarana 1.300-1.301",
"basis": "classical",
"note": "The pratika is the opening words of the verse, which is how both texts name it. Counts are BPHS 84.17-20 as translated in the 97-chapter English text; editions and manuals differ on some of them."
}
]
}
],
"doshas": [
{
"dosha": "mangal",
"name": "Mangal (Kuja) dosha",
"classicalStatus": "Named in classical matchmaking texts; the house list and the exceptions vary by school.",
"grahas": [
"mars"
],
"detection": {
"method": "POST",
"path": "/v1/vedic/doshas/parashara/mangal",
"note": "school strict, north or south."
},
"specific": [],
"related": [
{
"method": "POST",
"path": "/v1/vedic/compatibility/dosha-cancellation",
"note": "The textual exceptions for a couple, each with its verse."
}
]
}
],
"sources": [
"BPHS ch. 84 (graha shanti), ch. 83 (curses of the previous birth), ch. 91 (birth in an eclipse), ch. 37 (Kemadruma), ch. 27 (Shadbala requirements); numbering of the 97-chapter English text"
],
"basisNote": "basis classical: the item is in the cited classical text. basis modern-popular: current practice, with the nearest documented source named; it is not in the classical texts.",
"disclaimer": "Traditional Jyotish practices, listed with their textual source for reference. Not a prediction, not a guarantee of any outcome, and not medical, psychological, financial or legal advice: no mantra, rite, bead or gem replaces a qualified professional."
}
}

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"
}
}