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

Navaratna reference table

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

The nine gems and their graha, with substitutes (upa-ratna), weekday, finger and its variants, metals, minimum weight range in ratti with gram and carat conversions, beeja mantra and japa count. Static lookup, no chart needed.

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
count
number
nullable
conversions
object
rattiGrams
number
nullable
rattiCarats
number
nullable
gems
Array<object>
nullable
object
graha
number
nullable
grahaName
string
nullable
grahaSanskrit
string
nullable
gem
string
nullable
gemSanskrit
string
nullable
mineral
string
nullable
substitutes
Array<string>
nullable
wearing
object
day
string
nullable
finger
string
nullable
fingerVariants
Array<string>
nullable
metals
Array<string>
nullable
minWeight
object
ratti
Array<number>
nullable
grams
Array<number>
nullable
carats
Array<number>
nullable
mantra
string
nullable
japaCount
number
nullable
sources
string
nullable
disclaimer
string
nullable
Example
{
"ok": true,
"data": {
"count": 9,
"conversions": {
"rattiGrams": 0.1215,
"rattiCarats": 0.6075
},
"gems": [
{
"graha": 0,
"grahaName": "Sun",
"grahaSanskrit": "Surya",
"gem": "Ruby",
"gemSanskrit": "Manikya",
"mineral": "Corundum (red)",
"substitutes": [
"Red spinel"
],
"wearing": {
"day": "Sunday",
"finger": "Ring finger",
"fingerVariants": [
"Ring finger"
],
"metals": [
"Gold"
],
"minWeight": {
"ratti": [
3
],
"grams": [
0.364
],
"carats": [
1.82
]
},
"mantra": "Om Hraam Hreem Hraum Sah Suryaya Namah",
"japaCount": 6000
}
}
],
"sources": "Gem-to-graha mapping: Garuda Purana (ratna-pariksha) and Brihat Samhita ch. 80. Day, finger, metal, weight and mantra are modern practice, not scripture, and manuals disagree: variants and a range are returned rather than one number presented as canon.",
"disclaimer": "Traditional Jyotish remedy, informational only. Gem identity, treatment and weight must be confirmed by a qualified gemmologist or jeweller before purchase, and no gemstone is a substitute for medical care: consult a licensed physician for any health concern."
}
}

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