Jupiter Transit API with Asp Net

Integrate Jupiter Transit API in Asp Net. Complete code examples and SDK documentation.

Operation

POST /v2/astrology/jupiter-transit

Jupiter's current transit position against the Moon sign of a birth chart.

Positions are for the current moment. The birth details supply the natal Moon sign. Send datetime (or date with time) together with latitude and longitude, or send an empty object: with no birth fields the current moment in New Delhi is used. Sending some birth fields without the rest returns 400.

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.
latitudebodynumberLatitude of the birth place in decimal degrees, -90 to 90. Alias lat.
longitudebodynumberLongitude 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 ASP.NET

Authenticate with Authorization: Bearer YOUR_API_KEY. Keep the key in the VEDIKA_API_KEY environment variable on your server and never in source control.

using System.Net.Http.Headers;
using System.Text;

// Program.cs (minimal API)
app.MapGet("/vedika/jupiter-transit", async () =>
{
    const string payload = """
    {
      "datetime": "1990-05-15T10:30:00+05:30",
      "latitude": 28.6139,
      "longitude": 77.209,
      "timezone": "Asia/Kolkata"
    }
    """;

    using var http = new HttpClient();
    using var request = new HttpRequestMessage(HttpMethod.Post, "https://api.vedika.io/v2/astrology/jupiter-transit");
    request.Headers.Authorization = new AuthenticationHeaderValue(
        "Bearer", Environment.GetEnvironmentVariable("VEDIKA_API_KEY"));
    request.Content = new StringContent(payload, Encoding.UTF8, "application/json");

    var response = await http.SendAsync(request);
    return Results.Content(await response.Content.ReadAsStringAsync(), "application/json");
});

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/jupiter-transit \
  -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/jupiter-transit, 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": {
    "degreeInSign": 2.1222520908035563,
    "effect": {
      "description": "Fortune, spiritual growth, father's blessings",
      "nature": "benefic"
    },
    "gocharaVerdict": "favourable",
    "houseFromMoon": 9,
    "houseFromMoonLabel": "9th",
    "longitude": 122.12225209080356,
    "natalMoonSign": "Sagittarius",
    "planet": "Jupiter",
    "sign": "Leo",
    "signIndex": 4
  },
  "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