# KP Sub-lord and Rasi Change Times API

The times, to the second, when a planet (the Moon by default) changes sub lord, nakshatra or rasi inside a window of up to 31 days, found by bisection on the sidereal longitude in the Krishnamurti ayanamsha. Each event gives the lords before and after, the longitude and whether the planet is retrograde.

- Endpoint: `POST https://api.96astroapi.com/v1/kp/kp-sublord-changes`
- Family: [Krishnamurti Paddhati (KP)](https://96astroapi.com/apis/kp.md)
- Input: Date and place
- 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/kp/kp-sublord-changes

## Example request

```bash
curl https://api.96astroapi.com/v1/kp/kp-sublord-changes \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"planet":"Moon","start":"2026-11-20T00:00:00","end":"2026-11-22T00:00:00","timezone":"Asia/Kolkata"}'
```

## 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/kp/kp-sublord-changes`).
