Skip to content
POST/api/astro/activities_day_of_week/1 credit

Weekday activities

Each day of the week is ruled by a planet, and Vedic tradition assigns every weekday a set of undertakings it favours — particular metals, materials, trades and kinds of work. This endpoint returns that guidance as written English prose, one paragraph per weekday. It is a static lookup, not a calculation: no date, place or chart is involved, so the answer for Sunday is the same whichever Sunday you mean. Use it to caption a day in a calendar or panchanga view without having to write the copy yourself. Start with `get_all_weeks` to see the seven accepted names, then pass one of them as `week` alongside `get_week_activities`. Your input is lower-cased before the lookup, so casing does not matter. An unrecognised weekday comes back as an explanatory string with HTTP 200 rather than as an error.

https://yogataraapi.prahlad.app/api/astro/activities_day_of_week/
Test Request

Authentication

Send your key in the X-API-Key header. Keys are server-side credentials — never put one in browser JavaScript or a mobile app.

X-API-Key: yt_live_a1b2c3d4_…
Content-Type: application/json

Request fields

FieldTypeRequiredNotes
keysarrayrequired

Which calculations to return, as a list of names. See the key table for this endpoint; an unrecognised name rejects the whole request. One call costs one credit however many keys you ask for, so request everything you need at once rather than making several calls.

get_week_activitiesget_all_weeks
weekstringoptional
sundaymondaytuesdaywednesdaythursdayfridaysaturday

Lowercase in the data and the engine does an exact `week not in self.info` check, but lowercases first, so any casing works. Required for key 'get_week_activities'.

Available keys (2)

Ask for exactly the calculations you want by listing them in keys. An unknown key rejects the whole request, and you are charged 1 credit however many you ask for — so batch them.

KeyExtra fields neededDescription
get_all_weeksThe seven weekday names this endpoint accepts, as a list of lower-case strings from 'sunday' to 'saturday'. Use it to discover the valid values for the `week` field.
get_week_activitiesweekThe activities traditionally favoured on the weekday named in `week` — metals, materials, trades and kinds of work — as a single English paragraph. An unrecognised weekday returns the string "Invalid week: '<value>'." with a 200 status rather than an error.

Example request

curl -X POST https://yogataraapi.prahlad.app/api/astro/activities_day_of_week/ \
  -H "X-API-Key: $OCCULT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keys":["get_week_activities"],"week":"sunday"}'

Response

{
  "data": {
    "get_week_activities": "This day is particularly favorable for activities involving gold, copper, horses, natural materials like dried wood and bark, woolen items, hill-related activities, healing practices, white silk work, trading activities, artistic endeavors, pure and noble activities, courageous undertakings, and fire-related work. It supports activities requiring leadership, authority, and purification."
  },
  "status": 200,
  "is_error": false,
  "message": "successful"
}

Captured from a real call using the exact request above. Results sit under data, keyed by what you requested.

Errors

Metering errors return { "error": "…", "message": "<code>", "is_error": true }. Show error to people and branch on message. See the error reference.