---
title: "Returns the number of times each asset index won across the workflow's rapids."
method: GET
path: "/workflow/{workflowId}/compare-ab-summary"
tags: ["Workflow"]
---

# Returns the number of times each asset index won across the workflow's rapids.

`GET /workflow/{workflowId}/compare-ab-summary`

The entries of winCounter are ordered by compared side: the first is the first
 compared side, the second is the second, and so on. That order is the order of the
 workflow's compare blueprint, which is also the order the sides' assets appear in on every
 rapid returned by /workflow/simple/{workflowId}/results — so rendering the entries
 as they arrive lines up with the individual rapids. Sides that have not won a rapid yet
 are present with a count of 0.

## Path parameters

- `workflowId` string, required

## Query parameters

- `useUserScore` boolean

## Response `200`

OK

- GetCompareAbSummaryEndpointOutput
  - `winCounter` object, required — The number of times each side was the winner, keyed by the side's name and ordered by compared side rather than by wins.
  - `allTargetGroupsCompleted` boolean, required — Whether all target groups for this workflow are completed.

## Other responses

- `400` — Bad Request
- `401` — Unauthenticated
- `403` — Forbidden

---

[API](https://skmtc.net/rapidata/apis/rapidata-api.md) · [All operations](https://skmtc.net/rapidata/apis/rapidata-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rapidata/rapidata-api/revisions/fdb89a6eb2fb/schema)
