https://www.theprivateclubs.com/clubs/{type}. The API’s type filter also groups some older types into the current ones.
Current types
wellness and dining are types of their own, and they also sit inside a group. So a wellness club appears for both type=wellness and type=athletic, and a dining club appears for both type=dining and type=city. A wine club appears for type=dining, but not for type=city.
How the API and MCP match types
The API and the MCP tools treattype differently.
- API.
typematches the groups in the table above. Send it in lower case:type=GOLFmatches nothing. A legacy value matches only the clubs stored with that exact type, sotype=country_clubreturns country clubs alone. The one exception iswine, which reads asdining:type=wineandtype=diningreturn the same clubs. - MCP. The
typeargument ofsearch_clubsandget_clubs_by_stateis an exact match on the stored type, in any case. It does not group, sogolfthere leaves out clubs stored ascountry_club. Search each type when you need both.
golf, city, yacht, athletic, beach, equestrian, ski, automotive, aviation, outdoor, business, wellness and dining. workspace and residential also work.
Legacy types
These older types now live under a current type:
A legacy browse page answers with a 308 redirect to its new page. For example,
/clubs/tennis redirects to /clubs/athletic. /clubs/country-club and /clubs/type/country_club both redirect to /clubs/golf.
In the API, wine is grouped under dining, the page its browse URL redirects to. Some clubs are still stored with a legacy type, such as country_club, so you can see one in the type field.
Browse URLs
https://www.theprivateclubs.com/clubs/{type} is the canonical browse page for each current type. Link to that form.
Next: Conventions and the club object.