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

Western Solar Return Chart Image API

"operation": "western-solar-return-image"

ਸੋਲਰ ਰਿਟਰਨ ਕੁੰਡਲੀ ਐਮਬੈੱਡ ਕਰੋ।

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

ਬੇਨਤੀ

ਗਣਨਾ ਕਰੋ

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

ਇਹ ਨਮੂਨਾ ਪੈਰਾਮੀਟਰ parameters ਹੇਠ ਭੇਜੋ: natal, solar_return_year, solar_return_city, solar_return_tz_str, show_inter_aspects, show_natal_aspects, show_solar_return_aspects, natal_planet_color, solar_return_planet_color। ਬੇਨਤੀ ਵਿੱਚ ਦਿਖਾਇਆ 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":"Maya","year":1990,"month":5,"day":15,"hour":14,"minute":30,"city":"London","tz_str":"AUTO","format":"svg","size":700,"theme_type":"light"},"solar_return_year":2026,"solar_return_city":"Paris","solar_return_tz_str":"AUTO","show_inter_aspects":true,"show_natal_aspects":false,"show_solar_return_aspects":false,"natal_planet_color":"#1565C0","solar_return_planet_color":"#C62828"},"operation":"western-solar-return-image"}'

ਜਵਾਬ

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

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

/v1/astrology/calculate200 OK
{
  "data": {
    "operation": "western-solar-return-image",
    "contentType": "image/png",
    "imageBase64": "<PNG bytes encoded as base64>"
  },
  "calculated": true
}

ਪੱਛਮੀ

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

ਕੁੰਡਲੀ ਨੂੰ data URI ਵਜੋਂ ਰੈਂਡਰ ਕਰਨ ਲਈ data.contentType ਅਤੇ data.imageBase64 ਵਰਤੋ।

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