ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ
API key ਲਓ
ਪੱਛਮੀਸੈਂਡਬਾਕਸ

Western Primary Directions API

"operation": "western-primary-directions"

ਕਿਸੇ ਮਿਆਦ ਦੌਰਾਨ ਪ੍ਰਾਇਮਰੀ ਡਾਇਰੈਕਸ਼ਨ ਘਟਨਾਵਾਂ ਦਿਖਾਓ।

POST/v1/astrology/calculate
  • ਹਰ ਮਹੀਨੇ 500 ਮੁਫ਼ਤ ਕਾਲਾਂ
  • ਕਾਰਡ ਦੀ ਲੋੜ ਨਹੀਂ
  • ਅਸਫਲ ਗਣਨਾਵਾਂ ਮੁਫ਼ਤ ਹਨ

ਬੇਨਤੀ

ਗਣਨਾ ਕਰੋ

ਆਪਣੀ API key ਨਾਲ ਆਪਣੇ ਸਰਵਰ ਤੋਂ "operation": "western-primary-directions" ਨੂੰ POST /v1/astrology/calculate 'ਤੇ ਭੇਜੋ।

ਇਹ ਨਮੂਨਾ ਪੈਰਾਮੀਟਰ parameters ਹੇਠ ਭੇਜੋ: natal, settings, range। ਬੇਨਤੀ ਵਿੱਚ ਦਿਖਾਇਆ birth ਢਾਂਚਾ ਵਰਤੋ। ਵੱਖ-ਵੱਖ ਫ਼ੀਲਡਾਂ ਲਈ, year/month/day ਸਥਾਨਕ ਕੈਲੰਡਰ ਦੇ ਪੂਰਨ ਅੰਕ ਹਨ ਅਤੇ hour/minute ਸਥਾਨਕ 24-ਘੰਟੇ ਦਾ ਸਮਾਂ ਹੈ। lat/lng ਦਸ਼ਮਲਵ ਡਿਗਰੀਆਂ ਹਨ ਅਤੇ tz_str ਇੱਕ IANA ਟਾਈਮਜ਼ੋਨ ਹੈ, ਜਾਂ ਜਿੱਥੇ ਦਿਖਾਇਆ ਹੋਵੇ ਉੱਥੇ AUTO। ਅੰਦਰਲੇ datetime ਅਤੇ location ਆਬਜੈਕਟ ਨਮੂਨੇ ਅਨੁਸਾਰ ਹੁੰਦੇ ਹਨ। ਜਿੱਥੇ ਲਾਗੂ ਹੋਵੇ, ਬੇਨਤੀ ਕਾਲਪਨਿਕ ਇਨਪੁਟ ਵਰਤਦੀ ਹੈ। ਲੋੜ ਪੈਣ 'ਤੇ ਨਮੂਨੇ ਵਿੱਚ ਵਿਕਲਪਿਕ ਸੈਟਿੰਗਾਂ ਵੀ ਸ਼ਾਮਲ ਹਨ।

request.sh
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
  -H "Authorization: Bearer $MANTRILO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"parameters":{"natal":{"name":"Documentation Sample","datetime":"1990-01-01 12:00","time_known":true,"location":{"city":"London","lat":51.5074,"lng":-0.1278,"tz_str":"Europe/London"}},"settings":{"method":"regiomontanus_in_mundo","direction":"both","key":"naibod","secondary_motion":"moon","latitude_doctrine":"both","bounds_system":"egyptian","include_bounds":true,"include_natal_reference":false,"promissors":["sun","moon","mercury","venus","mars","jupiter","saturn"],"significators":["asc","mc","dc","ic","sun","moon","lot_of_fortune"],"aspects":["conjunction","sextile","square","trine","opposition"],"orb_years":1},"range":{"start_date":"2026-01-01","end_date":"2030-12-31","limit":5}},"operation":"western-primary-directions"}'

ਜਵਾਬ

ਬਦਲੇ ਵਿੱਚ ਕੀ ਮਿਲਦਾ ਹੈ।

ਨਮੂਨਾ ਜਵਾਬ ਦਾ ਅੰਸ਼

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-primary-directions",
    "result": {
      "events": [
        {
          "date": "2028-05-12",
          "exact_datetime_utc": "2028-05-12T14:30:00Z"
        }
      ]
    }
  },
  "calculated": true
}

ਪੱਛਮੀ

ਨਤੀਜੇ ਨਾਲ ਬਣਾਓ

data.result ਵਿੱਚ ਦਿੱਤੀਆਂ ਡਾਇਰੈਕਸ਼ਨ ਘਟਨਾਵਾਂ ਅਤੇ ਮਿਤੀਆਂ ਦੀ ਸੂਚੀ ਬਣਾਓ। ਉਦਾਹਰਨ ਫ਼ੀਲਡ: data.result.events।

ਇੱਕ ਸਫਲ ਕਾਲ ਇੱਕ ਸਮੱਗਰੀ ਬੇਨਤੀ ਵਰਤਦੀ ਹੈ। ਸੈਂਡਬਾਕਸ ਅਤੇ ਲਾਈਵ ਬੇਨਤੀਆਂ ਦੀ ਵਰਤੋਂ ਵੱਖਰੀ ਗਿਣੀ ਜਾਂਦੀ ਹੈ। ਅਸਫਲ ਗਣਨਾਵਾਂ ਵਾਪਸ ਕਰ ਦਿੱਤੀਆਂ ਜਾਂਦੀਆਂ ਹਨ।