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

Remedies of one type

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

Every catalogue item of the given type (mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab), or of several in a comma list, across all grahas and doshas.

type required
string
Example
rudraksha

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

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
type
Array<string>
nullable
count
number
nullable
items
Array<object>
nullable
object
graha
string
nullable
dosha
nullable
id
string
nullable
type
string
nullable
title
string
nullable
detail
object
mukhi
number
nullable
mukhiDeity
string
nullable
source
string
nullable
basis
string
nullable
note
string
nullable
basisNote
string
nullable
disclaimer
string
nullable
Example
{
"ok": true,
"data": {
"type": [
"rudraksha"
],
"count": 9,
"items": [
{
"graha": "sun",
"dosha": null,
"id": "sun.rudraksha",
"type": "rudraksha",
"title": "1-mukhi rudraksha",
"detail": {
"mukhi": 1,
"mukhiDeity": "Shiva himself"
},
"source": "Mukhi deities: Shiva Purana, Vidyeshvara Samhita ch. 25. The mukhi-to-graha assignment is modern practice and is not in the Purana",
"basis": "modern-popular",
"note": "Manuals vary on the graha assignment; the deity is the Purana's."
},
{
"graha": "moon",
"dosha": null,
"id": "moon.rudraksha",
"type": "rudraksha",
"title": "2-mukhi rudraksha",
"detail": {
"mukhi": 2,
"mukhiDeity": "Isha, lord of the devas"
},
"source": "Mukhi deities: Shiva Purana, Vidyeshvara Samhita ch. 25. The mukhi-to-graha assignment is modern practice and is not in the Purana",
"basis": "modern-popular",
"note": "Manuals vary on the graha assignment; the deity is the Purana's."
}
],
"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"
}
}