---
title: "A city index: stats and every business ranked"
method: GET
path: "/api/city/{slug}"
---

# A city index: stats and every business ranked

`GET /api/city/{slug}`

## Request

- Base URL: `https://directindex.org`
- URL: `https://directindex.org/api/city/{slug}`
- Auth: one of:
  - none
  - HTTP bearer

## Path parameters

- `slug` string, required

## Response `200`

City index

## Other responses

- `404`: No index for this city

---

[API](https://skmtc.dev/directindex/apis/the-direct-index-api.md) · [All operations](https://skmtc.dev/directindex/apis/the-direct-index-api/llms.txt) · [OpenAPI document](https://skmtc.dev/directindex/apis/the-direct-index-api/revisions/c3390f276403?raw)
