Remedies for one graha
curl -X GET https://api.astroway.info/v1/vedic/remedies/by-graha?graha=saturn \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/vedic/remedies/by-graha?graha=saturn', { 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-graha?graha=saturn', 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-graha?graha=saturn', [ '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 graha (graha: sun, moon, mars, mercury, jupiter, venus, saturn, rahu, ketu): the Vedic mantra with its BPHS japa count, the beeja mantra, the graha shanti (image material, contemplation, samidh, food), dakshina, colour and weekday, rudraksha mukhi, yantra, fasting day, and links to the gemstone and Lal Kitab routes. doshas lists the doshas that draw on this graha. Optional type filter.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
saturnThe graha, lowercase English name.
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
Example
{ "ok": true, "data": { "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." }, { "graha": "saturn", "dosha": null, "id": "saturn.graha-shanti", "type": "puja", "title": "Graha shanti of Saturn", "detail": { "imageMaterial": "iron", "contemplation": "The lustre of blue sapphire (indranila), four-armed, holding trident, bow, arrow and the boon gesture, mounted on a donkey (v. 11).", "samidh": { "sanskrit": "shami", "common": "Prosopis cineraria" }, "havan": "Samidh dipped in honey, ghee, curd or milk; 108 or 28 oblations.", "naivedya": "rice cooked with sesame powder", "naivedyaFor": "Food given to Brahmins after the rite." }, "source": "BPHS ch. 84 vv. 3-16, 21-24 (graha shanti; ch. 86 in the G.C. Sharma 2006 edition): image, contemplation, offerings, samidh, havan and food for Brahmins; Yajnavalkya Smriti, Acharadhyaya, Graha-shanti prakarana 1.297-1.305", "basis": "classical", "note": "A rite performed by or with a priest in the tradition. Listed for reference, not as an instruction." } ], "doshas": [ "pitru", "sade-sati", "shrapit" ], "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" }}