Kundli Matching API - C#

Kundli Matching API with C# 🟣

Integrate Kundli Matching API into your C# application.

Installation

No package to install. This example uses HttpClient, built into .NET 8 and later.

Example Code

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

using var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "YOUR_API_KEY");

var body = """
    {
      "male": {
        "datetime": "1990-06-15T10:30:00",
        "latitude": 18.5204,
        "longitude": 73.8567,
        "timezone": "Asia/Kolkata"
      },
      "female": {
        "datetime": "1992-03-08T07:15:00",
        "latitude": 19.076,
        "longitude": 72.8777,
        "timezone": "Asia/Kolkata"
      }
    }
    """;
var response = await http.PostAsync(
    "https://api.vedika.io/v2/astrology/kundli-matching",
    new StringContent(body, Encoding.UTF8, "application/json"));
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());

Get Started Free

Try our sandbox API with no authentication required

Try Sandbox Read Docs