---
title: "Countries available for ranking"
method: GET
path: "/acg/countries"
tags: ["Astro-Geography"]
---

# Countries available for ranking

`GET /acg/countries`

Which countries the bundled city list can rank, and how many qualifying cities each has. Asking for a country with two cities and getting two results should not look like a bug.

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `count` number, nullable
    - `totalCities` number, nullable
    - `countries` object[], nullable
      - `code` string, nullable
      - `name` string, nullable
      - `cities` number, nullable
    - `dataset` object, nullable
      - `source` string, nullable
      - `licence` string, nullable
      - `downloaded` string, nullable
    - `attribution` object, nullable
      - `source` string, nullable
      - `licence` string, nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
