કન્ટેન્ટ પર જાઓ
API key મેળવો
પશ્ચિમીસેન્ડબોક્સ

Western Transit Chart Image API

"operation": "western-transit-image"

જન્મ અને ગોચર સ્થિતિઓનો ઓવરલે ચાર્ટ એમ્બેડ કરો.

POST/v1/astrology/calculate
  • દર મહિને 500 મફત કૉલ
  • કાર્ડની જરૂર નથી
  • નિષ્ફળ ગણતરીઓ મફત છે

રિક્વેસ્ટ

ગણતરી કરો

તમારી API key સાથે તમારા સર્વર પરથી "operation": "western-transit-image" ને POST /v1/astrology/calculate પર મોકલો.

આ નમૂના પેરામીટર parameters હેઠળ મોકલો: natal, current_city, transit_date, show_inter_aspects, show_natal_aspects, show_transit_aspects, natal_planet_color, transit_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":"John Doe","year":1990,"month":5,"day":15,"hour":14,"minute":30,"time_known":false,"city":"London","tz_str":"AUTO","size":700,"theme_type":"light","format":"svg","chart_config":{"custom_sign_bg_color":"#e8e0f0","custom_house_bg_color":"#e0f0f8","show_retrograde_markers":true,"retrograde_marker_style":"R","french_style":true,"french_planet_radius_offset":0,"french_transit_planet_radius_offset":24,"french_transit_degree_label_offset":-28,"french_transit_natal_planets_inside":false,"french_transit_natal_inner_radius_offset":0,"french_transit_inner_natal_house_gap":60,"french_transit_inner_natal_planet_radius_offset":null,"custom_planet_color":null}},"current_city":"New York","transit_date":"2026-02-26T12:00","show_inter_aspects":true,"show_natal_aspects":false,"show_transit_aspects":false,"natal_planet_color":"#1565C0","transit_planet_color":"#C62828"},"operation":"western-transit-image"}'

રિસ્પોન્સ

બદલામાં શું મળે છે.

દૃષ્ટાંતરૂપ રિસ્પોન્સનો અંશ

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

પશ્ચિમી

પરિણામ વડે બનાવો

ચાર્ટને data URI તરીકે રેન્ડર કરવા data.contentType અને data.imageBase64 વાપરો.

એક સફળ કૉલ એક કન્ટેન્ટ રિક્વેસ્ટ વાપરે છે. સેન્ડબોક્સ અને લાઇવ રિક્વેસ્ટના વપરાશના કુલ આંકડા અલગ હોય છે. નિષ્ફળ ગણતરીઓની રિક્વેસ્ટ પાછી મળે છે.