Remedies for a birth chart
curl -X POST https://api.astroway.info/v1/vedic/remedies/chart \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json" \ -d '{ "date": "1990-05-15", "time": "15:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "targetDate": "2026-11-07" }'const res = await fetch('https://api.astroway.info/v1/vedic/remedies/chart', { method: 'POST', headers: { 'X-Api-Key': process.env.ASTROWAY_API_KEY, 'Content-Type': 'application/json', }, body: JSON.stringify({ "date": "1990-05-15", "time": "15:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "targetDate": "2026-11-07" }),});const { ok, data, error } = await res.json();if (!ok) throw new Error(error.message);console.log(data);import os, requests
r = requests.post( 'https://api.astroway.info/v1/vedic/remedies/chart', headers={'X-Api-Key': os.environ['ASTROWAY_API_KEY'], 'Content-Type': 'application/json'}, json={ 'date': "1990-05-15", 'time': "15:30:00", 'timezoneOffset': 3, 'latitude': 50.45, 'longitude': 30.52, 'targetDate': "2026-11-07" },)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->post('vedic/remedies/chart', [ 'headers' => ['X-Api-Key' => getenv('ASTROWAY_API_KEY')], 'json' => [ 'date' => '1990-05-15', 'time' => '15:30:00', 'timezoneOffset' => 3, 'latitude' => 50.45, 'longitude' => 30.52, 'targetDate' => '2026-11-07', ],]);$result = json_decode($r->getBody(), true);if (!$result['ok']) throw new \RuntimeException($result['error']['message']);print_r($result['data']);Finds the grahas that are weak or afflicted in a sidereal chart and the doshas present, and returns their remedies with the reason each graha was selected. A graha is selected when its Shadbala is below the BPHS 27.32-33 requirement, when it is debilitated, when it is combust, or when it forms a present dosha (Mangal, Kaal Sarp, Pitru, Shrapit, Grahan, Guru-Chandal as on /vedic/doshas/parashara/full, Kemadruma by BPHS 37.11-13, Sade Sati on targetDate). checked shows every graha’s Shadbala against its requirement and every dosha’s result. Coordinates are required. Optional types filter. Nothing is ranked or prescribed.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”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
4Header Parameters
Section titled “Header Parameters ”Unique per logical operation, kept across retries. For 24 hours from the first request, a repeat with the same key, method, path, body and query string returns the stored response with Idempotent-Replayed: true and costs 0 credits. The same key with a different body or query string is a 409 IDEMPOTENCY_KEY_REUSED; a repeat while the first is still running is a 409 IDEMPOTENCY_IN_PROGRESS. Only 2xx responses are kept. See /idempotency/.
Example
01HXY2A7ZM0ABCDEFRequest Body required
Section titled “Request Body required ”Birth data for chart-driven remedies. Required: date (YYYY-MM-DD), time (HH:mm:ss), latitude and longitude; coordinates do NOT default to 0 here. Optional: types to filter, targetDate for Sade Sati.
object
Hours from UTC at the given moment, not minutes. Fractional zones are hours too: 5.5 for India, 5.75 for Nepal, -3.5 for Newfoundland. Defaults to 0, meaning UTC. Ignored when timezone is sent.
IANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known.
Sidereal school by name. Lahiri when omitted. Equivalent to ayanamsaId; send either.
Birth latitude. Required: Shadbala and the doshas read the lagna.
Birth longitude. Required: Shadbala and the doshas read the lagna.
Return only these remedy types. All types when omitted.
Date for the Sade Sati check, YYYY-MM-DD (UTC noon). Today when omitted.
Example
{ "date": "1990-05-15", "time": "15:30:00", "timezoneOffset": 3, "latitude": 50.45, "longitude": 30.52, "targetDate": "2026-11-07"}Responses
Section titled “ Responses ”Successful calculation
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "ok": true, "data": { "type": "remedies-for-chart", "ayanamsa": 23.7226, "lagna": { "sign": 5, "signName": "Virgo" }, "selected": { "grahas": [ { "graha": "rahu", "name": "Rahu", "reasons": [ { "code": "dosha", "dosha": "shrapit", "detail": "Rahu forms Shrapit dosha.", "source": "Detected as on /v1/vedic/doshas/parashara/shrapit" }, { "code": "dosha", "dosha": "grahan", "detail": "Rahu forms Grahan dosha.", "source": "Detected as on /v1/vedic/doshas/parashara/grahan" } ], "remedies": [ { "graha": "rahu", "dosha": null, "id": "rahu.vedic-mantra", "type": "mantra", "title": "Vedic mantra of Rahu", "detail": { "mantraKind": "vedic", "pratika": "Kaya nas chitra", "vedaRef": "Rigveda 4.31.1", "japaCount": 18000 }, "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": "rahu", "dosha": null, "id": "rahu.beeja-mantra", "type": "mantra", "title": "Beeja mantra of Rahu", "detail": { "mantraKind": "beeja", "mantra": "Om Bhraam Bhreem Bhraum Sah Rahave 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": "moon", "name": "Moon", "reasons": [ { "code": "dosha", "dosha": "grahan", "detail": "Moon forms Grahan dosha.", "source": "Detected as on /v1/vedic/doshas/parashara/grahan" } ], "remedies": [ { "graha": "moon", "dosha": null, "id": "moon.vedic-mantra", "type": "mantra", "title": "Vedic mantra of Moon", "detail": { "mantraKind": "vedic", "pratika": "Imam deva", "vedaRef": "Shukla Yajurveda (Vajasaneyi) 9.40", "japaCount": 11000 }, "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": "moon", "dosha": null, "id": "moon.beeja-mantra", "type": "mantra", "title": "Beeja mantra of Moon", "detail": { "mantraKind": "beeja", "mantra": "Om Shraam Shreem Shraum Sah Chandraya 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." } ] } ], "doshas": [ { "dosha": "mangal", "name": "Mangal (Kuja) dosha", "classicalStatus": "Named in classical matchmaking texts; the house list and the exceptions vary by school.", "grahas": [ "mars" ], "details": [ "School: south (houses checked: 1,2,4,7,8,12 from Lagna+Moon+Venus)", "Mars in house 2 from Moon (Mangal-house)" ], "specific": [], "related": [ { "method": "POST", "path": "/v1/vedic/compatibility/dosha-cancellation", "note": "The textual exceptions for a couple, each with its verse." }, { "method": "POST", "path": "/v1/vedic/doshas/lal-kitab/manglik", "note": "The Lal Kitab reading and its remedy." } ] }, { "dosha": "shrapit", "name": "Shrapit dosha", "classicalStatus": "A modern name for Saturn with Rahu; not in the classical texts. The remedies are those of the two grahas.", "grahas": [ "saturn", "rahu" ], "details": [ "Saturn + Rahu conjunct in Capricorn, house 5: Shrapit Dosha formed" ], "specific": [], "related": [ { "method": "POST", "path": "/v1/vedic/doshas/lal-kitab/shrapit", "note": "The Lal Kitab reading and its remedy." } ] } ] }, "checked": { "grahas": [ { "graha": "sun", "shadbalaVirupa": 411.59, "shadbalaRequired": 390, "sign": "Taurus", "dignity": "neutral", "isCombust": false }, { "graha": "moon", "shadbalaVirupa": 448.75, "shadbalaRequired": 360, "sign": "Capricorn", "dignity": "neutral", "isCombust": false } ], "doshas": { "mangal": true, "kaal-sarp": false, "pitru": false, "shrapit": true, "grahan": true, "guru-chandal": false, "kemadruma": false, "sade-sati": false }, "sadeSatiDate": "2026-11-07" }, "rules": [ "A graha is selected when its Shadbala is below the BPHS 27.32-33 requirement, when it is debilitated, when it is combust, or when it forms a present dosha.", "Rahu and Ketu are selected only through a present dosha." ], "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" }}