Remedies of one type
curl -X GET https://api.astroway.info/v1/vedic/remedies/by-type?type=rudraksha \ -H "X-Api-Key: aw_live_..." \ -H "Content-Type: application/json"const res = await fetch('https://api.astroway.info/v1/vedic/remedies/by-type?type=rudraksha', { 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-type?type=rudraksha', 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-type?type=rudraksha', [ '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']);Every catalogue item of the given type (mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab), or of several in a comma list, across all grahas and doshas.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Example
rudrakshaRemedy type, or a comma list of them: mantra, puja, deity, yantra, rudraksha, fasting, charity, colour, gemstone, lal-kitab.
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": { "type": [ "rudraksha" ], "count": 9, "items": [ { "graha": "sun", "dosha": null, "id": "sun.rudraksha", "type": "rudraksha", "title": "1-mukhi rudraksha", "detail": { "mukhi": 1, "mukhiDeity": "Shiva himself" }, "source": "Mukhi deities: Shiva Purana, Vidyeshvara Samhita ch. 25. The mukhi-to-graha assignment is modern practice and is not in the Purana", "basis": "modern-popular", "note": "Manuals vary on the graha assignment; the deity is the Purana's." }, { "graha": "moon", "dosha": null, "id": "moon.rudraksha", "type": "rudraksha", "title": "2-mukhi rudraksha", "detail": { "mukhi": 2, "mukhiDeity": "Isha, lord of the devas" }, "source": "Mukhi deities: Shiva Purana, Vidyeshvara Samhita ch. 25. The mukhi-to-graha assignment is modern practice and is not in the Purana", "basis": "modern-popular", "note": "Manuals vary on the graha assignment; the deity is the Purana's." } ], "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" }}