---
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
      - `url` string, nullable
      - `licence` string, nullable
      - `downloaded` string, nullable
      - `count` number, nullable
    - `attribution` object, nullable
      - `source` string, nullable
      - `sourceUrl` string, nullable
      - `licence` string, nullable
      - `licenceUrl` string, nullable
      - `notice` string, nullable

## Other responses

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

## Changes

- **2026-08-24** `8ab5a768b521` — 5 info
  - added the optional property `data/attribution/licenceUrl` to the response with the `200` status
  - added the optional property `data/attribution/notice` to the response with the `200` status
  - added the optional property `data/attribution/sourceUrl` to the response with the `200` status
  - added the optional property `data/dataset/count` to the response with the `200` status
  - …1 more

[Change history](https://skmtc.dev/astroway/apis/astroway-calculation-api/changes/acg/countries/get.md)

---

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