Vedic AstroPack

Panchang API

Vedic astronomy as a REST API — tithi, nakshatra, muhurta, choghadiya, eclipses, kundali, dasha and more. JSON out, one header in, no scraping.

One header

Authenticate with x-api-key. No OAuth dance, no SDK required.

Accurate & local

Sunrise‑anchored panchang, Lahiri ayanamsa, ±2 min Sun/Moon, per‑city calculations.

JSON, IST

Clean JSON with JD + ISO + IST times, so you format however you like.

Server‑side engine

All computation runs on our servers — fast, consistent, and nothing to maintain.

Quickstart

Base URL https://api.gopixel.in/api/v1

Auth send your key on every request: x-api-key: YOUR_KEY

curl -H "x-api-key: YOUR_KEY" \
  "https://api.gopixel.in/api/v1/panchang?date=2026-09-12&lat=26.8467&lon=80.9462"
Recommended: call the API from your server and cache results (a date + city is stable). If you must call from a browser, set your allowed domain in My Account → API — but keep in mind the key is then visible to visitors.

Endpoints

GET/panchang daily panchang bundle

params: date=YYYY-MM-DD lat lon

GET/graha 9 planetary positions, retrograde, next sign change

params: date hour (IST, default 12)

GETPOST/tool all other tools via name

POST a JSON body for tools that take person data.

Tool (name)ParamsReturns
horay,m,d,lat,lon24 planetary hours
worldy,m,d,me={n,lat,lon}per‑city sunrise / tithi / nakshatra
hindu · samvaty,m,d[,lat,lon]lunar month, Vikram/Shaka/Kali samvat, ritu, ayana
monthGridy,mmonth with per‑day tithi
vratYear · vratToday · vratUpcomingy,lat,lon[,days]ekadashi (parana), pradosh, sankashti
festivaly,modefestival calendar
muhuraty,m,d,days,lat,lonauspicious dates (vivah, griha, etc.)
horoscoperashi(0..11),date,lang; mode=sunsign&sign=daily rashiphal (general, love, work, health)
doshadate,hour,minute,lat,lonMangal dosha + cancellations, Kala Sarpa (12 variants)
numerologyname,d,m,ypsychic/destiny numbers + Chaldean name numerology
horoscoperashi(0..11),date,lang; mode=sunsign&sign=daily rashiphal (general, love, work, health)
doshadate,hour,minute,lat,lonMangal dosha + cancellations, Kala Sarpa (12 variants)
numerologyname,d,m,ypsychic/destiny numbers + Chaldean name numerology
horoscoperashi(0..11),date,lang; mode=sunsign&sign=daily rashiphal (general, love, work, health)
doshadate,hour,minute,lat,lonMangal dosha + cancellations, Kala Sarpa (12 variants)
numerologyname,d,m,ypsychic/destiny numbers + Chaldean name numerology
horoscoperashi(0..11),date,lang; mode=sunsign&sign=daily rashiphal (general, love, work, health)
doshadate,hour,minute,lat,lonMangal dosha + cancellations, Kala Sarpa (12 variants)
numerologyname,d,m,ypsychic/destiny numbers + Chaldean name numerology
grahanyear,lat,loneclipses + visibility + sutak
panchak · gandmoolyear / y,m,d,hour,minutepanchak, bhadra, gandmool
sadesatiy,m,dSaturn sade‑sati phases
matchingboy{...},girl{...}ashtakoota 36‑guna
kundali · dasha · naamperson{y,m,d,hour,minute,lat,lon}D1/D9 chart · Vimshottari dasha · name syllable

Examples

JavaScript

const r = await fetch(
  "https://api.gopixel.in/api/v1/panchang?date=2026-09-12&lat=26.8467&lon=80.9462",
  { headers: { "x-api-key": KEY } }
);
const p = await r.json();
console.log(p.tithi.name, p.sunrise.ist);

PHP

$ch = curl_init($url);
curl_setopt_array($ch, [
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_HTTPHEADER => ["x-api-key: ".$key],
]);
$p = json_decode(curl_exec($ch), true);

Python

import requests
r = requests.get(url, headers={"x-api-key": KEY})
p = r.json()

Hide the key (Worker)

// static site → proxy /api/* with the key
const r = await fetch(upstream, {
  headers: { "x-api-key": env.PANCHANG_KEY }
});
return new Response(r.body, r);

Errors & rate limits

HTTPMeaning
400Invalid parameters
401Missing or invalid x-api-key
403Tool not in your plan, or domain not allowed
429Quota exceeded — retry with backoff
Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-Usage-Day and Cache-Control. Live usage is on your My Account → API page.

Pricing

Simple plans — start free, upgrade when you scale. Cancel anytime.

Prices exclusive of GST. Need higher volume, multiple domains or an SLA? Talk to us.

FAQ

How do I authenticate?
Send your key in the x-api-key header on every request. That's all — no OAuth, no signing.
Can I call it from the browser?
Technically yes, but your key would be visible to anyone using DevTools. Prefer a server‑side call or a small proxy (see the Cloudflare Worker example). If you must, bind the key to your domain in My Account → API.
What are the rate limits?
Your plan sets a per‑minute and per‑day cap; both are shown as X-RateLimit-* / X-Usage-Day headers. Exceeding them returns 429. Cache results (date + city is stable) to stay comfortably within quota.
Which timezone are the values in?
Times are IST (Asia/Kolkata), returned as JD + ISO + a formatted IST string. The panchang day is sunrise‑anchored, so pass the location's latitude/longitude.
How accurate is it?
Sun and Moon ≈ ±2 minutes; planets (Mercury–Saturn) ≈ ±0.1°. Ayanamsa is Lahiri. Suitable for daily panchang and muhurta reference.
Which features are included?
Panchang, planetary positions, hora, choghadiya, rahu/yama/gulik, world panchang, Hindu calendar & samvat, vrat & festival calendars, muhurat search, eclipses with sutak, panchak/bhadra/gandmool, sade‑sati, kundali D1/D9, ashtakoota matching, Vimshottari dasha, naam akshar, Mangal & Kala Sarpa dosha, numerology, and daily horoscope. Available tools depend on your plan.
Can I use it on multiple websites?
Each key can be bound to one allowed domain (or left open as *). Need several sites? Buy additional keys or ask us about a multi‑domain plan.
Is there a free tier or trial?
We offer a limited free tier for evaluation and a short trial on paid plans. Contact us or check the store for current offers.
What if my key leaks?
Contact us to rotate it — the old key is revoked immediately. You can also regenerate from My Account → API where available.
Do I have to give attribution?
Not required for the API itself. If you use our white‑label UI, keep the footer credit unless your plan removes it.
Do you offer an SLA / uptime guarantee?
The service runs on redundant infra with Cloudflare in front. Enterprise plans can include a written SLA and priority support — ask us.
How do I get a key?
Create an account and choose a plan in our store; your key is issued instantly and shows under My Account → API. For custom needs, contact us.

Ready to build?

Get a key and start with one curl. SDKs not required.