# Midpoints and Midpoint Tree API

Every midpoint of the chart's planets, North Node and angles on the shorter arc, and, for a planet you choose, the midpoint tree: the midpoints it sits on within an orb (1.5 degrees by default) on the 90-degree dial, by conjunction, semi-square, square, sesquiquadrate or opposition. Basis: modern cosmobiology (Ebertin); the orb is a convention.

- Endpoint: `POST https://api.96astroapi.com/v1/western/midpoints`
- Family: [Western astrology](https://96astroapi.com/apis/western.md)
- Input: Birth details
- Cost: 1 credit per successful call (sandbox keys are free)
- Status: available
- Delivery: Direct response
- Output languages: en, hi, mr, bn, gu, ta, te, ml, kn, pa, ur, ne, or, as, si, fr, es, pt, de, it, nl, pl, tr, ru, ko, ja
- Web page: https://96astroapi.com/apis/western/midpoints

## Example request

```bash
curl https://api.96astroapi.com/v1/western/midpoints \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"datetime":"1990-10-18T14:30:00","timezone":"Asia/Kolkata","latitude":28.6139,"longitude":77.209,"focus":"Sun"}'
```

## Response

Every response is `{ "data": …, "meta": { "request_id", "credits_used", "warnings", "language" } }`.
The full request and response schema, with a captured example, is in the OpenAPI document: https://api.96astroapi.com/v1/openapi.json (path `/v1/western/midpoints`).
