# Panchang API

> Panchang API. Calculate Panchang elements (Hindu calendar) for any date: Tithi (lunar day), Nakshatra (lunar mansion), Yoga, and Karana. Daily panchang

- Capability page: https://roxyapi.com/apis/panchang-api
- Full domain: https://roxyapi.com/products/vedic-astrology-api
- OpenAPI spec: https://roxyapi.com/api/v2/vedic-astrology/openapi.json
- Remote MCP server: https://roxyapi.com/mcp/vedic-astrology

## Overview

Calculate Panchang elements (Hindu calendar) for any date: Tithi (lunar day), Nakshatra (lunar mansion), Yoga, and Karana. Daily panchang API for determining auspicious timings (muhurta), festival dates, and planetary influences. Tithi calculator with Shukla/Krishna paksha. Accurate nakshatra today with ruling planet. Essential for Hindu calendar integration, muhurta selection, and Vedic timekeeping in astrology apps.

## Endpoints

- `POST /api/v2/vedic-astrology/panchang/basic` Get basic Panchang - Tithi Nakshatra Yoga Karana Calculator
- `POST /api/v2/vedic-astrology/panchang/choghadiya` Get Choghadiya - 8 Muhurta divisions of day and night
- `POST /api/v2/vedic-astrology/panchang/detailed` Get detailed Panchang with Rahu Kaal, Yamaganda, Gulika
- `POST /api/v2/vedic-astrology/panchang/hora` Get Hora - 24 Planetary Hours (12 day + 12 night)

## Example request

```bash
curl -X POST "https://roxyapi.com/api/v2/vedic-astrology/panchang/basic" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"date":"2025-12-17","time":"12:00:00","latitude":28.6139,"longitude":77.209}'
```

## Example response

```json
{
  "tithi": {
    "number": 5,
    "name": "Panchami",
    "paksha": "Shukla",
    "percent": 67.5
  },
  "nakshatra": {
    "number": 1,
    "name": "Ashwini",
    "lord": "Ketu",
    "pada": 2
  },
  "yoga": {
    "number": 1,
    "name": "Vishkumbha"
  },
  "karana": {
    "number": 7,
    "name": "Bava"
  },
  "sunLongitude": 265.42,
  "moonLongitude": 315.67
}
```

## Remote MCP

Every endpoint is a callable tool on the Remote MCP server at https://roxyapi.com/mcp/vedic-astrology over Streamable HTTP. Tool name for `POST /vedic-astrology/panchang/basic`: `post_vedic_astrology_panchang_basic`. `tools/list` is free; `tools/call` bills the same as REST.

## FAQ

### What does the Panchang API return?

Calculate Panchang elements (Hindu calendar) for any date: Tithi (lunar day), Nakshatra (lunar mansion), Yoga, and Karana. Every response is structured JSON with documented fields, not free text, so you map it straight into your product.

### How do I authenticate with the Panchang API?

Pass your key in the X-API-Key header on every request. Keys are delivered instantly at checkout with no approval queue. Use a secret sk key server side, or mint a publishable pk key locked to your origins for browser and no-code use.

### Does the Panchang API support multiple languages?

Yes. Append the lang query parameter to any endpoint for responses in English, German, Spanish, French, Hindi, Portuguese, Russian and Turkish. The translated payload includes the full interpretation text, not just field labels.

### Do I need coordinates to call the Panchang API?

No. Call GET /location/search with a city name first, then pass latitude, longitude, and timezone from the first result into the request. Never ask users to type coordinates. Timezone accepts a decimal offset or an IANA name.

### Is the Panchang API available over Remote MCP for AI agents?

Yes. Every endpoint is exposed as a callable tool on the Remote MCP server at https://roxyapi.com/mcp/vedic-astrology over Streamable HTTP, so Claude, ChatGPT, Cursor, and any MCP client auto-discover it with no local setup or Docker.

### How is the Panchang API billed?

Flat pricing: 1 request equals 1 quota unit, REST and MCP identical, with no credit weighting or per-token markup. Every plan includes all 12 domains, so the Panchang API is included at no extra cost.

### What lang values does the Panchang API accept?

The lang parameter accepts en, tr, de, es, hi, pt, fr, ru. Case-insensitive where it is a path value.

## Full reference

Fetch the OpenAPI spec at https://roxyapi.com/api/v2/vedic-astrology/openapi.json. Master agent manifest at https://roxyapi.com/llms.txt.
