Go client for the CoworkingView catalogue API (mirror of github.com/coworkingview/coworkingview-go) (https://coworkingview.com)
root
- testdata
- CHANGELOG.md
- LICENSE
- README.md
- client.go
- client_test.go
- doc.go
- example_test.go
- market.go
- places.go
- properties.go
- types.go
<p align="center"> <img src="https://coworkingview.com/brand/coworkingview-wordmark.svg" alt="CoworkingView" width="320"> </p>
coworkingview-go
The Go client for the CoworkingView catalogue API: coworking spaces, private offices, flexible desks and meeting rooms, with published prices and market rates by city.
Reads need no API key and no sign-up. The client calls the public API at https://api.coworkingview.com/v1, which is rate-limited. No dependencies beyond the standard library.
go get github.com/coworkingview/coworkingview-go
client := coworkingview.NewClient()
res, err := client.ListProperties(ctx, &coworkingview.ListPropertiesParams{
City: "berlin",
PricingOptionType: coworkingview.PrivateOffice,
PageSize: 5,
})
if err != nil {
log.Fatal(err)
}
for _, p := range res.Data {
fmt.Println(p.Title, p.FromPrice)
}
What you can read
| Method | Returns |
|---|---|
ListProperties, AllProperties |
Spaces matching a city, district, brand, workspace type, amenities, capacity, price or distance |
GetProperty |
One space: address, description, amenities and every pricing option |
Facets |
The filters available in a city, with counts |
Bootstrap |
Every country, city and district, with how many spaces each has |
Suggest |
Autocomplete over places, brands and spaces |
GetPlace, GetOperator |
Profiles of a city or district, and of a brand such as WeWork or Regus |
MarketRates |
Median prices per city and workspace type, the data behind the Coworking Price Index |
AllProperties is an iterator (Go 1.23+) that pages for you:
for p, err := range client.AllProperties(ctx, &coworkingview.ListPropertiesParams{City: "madrid"}) {
if err != nil {
return err
}
fmt.Println(p.Title)
}
Errors from the API are *coworkingview.APIError (RFC 9457 problem details). coworkingview.IsNotFound(err) is true for an unknown slug and for a space that has closed.
Reading the numbers
- Market rates are medians over the priced spaces in a city. Check
SampleSizebefore calling a figure "the market rate". - Prices are what operators publish.
Property.WebURLlinks to the space's page on coworkingview.com with the current offer. - The market figures are published under CC BY 4.0: credit CoworkingView and link to the source (
Response.Meta.Citationhas the text).
Options
coworkingview.NewClient(
coworkingview.WithLocale(coworkingview.Spanish), // en (default), de, es
coworkingview.WithUserAgent("acme-office-finder/2.1"), // identify your integration
coworkingview.WithHTTPClient(myHTTPClient), // default: 15 s timeout
coworkingview.WithBaseURL("http://localhost:3000"),
)
More ways in
- Browse the catalogue: coworking in Berlin, Madrid, Barcelona, London
- MCP server for AI assistants, CLI and API docs: coworkingview.com/en/mcp
- OpenAPI 3.1: coworkingview.com/openapi.json
- Node-RED: node-red-contrib-coworkingview
License
MIT © CoworkingView