---
title: "Compare"
method: GET
path: "/advisor/{instancekey}"
tags: ["Guided selling"]
---

# Compare

`GET /advisor/{instancekey}`

Service that makes it possible to filter products questioningly and then compare them with each other. The results will be sorted by the most appropriate product.

## Path parameters

- `instancekey` string, required

## Query parameters

- `code` string, required
- `answers` object
- `tn_skip_qs` number[]
- `ps` number

## Headers

- `TWN-Source` string

## Response `200`

Response containing questions and answers.

- Advisor
  - `advisorid` integer — ID of the advisor
  - `title` string — Title of the advisor
  - `code` string — Code of the advisor
  - `questions` Question[] — List of questions
    - `questionid` integer — ID of the question
    - `question` string — Text of the question
    - `ismultiselect` boolean — Indicates if multiple answers can be selected
    - `attributeid` integer — ID of the attribute
    - `imageurl` string — URL of the image
    - `explanation` string — Explanation of the question
    - `answers` Answer[] — List of answers
      - `answerid` integer — ID of the answer
      - `answer` string — Text of the answer
      - `subtext` string — Subtext of the answer
      - `summary` string — Summary of the answer
      - `imageurl` string — URL of the image
      - `isselected` boolean — Indicates if this answer is selected
      - `nextquestionid` integer, nullable — ID of the next question
    - `current` boolean — Indicates if this is the current question
    - `skippable` boolean — Indicates if this question can be skipped
    - `skiplabel` string — Label for the skip button

## Other responses

- `401` — Invalid instancekey supplied

---

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