Divisional Charts API with Wails

Integrate Divisional Charts API in Wails. Complete code examples and SDK documentation.

Operation

POST /v2/astrology/divisional-charts

Rasi (D1) and Navamsa (D9) charts for a birth moment, each with ascendant, houses and planets.

Parameters

NameInTypeDescription
datetimebodystringBirth date and time in ISO 8601, for example 1990-05-15T10:30:00+05:30. Send this, or date with time.
datebodystringBirth date as YYYY-MM-DD. Used when datetime is not sent.
timebodystringBirth time as HH:MM, used with date. Defaults to 12:00 when omitted.
latitudebodynumberRequired. Latitude of the birth place in decimal degrees, -90 to 90. Alias lat.
longitudebodynumberRequired. Longitude of the birth place in decimal degrees, -180 to 180. Aliases lon, lng, long.
timezonebodystringIANA zone name or UTC offset such as +05:30. Inferred from the coordinates when omitted.

Request example for Wails

Authenticate with Authorization: Bearer YOUR_API_KEY. This code runs on your users’ devices, so it must not hold your API key. Call a route on your own backend that adds the Authorization: Bearer YOUR_API_KEY header and forwards the request. The server-side pages linked below show such a route.

package main

import (
	"io"
	"net/http"
)

// Runs in the desktop app: call your own backend, not api.vedika.io.
func (a *App) Load() (string, error) {
	res, err := http.Get("https://your-backend.example.com/vedika/divisional-charts")
	if err != nil {
		return "", err
	}
	defer res.Body.Close()
	body, err := io.ReadAll(res.Body)
	return string(body), err
}

Try it in the keyless sandbox

The sandbox mirrors the production route and needs no API key:

curl -X POST https://api.vedika.io/sandbox/astrology/divisional-charts \
  -H "Content-Type: application/json" \
  -d '{"datetime":"1990-05-15T10:30:00+05:30","latitude":28.6139,"longitude":77.209,"timezone":"Asia/Kolkata"}'

Sandbox response from POST /sandbox/astrology/divisional-charts, abridged (billing block, long text fields and long lists trimmed). The sandbox answers with a fixed demo result and ignores your inputs; a production call computes the result for the details you send.

{
  "data": {
    "D1": {
      "ascendant": {
        "degree": 13.55258465896992,
        "sign": "Pisces"
      },
      "houses": [
        {
          "house": 1,
          "lordPlacement": null,
          "sign": "Pisces",
          "signLord": "Jupiter"
        },
        {
          "house": 2,
          "lordPlacement": null,
          "sign": "Aries",
          "signLord": "Mars"
        }
      ],
      "moonSign": "Sagittarius",
      "nakshatra": "Purva Ashadha",
      "planets": [
        {
          "degree": 16.57555454286853,
          "dignity": null,
          "house": 10,
          "isRetrograde": false,
          "nakshatra": "Purva Ashadha",
          "nakshatraLord": "Venus",
          "nakshatraPada": 1,
          "name": "Sun",
          "sign": "Sagittarius",
          "signNumber": 9
        },
        {
          "degree": 14.0172602641901,
          "dignity": null,
          "house": 10,
          "isRetrograde": false,
          "nakshatra": "Purva Ashadha",
          "nakshatraLord": "Venus",
          "nakshatraPada": 1,
          "name": "Moon",
          "sign": "Sagittarius",
          "signNumber": 9
        }
      ],
      "source": "vedika-ephemeris",
      "sunSign": "Sagittarius",
      "tithi": "Krishna Purnima/Amavasya",
      "zodiacSystem": "vedic",
      "zodiacType": "sidereal"
    },
    "D9": {
      "ascendant": {
        "degree": 1.973261930729274,
        "sign": "Scorpio"
      },
      "houses": [
        {
          "house": 1,
          "lordPlacement": null,
          "sign": "Scorpio",
          "signLord": "Mars"
        },
        {
          "house": 2,
          "lordPlacement": null,
          "sign": "Sagittarius",
          "signLord": "Jupiter"
        }
      ],
      "moonSign": "Leo",
      "nakshatra": "Purva Ashadha",
      "planets": [
        {
          "degree": 29.17999088581677,
          "dignity": "Moolatrikona",
          "house": 10,
          "isRetrograde": false,
          "nakshatra": "Purva Ashadha",
          "nakshatraLord": "Venus",
          "nakshatraPada": 1,
          "name": "Sun",
          "sign": "Leo",
          "signNumber": 5
        },
        {
          "degree": 6.155342377710889,
          "dignity": "Neutral",
          "house": 10,
          "isRetrograde": false,
          "nakshatra": "Purva Ashadha",
          "nakshatraLord": "Venus",
          "nakshatraPada": 1,
          "name": "Moon",
          "sign": "Leo",
          "signNumber": 5
        }
      ],
      "source": "vedika-ephemeris:navamsa-d9",
      "sunSign": "Leo",
      "tithi": "Krishna Purnima/Amavasya",
      "zodiacSystem": "vedic",
      "zodiacType": "sidereal"
    }
  },
  "meta": {
    "contentMode": "fixture",
    "engine": "vedika-intelligence",
    "fixtureId": "demo-birth-1995-new-delhi",
    "inputUsage": "ignored",
    "mode": "sandbox",
    "sample": true,
    "version": "2.1.0"
  },
  "success": true
}

Related

The same endpoint in other stacks:

Last updated: 22 November 2026

Start 14-day trial