Griha Pravesh API with Asp Net

Integrate Griha Pravesh API in Asp Net. Complete code examples and SDK documentation.

Operation

POST /v2/astrology/griha-pravesh

Abhijit, Brahma, Durmuhurta, Gulika, Rahu Kaal and Yamaghanta periods with sunrise and sunset for the day and place.

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
datetimebodystringDate and time the calculation is for, in ISO 8601, for example 1990-05-15T10:30:00+05:30. Send this, or date with time.
datebodystringDate as YYYY-MM-DD. Used when datetime is not sent.
timebodystringTime as HH:MM, used with date. Defaults to 12:00 when omitted.
latitudebodynumberLatitude of the place in decimal degrees, -90 to 90. Alias lat. Send it together with longitude.
longitudebodynumberLongitude of the place in decimal degrees, -180 to 180. Aliases lon, lng, long. Send it together with latitude.
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/griha-pravesh", 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/griha-pravesh");
    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/griha-pravesh \
  -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/griha-pravesh, 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": {
    "avoid": {
      "nakshatras": [
        "Bharani",
        "Krittika"
      ],
      "periods": [
        "Venus combust (too close to the Sun)",
        "Jupiter combust (too close to the Sun)"
      ],
      "tithis": [
        "Chaturthi",
        "Navami"
      ],
      "weekdays": [
        "Tuesday",
        "Saturday"
      ],
      "windows": [
        {
          "durationMinutes": 41.5,
          "end": "1995-01-01T06:33:47Z",
          "localEnd": "12:03",
          "localStart": "11:22",
          "name": "Durmuhurta (first)",
          "start": "1995-01-01T05:52:20Z"
        },
        {
          "durationMinutes": 77.7,
          "end": "1995-01-01T08:12:15Z",
          "localEnd": "13:42",
          "localStart": "12:24",
          "name": "Yamaghanta",
          "start": "1995-01-01T06:54:31Z"
        }
      ]
    },
    "bestWindows": [],
    "date": "1995-01-01",
    "event": {
      "matter": "entering or occupying a new home",
      "name": "Griha Pravesh (House Entry)",
      "slug": "griha-pravesh"
    },
    "favourable": [
      {
        "effect": "supports",
        "factor": "karana",
        "reason": "The karana is Naga, not Vishti (Bhadra).",
        "value": "Naga"
      },
      {
        "effect": "raises the score",
        "factor": "yoga",
        "reason": "The Dhruva yoga is auspicious.",
        "value": "Dhruva"
      }
    ],
    "method": "House entry is a permanence rite: fixed (Dhruva) and soft (Mridu) nakshatras, Venus and Jupiter clear of the Sun, outside Chaturmas, Kharmas and Panchaka.",
    "notes": [
      "Auspicious and inauspicious are labels from the Muhurta tradition. This is a rule-table reading of the panchang, not a prediction or a guarantee. Regional and family customs differ, so confirm the final date with your priest.",
      "Sources differ on Panchaka for house entry: some apply it to construction only. This reading treats it as a bar."
    ],
    "place": {
      "latitude": 28.6139,
      "longitude": 77.209,
      "timezone": "Asia/Kolkata"
    },
    "rating": "avoid",
    "referenceTime": "1995-01-01T06:30:00Z",
    "score": 0,
    "suitable": false,
    "unfavourable": [
      {
        "effect": "bars the day",
        "factor": "nakshatra",
        "reason": "The Moon is in Purva Ashadha, a nakshatra barred for Griha Pravesh.",
        "value": "Purva Ashadha"
      },
      {
        "effect": "bars the day",
        "factor": "tithi",
        "reason": "The tithi is Amavasya (new Moon day), which is barred.",
        "value": "Amavasya"
      }
    ]
  },
  "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