---
title: "Compare two style profiles"
method: GET
path: "/api/v1/styles/compare"
tags: ["Composition"]
---

# Compare two style profiles

`GET /api/v1/styles/compare`

Compares language and engagement signals across two style profiles.

## Query parameters

- `username1` string, required
- `username2` string, required

## Response `200`

Style comparison

- object
  - `style1` StyleProfile, required — Style profile summary with tweet count and ownership flag.
    - `xUsername` string, required
    - `tweetCount` integer, required
    - `isOwnAccount` boolean, required
    - `fetchedAt` string, date-time, required
    - `tweets` object[], required
      - `id` string, required
      - `text` string, required
      - `createdAt` string
      - `authorUsername` string
  - `style2` StyleProfile, required — Style profile summary with tweet count and ownership flag.
    - `xUsername` string, required
    - `tweetCount` integer, required
    - `isOwnAccount` boolean, required
    - `fetchedAt` string, date-time, required
    - `tweets` object[], required
      - `id` string, required
      - `text` string, required
      - `createdAt` string
      - `authorUsername` string

## Other responses

- `400` — Invalid input
- `401` — Unauthenticated
- `404` — Not found
- `429` — Xquik tier rate limit exceeded. The response includes a `Retry-After` header with the number of seconds to wait before retrying.
- `default` — Unexpected error.

## Changes

- **2026-08-21** `18302a60cfee` — 12 breaking, 2 info
  - the `style1` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - the `style2` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `style1/fetchedAt` from the response with the `200` status
  - removed the required property `style1/isOwnAccount` from the response with the `200` status
  - …10 more
- **2026-08-12** `5d4938bb7de3` — 90 warning
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `429`
  - added the new `closed` enum value to the `allOf[#/components/schemas/Error]/error/oneOf[subschema #2: StructuredError]/code` response property for the response status `429`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `400`
  - added the new `closed` enum value to the `error/oneOf[subschema #1: LegacyErrorCode]/` response property for the response status `401`
  - …86 more
- …earlier changes not shown

[Full history](https://skmtc.dev/xquik-dev/apis/xquik-api-2/changes/api/v1/styles/compare/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api-2.md) · [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xquik-dev/xquik-api-2/revisions/73f46a2af801/schema)
