Remedies for one dosha
curl -X GET https://api.astroway.info/v1/vedic/remedies/by-dosha?dosha=sade-sati \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/vedic/remedies/by-dosha?dosha=sade-sati', { method: 'GET', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', },});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.get( 'https://api.astroway.info/v1/vedic/remedies/by-dosha?dosha=sade-sati', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'},)result = r.json()if not result['ok']: raise RuntimeError(result['error']['message'])print(result['data'])<?phpuse GuzzleHttp\Client;
$client = new Client(['base_uri' => 'https://api.astroway.info/v1/']);$r = $client->get('vedic/remedies/by-dosha?dosha=sade-sati', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Remedies of one dosha (dosha: mangal, kaal-sarp, pitru, sade-sati, grahan, shrapit, guru-chandal, kemadruma). classicalStatus says whether the dosha itself is in the classical texts; specific holds the rites written for it or for its nearest classical trigger (BPHS 83 curses, BPHS 91 eclipse birth), each noting what it was written for; grahaRemedies holds the remedies of the grahas it is defined over; detection names the route that checks a chart for it. Optional type filter.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
sade-satiThe dosha, lowercase and hyphenated.
Example
mantra,pujaRemedy type, or a comma list of them: mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab. All types when omitted.
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.longitudeRound 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
4Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
Example
{ "ok": true, "data": { "dosha": "sade-sati", "name": "Sade Sati", "classicalStatus": "Saturn's transit over the 12th, 1st and 2nd signs from the natal Moon. The seven-and-a-half-year name and its remedies are later usage.", "grahas": [ "saturn" ], "detection": { "method": "POST", "path": "/v1/vedic/doshas/kp/sade-sati", "note": "Phase on targetDate." }, "specific": [], "related": [], "grahaRemedies": [ { "graha": "saturn", "grahaId": 6, "name": "Saturn", "sanskrit": "Shani", "remedies": [ { "graha": "saturn", "dosha": null, "id": "saturn.vedic-mantra", "type": "mantra", "title": "Vedic mantra of Saturn", "detail": { "mantraKind": "vedic", "pratika": "Sham no devir", "vedaRef": "Rigveda 10.9.4", "japaCount": 23000 }, "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." }, { "graha": "saturn", "dosha": null, "id": "saturn.beeja-mantra", "type": "mantra", "title": "Beeja mantra of Saturn", "detail": { "mantraKind": "beeja", "mantra": "Om Praam Preem Praum Sah Shanaischaraya Namah" }, "source": "Navagraha beeja mantras as printed in modern graha-shanti manuals; BPHS ch. 84 prescribes the Vedic mantra, not a beeja", "basis": "modern-popular", "note": "Manuals print small spelling variants of the same syllables. No classical count is attached to the beeja form." } ] } ], "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
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
Example
{ "ok": false, "error": { "code": "INVALID_API_KEY", "message": "Invalid API key" }}