# Astro Agents Western Positions API

> Astro Agents Western Positions API is a paid API for AI agents from astro-agent.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Calculates precise Western astrology planetary positions and aspects for a given date, time, and location using the NASA/JPL DE440 ephemeris

## Facts

- Endpoint: POST https://astro-agent.dev/v1/western/positions?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/astro-agents-western-positions-api-cef38fd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Nwr4Aae0cQkk5KTSnODxv

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-western-positions-api-cef38fd3 -d '<json body>'
```

Example prompt: Calculate the Western astrology planetary positions for someone born on October 1, 1990 at 2:30pm civil time in New York City (latitude 40.7128, longitude -74.0060), using the Placidus house system and tropical zodiac — I want to see where the Sun, Moon, Mercury, Venus, and Mars were, plus any major aspects between them.

## When to prefer this

Choose this endpoint when you need deterministic, reproducible astrological calculations backed by the authoritative NASA/JPL DE440 ephemeris rather than LLM-generated approximations. Ideal for applications requiring verifiable outputs (via SHA-256 hash), precise degree-level accuracy, support for both tropical and sidereal zodiac systems, and multiple house system options. Prefer this over AI-generated astrology responses whenever accuracy, auditability, or programmatic processing of chart data is required.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns a validation error
- Date outside the ephemeris range (1800-01-01 to 2200-01-01) returns an out-of-range error
- Missing required body fields (date/time or datetime) returns a 400 bad request
- Invalid timezone string returns a parsing error
- Ambiguous DST times may require the ambiguous_time field to be set explicitly
- Invalid ayanamsa value for sidereal zodiac returns a validation error

## How this service works

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

## Output

Returns a JSON object containing: planetary positions with exact degree/minute/second and zodiac sign, retrograde status and speed for each planet, aspect relationships between planets, house cusp positions, and a SHA-256 hash of the result for reproducibility verification. Also includes metadata confirming no LLM was used and the ephemeris version.

## 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": {
        "orbs": {
         "type": "object",
         "additionalProperties": {
          "type": "number",
          "maximum": 15,
          "minimum": 0
         }
        },
        "points": {
         "oneOf": [
          {
           "enum": [
            "all"
           ],
           "type": "string"
          },
          {
           "type": "array",
           "items": {
            "enum": [
             "sun",
             "moon",
             "mercury",
             "venus",
             "mars",
             "jupiter",
             "saturn",
             "uranus",
             "neptune",
             "pluto",
             "mean_node",
             "true_node",
             "mean_lilith"
            ],
            "type": "string"
           }
          }
         ]
        },
        "zodiac": {
         "enum": [
          "tropical",
          "sidereal"
         ],
         "type": "string",
         "default": "tropical"
        },
        "aspects": {
         "oneOf": [
          {
           "enum": [
            "all"
           ],
           "type": "string"
          },
          {
           "type": "array",
           "items": {
            "enum": [
             "conjunction",
             "opposition",
             "trine",
             "square",
             "sextile",
             "quincunx",
             "semisextile",
             "semisquare",
             "sesquiquadrate",
             "quintile",
             "biquintile"
            ],
            "type": "string"
           }
          }
         ]
        },
        "ayanamsa": {
         "enum": [
          "fagan_bradley",
          "krishnamurti",
          "lahiri",
          "raman",
          "true_chitrapaksha",
          "yukteshwar"
         ],
         "type": "string",
         "default": "lahiri"
        },
        "house_system": {
         "enum": [
          "alcabitius",
          "campanus",
          "equal",
          "koch",
          "meridian",
          "
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "engine": "astro-agents/1.0.3",
   "llm_used": false,
   "ephemeris": "NASA/JPL DE440 (1800-01-01..2200-01-01)",
   "deterministic": true,
   "result_sha256": "269109e17efc86d60897373ac8244ecff90f9c71f9dd1836d848fddba92fcae1"
  },
  "endpoint": "western/positions",
  "result_excerpt": {
   "points": [
    {
     "point": "sun",
     "position": "8°19'49\" Libra",
     "retrograde": false,
     "speed_longitude": 0.982927
    },
    {
     "point": "moon",
     "position": "11°02'54\" Gemini",
     "retrograde": false,
     "speed_longitude": 14.283559
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/astro-agents-western-positions-api-cef38fd3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from astro-agent.dev](https://www.zero.xyz/host/astro-agent.dev/llms.txt)
