---
title: "Two articles side by side"
method: GET
path: "/compare"
---

# Two articles side by side

`GET /compare`

## Request

- Base URL: `https://www.edgechat.ai/api/v1`
- URL: `https://www.edgechat.ai/api/v1/compare`
- Auth: none declared

Leads, topic paths, shared topic, the chain between them, shared and distinct links, Key facts tables.

## Query parameters

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

## Response `200`

OK

- GetCompareResponse: Shape read from a live answer of 2026-10-07; fields may be added, never renamed or removed. Every field is optional: an answer carries the fields of its own branch.
  - `a` object
    - `id` string
    - `slug` string
    - `title` string
    - `excerpt` string
    - `topic_path` object[]
      - `id` string
      - `label` string
    - `facts` unknown[]
      - unknown
    - `url` string
  - `b` object
    - `id` string
    - `slug` string
    - `title` string
    - `excerpt` string
    - `topic_path` object[]
      - `id` string
      - `label` string
    - `facts` unknown[]
      - unknown
    - `url` string
  - `common_topic` object
    - `id` string
    - `label` string
  - `path` object
    - `found` boolean
    - `reason` string
  - `links` object
    - `shared` object[]
      - `id` string
      - `slug` string
      - `title` string
      - `url` string
    - `only_a` object[]
      - `id` string
      - `slug` string
      - `title` string
      - `url` string
    - `only_b` object[]
      - `id` string
      - `slug` string
      - `title` string
      - `url` string
  - `license` object
    - `name` string
    - `url` string
    - `summary` string

## Other responses

- `400`: An error: { error: { code, message } }
- `404`: An error: { error: { code, message } }
- `503`: An error: { error: { code, message } }

---

[API](https://skmtc.dev/edgechat/apis/edgepedia-api.md) · [All operations](https://skmtc.dev/edgechat/apis/edgepedia-api/llms.txt) · [OpenAPI document](https://skmtc.dev/edgechat/apis/edgepedia-api/revisions/cd4eb5972d56?raw)
