find_gyms
Find BJJ gyms
Find Brazilian Jiu-Jitsu gyms near a place, in a country, by name or by team, with drop-in, free-trial and monthly-price filters. Nearest first when `near` is given. Thin facts (prices, drop-in, trials) come with `coverage`: a gym without one is unknown, not 'no'. For class times use find_classes; for one gym's timetable, prices and coaches use get_gym. Each answer is one page with `total` and `has_more`; pass `next_cursor` back for the next. No match is an empty list, not an error; bad arguments return an error naming the fix.
Parameters
-
nearstring - A place the user named ("Lisbon", "Austin, TX", "Kraków, Poland") or "lat,lng". A country or US state searches the whole area. Ask the user rather than guessing their location.
-
radius_kmnumber - Search radius around `near` in km. Defaults to the city's own size (10-40 km). range 1-500
-
countrystring - Limit to a country by name, e.g. "Portugal".
-
querystring - Part of the gym's name, e.g. "gracie barra".
-
teamstring - A team/affiliation name, e.g. "Checkmat".
-
drop_inboolean - Only gyms that list a drop-in price.
-
free_trialboolean - Only gyms that list a free trial.
-
max_monthly_price_usdnumber - Only gyms listing a monthly price at or under this, in USD. range at least 1
-
sortstring -
Default: distance when `near` is a city or point, else recommended.
distancenamerecommended -
limitinteger - Results per page (default 10, max 25). range 1-25 · default 10
-
cursorstring - next_cursor from the previous page; repeat the same arguments with it.
-
detailstring -
brief (default) or full: more facts per result, fewer results per page.
brieffulldefault brief
Each result carries
idnameurlupdated_atcitycountrydistance_kmteamwebsitemonthly_pricedrop_in_pricefree_trialclasses_per_week
Examples
“Which BJJ gyms in Lisbon allow drop-ins?”
find_gyms({"near":"Lisbon","drop_in":true})
“Checkmat gyms in Germany”
find_gyms({"country":"Germany","team":"Checkmat"})