Compsets¶
GET /api/v1/compsets/— list the comp sets you can see (paginated summary).GET /api/v1/compsets/<id>/— get one comp set, fully enriched.- Scope:
compsets:read
Try it out
Explore schemas and make live requests in the Swagger UI.
What is a compset?¶
A compset (Competitive Set) is a group of comparable nearby listings used to benchmark a property's pricing and performance. Beyond surfaces the competitive set for a listing — its members are comparable nearby properties drawn from the channels Beyond tracks — together with the headline KPIs (posted rate, occupancy, minimum stay) operators use to position their property in the local market.
Compset kinds¶
Every comp set carries a kind discriminator so you can tell the types apart —
some fields are only populated for some kinds:
kind |
Description |
|---|---|
connected |
Anchored to a Beyond listing (whether that listing's comp set was user-curated or system-generated). |
custom |
Built against a typed-in custom listing, with no Beyond listing. Beta. |
Beta
The custom kind is a beta feature. Its response shape and behavior may
change without notice, and it is not yet covered by backward-compatibility
guarantees.
For a custom comp set (no Beyond listing) the source.min-stay,
source.base-price, source.health-score, and source.market fields are
null, the whole performance.main-listing-metrics block is null, both
metrics origins are null, and source.currency falls back
to the user's billing currency.
List comp sets¶
GET /api/v1/compsets/
Returns a paginated list of summary entries — cheap fields only (no metric
or member enrichment) — enough to choose which comp set to fetch in detail. Each
entry has its kind, title, listing-id, total member-count, and
timestamps.
- Pagination:
page[number]andpage[size](max 100). - Filtering:
filter[owner]=<user_id>(owning user),filter[listing]=<id>(Beyond listing id),filter[kind]=custom|connected. - Sorting:
sort=created-at(default-created-at, newest first) orsort=title; prefix with-for descending.
filter[owner]
filter[owner] narrows the list to a single user. It is only meaningful for
full-access partner tokens; a user-scoped token already sees just its own
user, so the filter has no additional effect.
Response¶
{
"data": [
{
"type": "compsets",
"id": "55",
"attributes": {
"listing-id": 123,
"kind": "connected",
"title": "Sunny 2BR near the beach",
"member-count": 8,
"created-at": "2026-06-10T14:22:00Z",
"updated-at": "2026-08-01T09:00:00Z"
},
"relationships": {
"owner": {"data": {"type": "users", "id": "456"}},
"listing": {"data": {"type": "listings", "id": "123"}}
}
}
],
"meta": {
"pagination": {"page": 1, "pages": 1, "count": 1}
}
}
Compound Documents (Sideloading)¶
Include related resources in a single request using the ?include= parameter:
owner-- the user who owns the comp setlisting-- the Beyond listing the comp set is anchored to (nullforcustomcomp sets)
This avoids separate API calls to fetch the owner or listing. See the JSON:API guide for details on how compound documents work.
Get a comp set¶
GET /api/v1/compsets/<id>/
Returns one comp set by its id, with the base listing anchor (source), its
headline metrics over the next 30 and 90 days, the curated members[] enriched
with per-member attributes and metrics, and a performance comparison against
the aggregated compset benchmark — enough to render a full side-by-side
comparison in a single round trip.
Returns 404 when no comp set with that id is visible to your application.
Some parts need the comp set's account to have Beyond Pro; see Parts that need Beyond Pro.
Stricter rate limit
This is a heavy endpoint. It carries a stricter limit of 30 requests/minute, on top of the application-level limit that applies to every endpoint. Exceeding it returns 429 — cache responses and avoid tight polling loops. See Rate Limiting.
Performance comparison — start_date / end_date¶
The response includes a performance block: the listing's metrics
compared to the aggregated compset benchmark for the requested date range
(posted rate, occupancy, minimum stay, booked rate, adjusted occupancy).
Control the window with the start_date and end_date query parameters
(defaults: today → today + 90 days; end_date at most 180 days after start_date). This is the heaviest
part of the query — clients backing real-time UIs should cache results.
Choosing the dates needs Beyond Pro. Without it, performance always covers
the current calendar year, 1 January to 31 December (UTC), which is the
timeframe the Beyond app's comp set page shows such an account. That range is
longer than the 180 days a chosen range can span. A malformed date still
returns 400, a valid one is ignored.
Parts that need Beyond Pro¶
The comp set's account needs Beyond Pro (a trial or a subscription) for:
rating,reviews-count,thirty-day-availability,ninety-day-availability,thirty-day-min-stays,ninety-day-min-staysandaverage-service-fee, insource.metrics, in each member, and in each member'smetrics;- choosing the
performancedates withstart_date/end_date.
The account is the one that owns the comp set, whichever token makes the
request. For an account without Beyond Pro, those fields are absent from the
response (not null: null means the channel does not provide the value),
performance covers the current calendar year, and the document carries a
top-level meta.notice that says what was left out, the dates performance
covers, and the billing page where the account can get Beyond Pro. A response
with every part has no meta. Sparse fieldsets work the same way, and the
notice is there whichever attributes you ask for.
Selecting attributes — fields[compsets]¶
To get only some attributes, use the JSON:API
sparse fieldset
query parameter fields[compsets] with a comma-separated list of attribute
names. members and performance are only computed when you ask for them, so
leaving them out also makes the request faster. For example, to benchmark many
listings against their comp sets without the per-member details:
returns id and those five attributes only. Without the parameter, every
attribute is returned.
Metrics origin¶
The members are always measured from OTA data, sourced from public websites like Airbnb. So that the base listing compares like for like, it is measured the same way the Beyond Comp Sets page measures it:
- Matched (
matched-airbnb-idis set): measured from the matched Airbnb listing's OTA data. The origin isota. - Not matched (
matched-airbnb-idisnull), or its OTA data is unavailable, for example because the Airbnb listing was delisted: measured from the listing's own reservations. The origin isconnected.
Each block is read separately and can fall back on its own, so each reports its origin:
| Field | Covers |
|---|---|
source.metrics-origin |
source.metrics, source.health-score |
performance.main-listing-metrics-origin |
performance.main-listing-metrics |
Both are null for custom comp sets.
Whatever the origin, the base listing's settings and attributes come from
Beyond: source.base-price and source.min-stay are the values configured in
Beyond, and bedrooms, bathrooms, title, and the location fields describe
the Beyond listing.
When the origin is ota:
- OTA data sees the calendar, not the reservations, so nights the owner blocked count as occupied.
source.metrics.*-min-staysis the minimum stay observed on the Airbnb calendar, so it can differ fromsource.min-stay.- Every metric and
source.health-scoreisnullonly when Beyond has no OTA data for the Airbnb listing. A period with none observed reads0for rates, occupancy and minimum stays and100for availability, and a period with nothing booked reads0for the booked rate.performance.main-listing-metrics.average-min-stayisnullinstead of0. - Figures only cover what Beyond has observed for the Airbnb listing, so a listing tracked only recently has a thinner history.
Response¶
Abbreviated to one member; real responses carry every member and the full metric key set described under Notable Fields:
{
"data": {
"type": "compsets",
"id": "55",
"attributes": {
"listing-id": 123,
"kind": "connected",
"title": "Sunny 2BR near the beach",
"matched-airbnb-id": "987654321",
"created-at": "2026-06-10T14:22:00Z",
"updated-at": "2026-08-01T09:00:00Z",
"source": {
"bedrooms": 2,
"bathrooms": 1.5,
"latitude": 37.7749,
"longitude": -122.4194,
"address": "123 Main St",
"city": "San Francisco",
"state": "CA",
"country": "US",
"market": "San Francisco",
"currency": "USD",
"base-price": 189.0,
"health-score": 82,
"min-stay": 2,
"metrics-origin": "ota",
"metrics": {
"thirty-day-price": 210.5,
"ninety-day-price": 195.0,
"thirty-day-adr": 205.0,
"ninety-day-adr": 188.0,
"thirty-day-booked": 71.4,
"ninety-day-booked": 63.0,
"thirty-day-availability": 28.6,
"ninety-day-availability": 37.0,
"thirty-day-min-stays": 2,
"ninety-day-min-stays": 2,
"rating": 4.9,
"reviews-count": 213,
"average-service-fee": 31.2
}
},
"members": [
{
"channel": "airbnb",
"channel-listing-id": "13358898",
"title": "Bright loft downtown",
"url": "https://www.airbnb.com/rooms/13358898",
"image": "https://images.example.com/loft.jpg",
"bedrooms": 2.0,
"bathrooms": 1.0,
"room-type": "entire_home",
"latitude": 37.7712,
"longitude": -122.4103,
"distance-km": 1.2,
"rating": 4.8,
"reviews-count": 145,
"health-score": 76.0,
"metrics": {
"thirty-day-adr": 198.0,
"ninety-day-adr": 182.0,
"thirty-day-booked": 66.7,
"ninety-day-booked": 58.9,
"thirty-day-availability": 33.3,
"ninety-day-availability": 41.1,
"thirty-day-min-stays": 2,
"ninety-day-min-stays": 2,
"thirty-day-adj-occupancy": 70.0,
"ninety-day-adj-occupancy": 61.0,
"thirty-day-booked-rate": 198.0,
"ninety-day-booked-rate": 182.0,
"base-price": 175.0,
"currency": "USD",
"rating": 4.8,
"reviews-count": 145,
"average-service-fee": 28.4
}
}
],
"performance": {
"start-date": "2026-08-10",
"end-date": "2026-11-08",
"currency": "USD",
"main-listing-metrics-origin": "ota",
"main-listing-metrics": {
"average-posted-rate": 212.0,
"occupancy": 68.5,
"average-min-stay": 2.0,
"average-booked-rate": 204.0,
"adj-occupancy": 71.2
},
"aggregated-metrics": {
"average-posted-rate": 197.0,
"occupancy": 61.3,
"average-min-stay": 2.1,
"average-booked-rate": 189.0,
"adj-occupancy": 64.8,
"number-of-nearby-listings": 8
}
}
}
}
}
Response without Beyond Pro¶
Abbreviated to one member:
{
"data": {
"type": "compsets",
"id": "55",
"attributes": {
"listing-id": 123,
"kind": "connected",
"title": "Sunny 2BR near the beach",
"matched-airbnb-id": "987654321",
"created-at": "2026-06-10T14:22:00Z",
"updated-at": "2026-08-01T09:00:00Z",
"source": {
"bedrooms": 2,
"bathrooms": 1.5,
"latitude": 37.7749,
"longitude": -122.4194,
"address": "123 Main St",
"city": "San Francisco",
"state": "CA",
"country": "US",
"market": "San Francisco",
"currency": "USD",
"base-price": 189.0,
"health-score": 82,
"min-stay": 2,
"metrics-origin": "ota",
"metrics": {
"thirty-day-price": 210.5,
"ninety-day-price": 195.0,
"thirty-day-adr": 205.0,
"ninety-day-adr": 188.0,
"thirty-day-booked": 71.4,
"ninety-day-booked": 63.0
}
},
"members": [
{
"channel": "airbnb",
"channel-listing-id": "13358898",
"title": "Bright loft downtown",
"url": "https://www.airbnb.com/rooms/13358898",
"image": "https://images.example.com/loft.jpg",
"bedrooms": 2.0,
"bathrooms": 1.0,
"room-type": "entire_home",
"latitude": 37.7712,
"longitude": -122.4103,
"distance-km": 1.2,
"health-score": 76.0,
"metrics": {
"thirty-day-adr": 198.0,
"ninety-day-adr": 182.0,
"thirty-day-booked": 66.7,
"ninety-day-booked": 58.9,
"thirty-day-adj-occupancy": 70.0,
"ninety-day-adj-occupancy": 61.0,
"thirty-day-booked-rate": 198.0,
"ninety-day-booked-rate": 182.0,
"base-price": 175.0,
"currency": "USD"
}
}
],
"performance": {
"start-date": "2026-01-01",
"end-date": "2026-12-31",
"currency": "USD",
"main-listing-metrics-origin": "ota",
"main-listing-metrics": {
"average-posted-rate": 212.0,
"occupancy": 68.5,
"average-min-stay": 2.0,
"average-booked-rate": 204.0,
"adj-occupancy": 71.2
},
"aggregated-metrics": {
"average-posted-rate": 197.0,
"occupancy": 61.3,
"average-min-stay": 2.1,
"average-booked-rate": 189.0,
"adj-occupancy": 64.8,
"number-of-nearby-listings": 8
}
}
}
},
"meta": {
"notice": "This comp set's account does not have Beyond Pro. Without it, source and members leave out rating, reviews-count, thirty-day-availability, ninety-day-availability, thirty-day-min-stays, ninety-day-min-stays and average-service-fee, and performance covers the current calendar year, 2026-01-01 to 2026-12-31, whatever start_date and end_date say. Billing page: https://v2.beyondpricing.com/dashboard/user/billing"
}
}
Notable Fields¶
kind—customorconnected(see Compset kinds).listing-id— the Beyond listing the comp set is anchored to (nullforcustomcomp sets).title— the comp set's name.matched-airbnb-id— external id Beyond matched to the base listing, when available.source— the base listing's attributes (bedrooms, bathrooms, location,base-price,min-stay,health-score) and its headlinemetrics.source.metrics— base-listing KPIs over the next 30 and 90 days:thirty-day-price/ninety-day-price(posted rate),*-adr(booked rate),*-booked(occupancy),*-availability,*-min-stays, plusratingandreviews-count.*-availability,*-min-stays,rating,reviews-countandaverage-service-feeneed Beyond Pro.source.metrics-origin—otaorconnected: wheresource.metricsandsource.health-scorecame from (see Metrics origin).members[]— the curated comparables, each with attributes (channel,channel-listing-id,title,url,image,bedrooms,bathrooms,room-type,distance-km,rating,reviews-count,health-score) and ametricsblock.members[].channel-listing-id— the comparable's channel-native listing id (the id inmembers[].url), not a Beyond listing id.members[].distance-km— distance from the base listing, in kilometers.members[].metrics— per-member KPIs over the next 30 and 90 days:*-adrand*-booked-rate(rates),*-booked(occupancy),*-availability,*-adj-occupancy,*-min-stays, plusbase-price. A member'srating,reviews-count,*-availability,*-min-staysandaverage-service-feeneed Beyond Pro.performance.main-listing-metrics— the base listing over the requested range:average-posted-rate,occupancy,average-min-stay,average-booked-rate,adj-occupancy.nullforcustomcomp sets.adj-occupancycurrently equalsoccupancy, except forotafigures on accounts with inferred adjusted occupancy enabled.performance.main-listing-metrics-origin—otaorconnected: whereperformance.main-listing-metricscame from.performance.aggregated-metrics— the same figures aggregated across the comp set, plusnumber-of-nearby-listings(members contributing to the aggregate).
Metrics a channel does not provide are returned as null. Fields that need
Beyond Pro are absent, not null, for an account without it.
Use cases¶
- Browse and pick. List comp sets with
GET /compsets/, optionallyfilter[kind]orfilter[listing], then fetch the chosen one in detail. - Side-by-side comparison table. Combine
sourceandmembers[]to render a comparison grid — bedrooms, bathrooms,room-type,rating,reviews-count,distance-km,health-score, and a thumbnail (image) linking out (url) — and highlight where the base listing trails the cluster.ratingandreviews-countneed Beyond Pro. - Pricing pacing. Compare the base listing's
source.metricsthirty-day-price/ninety-day-priceagainst members'thirty-day-adr/ninety-day-adrto spot where the operator is materially above or below the local market. - Occupancy & availability benchmarking. Track
thirty-day-booked/ninety-day-booked(occupancy) and the*-availabilitymetrics acrosssourceandmembers[]to tell apart soft pricing from soft demand. The*-availabilitymetrics need Beyond Pro. - Minimum-stay strategy. Compare the base listing's
min-stayand*-min-staysagainst members to validate length-of-stay rules for the market. Needs Beyond Pro. - Reputation & review competitiveness. Compare the base listing's
ratingandreviews-count(source.metrics) against members'rating/reviews-countto spot where weak social proof — not price — is suppressing conversion, and prioritize review generation where the listing trails the cluster. Needs Beyond Pro. - Listing-quality benchmarking. Rank the base listing's
source.health-scoreagainst members'health-scoreto surface quality headroom (content, photos, listing completeness) to address before adjusting price. - Performance scorecard. Use the
performanceblock to benchmark the listing against the aggregated compset over a chosen date range (average-posted-rate,occupancy,average-booked-rate,adj-occupancy,average-min-stay) and roll the result up to a portfolio scorecard. Choosing the range needs Beyond Pro. - Seasonality & demand pacing. Sweep
start_date/end_dateacross consecutive windows (e.g. month by month) and chartperformance.aggregated-metricsover time to map the local demand curve and see where the listing's pacing diverges from the market by season. Cache results — this is the heaviest part of the query. Choosing the dates needs Beyond Pro.
Errors¶
| Status | Cause |
|---|---|
400 |
Malformed start_date/end_date, or end_date more than 180 days after start_date. |
401 |
Missing or invalid bearer token. |
403 |
Token does not have the compsets:read scope, or the credential lacks privileges on the comp set's listing. |
404 |
No comp set with that id is visible to the application. |
429 |
Rate limit exceeded — the detail endpoint is capped at 30 requests/minute. See Rate Limiting. |
503 |
compset_unavailable: the comp set's metrics could not be loaded. Retry with backoff. |