Remedies catalogue (upaya)
curl -X GET https://api.astroway.info/v1/vedic/remedies/catalogue \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/vedic/remedies/catalogue', { 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/catalogue', 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/catalogue', [ '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']);The whole remedies catalogue: for each of the nine grahas and eight doshas, the classical and popular remedies by type (mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab). Each item names its source and a basis: classical when the cited text has it, modern-popular otherwise. Optional type filter, one value or a comma list. Static lookup, no chart needed.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”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
object
object
Example
{ "ok": true, "data": { "types": [ "mantra" ], "grahas": [ { "graha": "sun", "grahaId": 0, "name": "Sun", "sanskrit": "Surya", "remedies": [ { "graha": "sun", "dosha": null, "id": "sun.vedic-mantra", "type": "mantra", "title": "Vedic mantra of Sun", "detail": { "mantraKind": "vedic", "pratika": "Aa krishnena rajasa", "vedaRef": "Rigveda 1.35.2", "japaCount": 7000 }, "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." } ] } ], "doshas": [ { "dosha": "mangal", "name": "Mangal (Kuja) dosha", "classicalStatus": "Named in classical matchmaking texts; the house list and the exceptions vary by school.", "grahas": [ "mars" ], "detection": { "method": "POST", "path": "/v1/vedic/doshas/parashara/mangal", "note": "school strict, north or south." }, "specific": [], "related": [ { "method": "POST", "path": "/v1/vedic/compatibility/dosha-cancellation", "note": "The textual exceptions for a couple, each with its verse." } ] } ], "sources": [ "BPHS ch. 84 (graha shanti), ch. 83 (curses of the previous birth), ch. 91 (birth in an eclipse), ch. 37 (Kemadruma), ch. 27 (Shadbala requirements); numbering of the 97-chapter English text" ], "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" }}