# Best Cities for a Goal API

Ranks catalogue cities for one life goal: score, distance, rising and midheaven signs with their lords, and the reasons for each.

- Endpoint: `POST https://api.96astroapi.com/v1/location-astrology/rank-cities`
- Family: [Location astrology](https://96astroapi.com/apis/location-astrology.md)
- Input: Birth details
- Cost: 3 credits 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/location-astrology/rank-cities

## Options

- `career`: Career
- `marriage`: Marriage
- `wealth`: Wealth
- `spiritual`: Spiritual
- `health`: Health
- `education`: Education
- `peace`: Peace of mind
- `children`: Children
- `property`: Property
- `romance`: Romance
- `fame`: Fame
- `foreign`: Foreign settlement
- `travel`: Travel
- `politics`: Politics
- `arts`: Arts
- `business`: Business

## Example request

```bash
curl https://api.96astroapi.com/v1/location-astrology/rank-cities \
  -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,"goal":"career","region":"asia","limit":5}'
```

## 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/location-astrology/rank-cities`).
