Prashna
GET
2 credits

/v1/prashna/answer

Prashna yes/no answer synthesis.

What this tells you

Synthesizes a yes/no answer from the Prashna chart by weighing classical significators: lagna lord condition, Moon's state, aspects on lagna, benefic/malefic placements. Costs 2 credits because it runs multiple internal calculations.

Request

All requests require an Authorization header with your dv_live_* API key.

example request
curl "https://api.divyastroapi.com/v1/prashna/answer?date=2026-04-19&time=06%3A30&tz=%2B05%3A30&lat=28.61&lon=77.21" \
  -H "Authorization: Bearer dv_live_0123456789abcdef0123456789abcdef"

Response (200 OK)

Successful requests return a JSON body. Field names are stable across versions.

200 response
{
  "query_category": "yes_no",
  "answer": "yes",
  "confidence": "high",
  "factors": [
    { "factor": "Lagna lord Sun in 9th house",       "weight": "+3" },
    { "factor": "Lagna lord is exalted",              "weight": "+2" },
    { "factor": "Jupiter aspecting the Moon",         "weight": "+2" },
    { "factor": "No malefic aspect on lagna",         "weight": "+1" }
  ],
  "explanation": "Four positive factors and no negatives suggest a strong yes. The strongly placed lagna lord Sun in the 9th, aspected by a well-placed Jupiter, indicates successful outcome."
}

Field reference

Every field in the response, with its type, a real example, and what it means.

FieldTypeMeaning
query_categorystring
Type of question being answered.
example: "yes_no"
answerstring
"yes" / "no" / "uncertain".
example: "yes"
confidencestring
low / medium / high — how strong the indication is.
example: "high"
factorsarray
Contributing factors with their weighted contribution to the answer.
example: […]
explanationstring
Plain-language synthesis of the factors.
example:

Usage tips

How to use it

  • Always show factors
    A bare "yes" is unsatisfying. Render the factor list so users understand why.
  • Low confidence = "try again later"
    When confidence is low, suggest the user ask the question again after an hour (the chart will shift).

Errors

Every error follows the same envelope. Use the error.code field (not the message) for conditional logic in your integration.

401 Unauthorized

{
  "error": {
    "code": "unauthorized",
    "message": "missing or invalid API key",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

402 Payment Required

{
  "error": {
    "code": "trial_exhausted",
    "message": "your free trial credits are exhausted — pick a plan to continue",
    "top_up_url": "https://divyastroapi.com/pricing",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

429 Too Many Requests

{
  "error": {
    "code": "rate_limited",
    "message": "rate limit exceeded; retry after 12 seconds",
    "request_id": "req_01hqy7k8c3e7m1n"
  }
}

Try it

Get a dv_live_* key from your dashboard and paste into the cURL snippet above. New accounts get 500 free credits. Sign up.