0

How to pull coworking desk prices from the CoworkingView Price Index

If you compare flexible offices in a city, the first number many listing APIs give you is a "from" price. That value is usually the cheapest option a space has published. It might be a day pass or an hourly meeting room rather than a monthly desk, so averaging those figures does not tell you what a flex desk or a private office typically costs.

CoworkingView already publishes that aggregation as a Price Index. The figures are medians of operator-published prices, grouped by city and product type: flex desk, fixed desk (a dedicated desk) and private office, plus day passes and meeting rooms. Monthly products are normalised to a price per desk per month; day passes are per day and meeting rooms per hour. The index is licensed under CC BY 4.0. Reads do not need an API key. You can load the table through the HTTP API described on the API documentation, or through the coworkingview Python package.

What the index reports

Each published city and product gets a median, and often a 25th and 75th percentile, together with the sample size behind the figure. A low_confidence flag is set when that sample is under 10 observations; treat those rows as indicative only. Cities that have not reached the publication threshold appear in the city list with published = false and no price rows. Every row carries an as_of timestamp for when the index was last computed. The API recalculates the medians as listings change, so copy the attribution line next to any table you republish.

The October 2026 snapshot shipped with the Python client showed these monthly desk figures for Berlin:

Product Unit Median p25 p75 Sample size
Flex desk month €214 €199 €292 72
Fixed desk month €310 €290 €421 60
Private office month €480 €399 €550 59

The same snapshot had a day-pass median of €35 (59 prices) and a meeting-room median of €32 per hour (79 prices). The city list recorded 85 spaces in Berlin, with a median entry price of €265. That entry figure is the cheapest monthly option at each space, so it mixes product types and is not a desk-type median. The Berlin table is also on the Berlin Price Index page. These numbers move; always read as_of before you quote them.

Fetching the table in Python

Install the client and ask for one city:

import coworkingview as cwv

berlin = cwv.rates(city="berlin")
cols = ["product", "unit", "median", "p25", "p75", "sample_size", "low_confidence"]
print(berlin[cols])
print(berlin.attrs["attribution"])

pip install coworkingview is enough (Python 3.9 or newer). The only runtime dependency is pandas, and the result is a DataFrame. cwv.cities() returns one row per city, including coverage and that entry-price median. cwv.spaces(city="berlin", product="flex_desk", limit=20) searches the catalogue; cwv.space(slug) loads every published pricing option for one space. Catalogue search is capped at 200 results per call on purpose: the package is for lookup, not for copying the catalogue.

If you would rather call HTTP yourself, the same index is GET /v1/market/rates on https://api.coworkingview.com. Monthly desk types live in the figures array of a city object; day passes and meeting rooms are separate top-level keys on that object (dayPass, meetingRoom):

import requests

response = requests.get(
    "https://api.coworkingview.com/v1/market/rates",
    params={"locale": "en", "city": "berlin"},
    headers={"Accept": "application/json"},
    timeout=30,
)
response.raise_for_status()
city = response.json()["data"]["cities"][0]

for row in city["figures"]:
    print(row["optionType"], row["median"]["amount"])

The HTTP contract is published as OpenAPI from the API documentation. Reads are rate-limited: the Python client documents 120 requests per minute per IP, and responses are cacheable for ten minutes. If you page through listings, leave a short pause between detail requests.

Why listing "from" prices are the wrong input

The catalogue endpoint, GET /v1/properties, returns paginated listing cards. Each card has a fromPrice and a fromBillingPeriod. That "from" value is the cheapest published option at the space, not a comparable monthly desk price. The individual options sit on the detail record, GET /v1/properties/{slug}, in the pricingOptions array. Each option has an optionType (flex_desk, fix_desk, private_office, day_pass, and others), a billingPeriod (month, day, hour, once) and a price. Some options are marked priceOnRequest. Detail records also include priceVerifiedAt.

If you only need a city median, stop at the Price Index rather than averaging listings yourself. If you need a specific building's flex-desk membership, request that slug and read the matching option.

Attribution, and a note on assistants

Price Index figures may be shared and adapted, including commercially, if you credit the CoworkingView Price Index and link back to it. The Python client puts the exact credit line in df.attrs["attribution"]. Individual listing names and prices belong to the operators: you may search and link to a listing, but descriptions, photos and logos are not returned and are not licensed for reuse.

There is also a read-only MCP server at https://mcp.coworkingview.com/mcp if you want an assistant to query the same catalogue and market rates as tools, for example get_coworking_market_rates. No key is required. That path is optional; for a script, the Python client or the HTTP API is the direct route.


All rights reserved

Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí