# Fetch Comp Set candidate details for a specific listing

`GET /candidates/listing/{listing_id}`

> Wheelhouse Comp Set API. Web version: https://docs.usewheelhouse.com/comp-set/reference/get-comp-set-candidate-by-id · OpenAPI spec: https://docs.usewheelhouse.com/comp-set/openapi.yaml · Operation ID: `getCompSetCandidateById` · Tag: Listing Discovery · Index of all docs pages: https://docs.usewheelhouse.com/llms.txt

Given a listing id in the path, retrieve the listing details.

The listing must be a comparable Wheelhouse tracks on a booking channel, or a
listing you own or manage. Any other listing returns a 404.

## Request

`GET https://api.usewheelhouse.com/ss_api/v1/comp_set/candidates/listing/{listing_id}`

Authentication: send your Comp Set API key in the `X-Integration-Api-Key` header and your user API key in the `X-User-API-Key` header (see https://docs.usewheelhouse.com/comp-set/authentication.md).

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `listing_id` | integer | yes | Wheelhouse listing id. |

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `include_photo_urls` | boolean | no | When `true`, the returned listing includes a `photo_urls` array with every known photo URL. Defaults to `false`. |
| `include_host_ids` | boolean | no | When `true`, the returned listing includes a `host_id` field with the id assigned by the source channel to the listing's host (null when unknown). Defaults to `false`. |

### Example request

```bash
curl -X GET 'https://api.usewheelhouse.com/ss_api/v1/comp_set/candidates/listing/{listing_id}' \
  -H 'X-Integration-Api-Key: <your Comp Set API key>' \
  -H 'X-User-API-Key: <your user API key>'
```

Only required parameters and body fields are filled in, with placeholder values. Add the optional ones you need from the lists above; some are required in combination, as their descriptions say.

## Responses

### 200

Successfully retrieved comp set listing details.

Body (`application/json`): object `Listing`

- `listing_id` (integer): Unique identifier for the listing.
- `distance_meters` (integer): Distance in meters from the search location.
- `updated_at` (string (date-time)): Last time the listing data was updated.
- `amenities` (array of string): List of amenities available at the listing.
- `anr_365_0` (number, nullable): Average nightly rate for the last 365 days. Null if not applicable.
- `apr_365_0` (number, nullable): Average price per night for the last 365 days. Null if not applicable.
- `available_nights_365_0` (integer): Number of available nights in the last 365 days.
- `bathrooms` (number): Number of bathrooms, can be a decimal for half baths.
- `bedrooms` (integer): Number of bedrooms.
- `beds` (integer): Number of beds.
- `blocked_nights_365_0` (integer): Number of blocked nights in the last 365 days.
- `bookable_nights_365_0` (integer): Number of bookable nights in the last 365 days.
- `booked_nights_365_0` (integer): Number of booked nights in the last 365 days.
- `cleaning_fee` (number): Cleaning fee in the specified currency.
- `currency` (string): Currency code for the listing's prices.
- `guests_included` (integer): Number of guests included in the base price.
- `lat` (number (float)): Latitude of the listing location.
- `long` (number (float)): Longitude of the listing location.
- `lead_time_365_0` (number, nullable): Lead time for booking for the last 365 days. Null if not applicable.
- `listing_created_at` (string (date-time)): The date and time when the listing was created.
- `listing_last_updated` (string (date-time)): The last time the listing was updated.
- `los_365_0` (number, nullable): Average length of stay for the last 365 days. Null if not applicable.
- `market_id` (integer): Identifier for the market where the listing is located.
- `nrevenue_365_0` (number, nullable): Net revenue for the last 365 days. Null if not applicable.
- `nrevpar_365_0` (number, nullable): Net revenue per available room for the last 365 days. Null if not applicable.
- `nrevpar_open_365_0` (number, nullable): Net revenue per available room for open nights in the last 365 days. Null if not applicable.
- `occupancy_365_0` (number, nullable): Occupancy rate for the last 365 days. Null if not applicable.
- `open_occupancy_365_0` (number, nullable): Occupancy rate for open nights in the last 365 days. Null if not applicable.
- `openness_365_0` (number, nullable): Openness rate for the last 365 days. Null if not applicable.
- `openness_90_0` (number, nullable): Openness rate for the last 90 days. Null if not applicable.
- `property_type` (string): Type of property (e.g., house, apartment).
- `review_count` (number, nullable): Number of reviews for the listing. Null if no reviews.
- `room_type` (string): Type of room (e.g., house, private room).
- `sleeps` (integer): Maximum number of people the listing can accommodate.
- `star_rating` (number, nullable): Star rating of the listing. Null if not rated.
- `thumb_url` (string, nullable): URL for the thumbnail image of the listing.
- `title` (string): Title of the listing.
- `url` (string): URL to view the listing.
- `owner_name` (string): Name of the listing owner.
- `photo_urls` (array of string): Full list of photo URLs for the listing. Only returned when the request sets `include_photo_urls=true`.
- `host_id` (string, nullable): Id assigned by the source channel to the listing's host. Only returned when the request sets `include_host_ids=true`; null when unknown.
- `source` (string): Short id of the channel the listing comes from, such as `A` (Airbnb), `V` (Vrbo), or `B` (Booking.com). `GET /candidates` returns only these three; the lookups by listing id can return other channels.
- `status` (string): Status of the listing (e.g., active, hidden, review, removed).

Example shape (generated from the schema; placeholder values, not a real response):

```json
{
  "listing_id": 0,
  "distance_meters": 0,
  "updated_at": "2026-01-01T00:00:00Z",
  "amenities": [
    "string"
  ],
  "anr_365_0": 0,
  "apr_365_0": 0,
  "available_nights_365_0": 0,
  "bathrooms": 0,
  "bedrooms": 0,
  "beds": 0,
  "blocked_nights_365_0": 0,
  "bookable_nights_365_0": 0,
  "booked_nights_365_0": 0,
  "cleaning_fee": 0,
  "currency": "string",
  "guests_included": 0,
  "lat": 0,
  "long": 0,
  "lead_time_365_0": 0,
  "listing_created_at": "2026-01-01T00:00:00Z",
  "listing_last_updated": "2026-01-01T00:00:00Z",
  "los_365_0": 0,
  "market_id": 0,
  "nrevenue_365_0": 0,
  "nrevpar_365_0": 0,
  "nrevpar_open_365_0": 0,
  "occupancy_365_0": 0,
  "open_occupancy_365_0": 0,
  "openness_365_0": 0,
  "openness_90_0": 0,
  "property_type": "string",
  "review_count": 0,
  "room_type": "string",
  "sleeps": 0,
  "star_rating": 0,
  "thumb_url": "string",
  "title": "string",
  "url": "string",
  "owner_name": "string",
  "photo_urls": [
    "string"
  ],
  "host_id": "string",
  "source": "string",
  "status": "string"
}
```

### 400

Validation failed

### 401

API key authorization failed

### 403

Listing authorization failed

### 404

Listing not found, or not a comparable or a listing you own or manage
