---
title: "Two city indexes side by side: headline numbers, grades, menus, channels, builders, vendors, assistants' direct share, month by month"
method: GET
path: "/api/compare/{a}/{b}"
---

# Two city indexes side by side: headline numbers, grades, menus, channels, builders, vendors, assistants' direct share, month by month

`GET /api/compare/{a}/{b}`

## Request

- Base URL: `https://directindex.org`
- URL: `https://directindex.org/api/compare/{a}/{b}`
- Auth: one of:
  - none
  - HTTP bearer

## Path parameters

- `a` string, required
- `b` string, required

## Response `200`

Comparison

## Other responses

- `301`: Slugs in the other order; follow to the alphabetical pair
- `404`: No such index

---

[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)
