POST · VEDIC

Gemstone Suggestion

Endpoint POST https://starsapi.com/api/v3/vedic/predictions/gemstone-suggestion

Returns personalized gemstone recommendations based on the Lagna lord, Yogakaraka, and functional benefics. Each recommendation includes the gemstone, substitute, weight, metal, finger, wearing day/time/nakshatra, activation mantra (English + Devanagari), and step-by-step wearing procedure. Up to 3 stones are recommended; a fallback ensures the response is never empty.

Authentication

MethodExample
Header (recommended)X-Api-Key: am_live_xxxxxxxxxxxx
BearerAuthorization: Bearer am_live_xxxxxxxxxxxx
Query?api_key=am_live_xxxxxxxxxxxx

Request body

FieldTypeRequiredDescription
yearintegerYesBirth year, 1800–2400.
monthintegerYesBirth month, 1–12.
dayintegerYesDay of month.
hourintegerYesHour, 0–23.
minuteintegerYesMinute, 0–59.
secondintegerNoDefault 0.
latitudenumberYesDecimal degrees.
longitudenumberYesDecimal degrees.
timezonestringYesIANA timezone identifier.
ayanamsastringNoDefault lahiri.
node_typestringNomean (default) or true.
languagestringNoDefault en. Controls remedy data language.

Response shape

data.gemstones is an array of 1–3 gemstone objects:

FieldTypeDescription
titlestringe.g. "Emerald Gemstone".
categorystringprimary_stone, yogakaraka_stone, or benefic_stone.
category_labelstringHuman-readable category.
purposestringWhy this stone is recommended.
descriptionstringDetailed explanation.
gemstonestringGemstone name (English).
gemstone_localstringLocal/Hindi name.
planet / planet_localstringAssociated planet.
substitute / substitute_localstringBudget-friendly alternative.
weight_caratstringRecommended weight range.
metalstringSetting metal.
fingerstringWhich finger.
wearing_handstringHand guidance.
wearing_daystringBest day of the week.
wearing_timestringBest time.
wearing_nakshatrastringBest nakshatras.
wearing_pakshastringShukla/Krishna Paksha.
activation_mantrastringMantra in transliteration.
activation_mantra_devanagaristringMantra in Devanagari.
mantra_countintegerRecitation count (usually 108).
wearing_procedurestringStep-by-step wearing ritual.
cautionstring | nullWarnings when applicable.

Errors

HTTPCodeCause
400MISSING_FIELDRequired field absent.
400INVALID_DATEYear out of range or bad calendar date.
400INVALID_TIMEZONENon-IANA timezone.
400INVALID_COORDINATELatitude or longitude out of range.
400INVALID_PARAMBad node_type or ayanamsa.
405METHOD_NOT_ALLOWEDNon-POST request.
500COMPUTE_ERRORChart computation failed.
500DATA_ERRORRemedy data files not found.

Notes

  • Selection priority: Lagna lord > Yogakaraka > Functional benefics. Only planets in good dignity (exalted, mooltrikona, own sign, or normal) are eligible.
  • Fallback logic ensures a non-empty response: if no benefic qualifies, the Lagna lord stone is recommended regardless of dignity, optionally paired with the 9th lord.
  • Each stone includes both primary gemstone and affordable substitute.

See also