# Astro Agents Vedic Nakshatra API

> Astro Agents Vedic Nakshatra API is a paid API for AI agents from astro-agents-api.vercel.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Calculates Vedic nakshatra (lunar mansion) for a given birth date, time, and location using the NASA/JPL DE440 ephemeris with no LLM involvement

## Facts

- Endpoint: POST https://astro-agents-api.vercel.app/v1/vedic/nakshatra?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/astro-agents-vedic-nakshatra-api-823e753c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_p28yGhT3dKOfk_fvdi7gz

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability astro-agents-vedic-nakshatra-api-823e753c -d '<json body>'
```

Example prompt: What's my Vedic janma nakshatra? I was born on March 15, 1990 at 7:30 AM in Mumbai (latitude 19.076, longitude 72.877, timezone Asia/Kolkata). Use the Lahiri ayanamsa.

## When to prefer this

Choose this endpoint when you need a reproducible, auditable Vedic nakshatra result backed by the NASA/JPL DE440 ephemeris rather than an LLM-generated or approximate answer. It is ideal for Jyotish astrology apps, birth chart generators, compatibility calculators, or any context where deterministic output with a verifiable SHA-256 hash matters. Prefer it over generic astrology LLM wrappers when accuracy, reproducibility, and support for multiple ayanamsa systems (Lahiri, Krishnamurti, Raman, etc.) are required.

## Known failure modes

- Missing required date/time or coordinates returns a validation error
- Timezone string not recognized causes a 400 error
- Date outside ephemeris range (before 1800 or after 2200) returns an out-of-range error
- Ambiguous local time near DST transition may need ambiguous_time parameter set to 'earlier' or 'later'
- Invalid ayanamsa enum value returns a schema validation error

## How this service works

Deterministic Western + Vedic astrology API for AI agents: JPL DE440 ephemeris, no LLM, reproducible SHA-256 hashes.

## Output

A JSON object containing the janma nakshatra name, pada (quarter), nakshatra lord, and attributes (gana, nadi, yoni), plus metadata confirming the ephemeris version, that no LLM was used, and a SHA-256 hash for result verification.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {
      "date": {
       "type": "string"
      },
      "time": {
       "type": "string"
      },
      "options": {
       "type": "object",
       "properties": {
        "ayanamsa": {
         "enum": [
          "fagan_bradley",
          "krishnamurti",
          "lahiri",
          "raman",
          "true_chitrapaksha",
          "yukteshwar"
         ],
         "type": "string",
         "default": "lahiri"
        },
        "node_type": {
         "enum": [
          "mean",
          "true"
         ],
         "type": "string",
         "default": "mean"
        },
        "house_system": {
         "enum": [
          "whole_sign",
          "equal",
          "placidus",
          "porphyry",
          "koch"
         ],
         "type": "string",
         "default": "whole_sign"
        },
        "include_outer_planets": {
         "type": "boolean",
         "default": false
        }
       }
      },
      "datetime": {
       "type": "string"
      },
      "latitude": {
       "type": "number",
       "maximum": 90,
       "minimum": -90
      },
      "timezone": {
       "type": "string"
      },
      "longitude": {
       "type": "number",
       "maximum": 180,
       "minimum": -180
      },
      "time_basis": {
       "enum": [
        "civil",
        "utc",
        "lmt",
        "true_solar"
       ],
       "type": "string",
       "default": "civil"
      },
      "ambiguous_time": {
       "enum": [
        "earlier",
        "later"
       ],
       "type": "string",
       "default": "earlier"
      },
      "longitude_sidereal": {
       "type": "number"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "engine": "astro-agents/1.0.0",
   "llm_used": false,
   "ephemeris": "NASA/JPL DE440 (1800-01-01..2200-01-01)",
   "deterministic": true,
   "result_sha256": "b06f53384a24ffa061b80b7fce083ee7f8e1a1d07d22e7f6342ea60a06a48767"
  },
  "endpoint": "vedic/nakshatra",
  "result_excerpt": {
   "attributes": {
    "gana": "Manushya",
    "lord": "Sun",
    "nadi": "Antya",
    "yoni": "Mongoose"
   },
   "janma_nakshatra": {
    "pada": 2,
    "nakshatra": "Uttara Ashadha",
    "nakshatra_lord": "Sun"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/astro-agents-vedic-nakshatra-api-823e753c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from astro-agents-api.vercel.app](https://www.zero.xyz/host/astro-agents-api.vercel.app/llms.txt)
