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

Western Astrocartography Recommendations API

"operation": "western-astrocartography-recommendations"

ਚੁਣੇ ਹੋਏ ਫ਼ੋਕਸ ਲਈ ਮੰਜ਼ਿਲਾਂ ਦੀ ਦਰਜਾਬੰਦੀ ਕਰੋ।

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

ਬੇਨਤੀ

ਗਣਨਾ ਕਰੋ

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

ਇਹ ਨਮੂਨਾ ਪੈਰਾਮੀਟਰ parameters ਹੇਠ ਭੇਜੋ: natal, focus, country_scope, countries, limit, min_population। ਬੇਨਤੀ ਵਿੱਚ ਦਿਖਾਇਆ 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":{"year":1995,"month":9,"day":5,"hour":20,"minute":0,"city":"Paris","lat":48.8566,"lng":2.3522,"tz_str":"Europe/Paris","time_known":true,"house_system":"placidus"},"focus":"home","country_scope":"selected_countries","countries":["FR","ES","PT"],"limit":10,"min_population":100000},"operation":"western-astrocartography-recommendations"}'

ਜਵਾਬ

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

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

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-astrocartography-recommendations",
    "result": {
      "results": [
        {
          "city": {
            "name": "Lisbon"
          },
          "score": 63,
          "summary": "Several supportive indicators."
        }
      ]
    }
  },
  "calculated": true
}

ਪੱਛਮੀ

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

data.result ਤੋਂ ਮੰਜ਼ਿਲਾਂ ਦੇ ਨਾਂ, ਦਰਜਾਬੰਦੀ ਅਤੇ ਸਕੋਰ ਦਿਖਾਓ। ਉਦਾਹਰਨ ਫ਼ੀਲਡ: data.result.results।

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