Skip to content
GuidesSaved

The same answers, as JSON


Everything a cafe page on Work&Sip says about working there is also here as JSON. It is free to read and you don’t need a key. If you are building something, or you are an assistant answering a question about a cafe, this is the tidy copy.

Three addresses

  • /api/cities lists the cities that are open, with how many cafes each one has.
  • /api/cities/barcelona/cafes lists the cafes in Barcelona, thirty at a time, best for work first. Add n for one neighbourhood, as in ?n=sodermalm. Add sort=reviewed for the most reviewed first, or sort=recent for the most recently reviewed. Every answer has a next field with the address of the next thirty.
  • /api/cafes/barcelona/{cafe} is one cafe in full, with the notes people have left. The last part is the cafe’s slug, the same as the last part of its page’s address.

For assistants: MCP

Assistants that speak MCP, the Model Context Protocol, can use the same answers as three tools at https://workandsip.com/mcp: list_cities, search_cafes and get_cafe. It is read only, with no key. A search answers ten cafes at most; the city’s page has the rest.

To use it, add the address as a connector in your assistant (in Claude: Settings, Connectors, Add custom connector; in ChatGPT: Settings, Apps, Developer mode, Create) with no authentication. Then ask about cafes in a city it covers, such as “a quiet cafe with good wifi in Lisbon”. list_cities says which cities those are, search_cafes answers up to ten cafes for a city, a neighbourhood and what you need (wifi, outlets, quiet, calls and more), and get_cafe answers one cafe in full. Every cafe links its page here.

If an answer is not what you expected:

  • city_not_covered: Work&Sip has no cafes for that city yet. The answer lists the cities it does cover.
  • unknown_neighbourhood: the name did not match one of the city’s neighbourhoods or the other names they go by. The answer lists them.
  • cafe_not_found: no listed cafe has that address. Search for it by name with search_cafes and use the slug it gives.
  • rate_limited (HTTP 429): too many requests from one address in a minute. Wait a minute and ask again.
  • No opening hours, and no “open now”: Work&Sip does not hold them. Check the cafe’s page or the cafe.

What you get

  • answers holds the eight questions. For each one, yes is how many people said yes and answered is how many answered at all. A question nobody has answered is null, not zero. The questions are written out under questions.
  • laptopStatus is welcome, rules, none or unknown. laptopRules lists the house rules people report, such as no laptops at weekends or a two-hour limit, with how many people report each one.
  • netVotes is every yes less every no on the first question, whether people would recommend the cafe for working. lastReportedAt is when the newest vote came in.
  • notes, on a single cafe, are what members have written about working there, newest first, each with its date.
  • In a rule, days are numbered from Sunday as 0, and times are minutes after midnight in the city’s own time zone.

What is left out

The opening hours, website, rating and review sentences on a cafe’s page come from Google. They are not ours to pass on, so they are not in the JSON. Every cafe has a url field, and the page behind it shows them.

Using it

You can make 60 requests a minute. An answer can be up to five minutes old. If you show these answers somewhere, please link to the cafe’s page, the url field, so people can see where they came from and add their own.

If something is missing or looks wrong, write to hello@workandsip.com.

Sign in to vote

Browsing is always free and open. You only need an account to vote.