{"openapi":"3.1.0","info":{"title":"Foursquare (BYOK) API","version":"0.1.0","description":"Foursquare (BYOK) lets an AI assistant read your own Foursquare data through the Foursquare API with a key you supply (Foursquare service API key). Read-only: 5 tools (search_places, get_place, list_place_tips, list_place_photos, autocomplete_places). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-foursquare.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-foursquare/docs"},"termsOfService":"https://connectorbay.com/byok-foursquare/terms"},"servers":[{"url":"https://byok-foursquare.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-foursquare/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/search_places":{"post":{"operationId":"search_places","summary":"Search Foursquare places by text, category, price and opening time around a point (ll and radius), a named locality (nea","description":"Search Foursquare places by text, category, price and opening time around a point (ll and radius), a named locality (near) or a bounding box; returns up to 50 places with address, categories, rating, price, phone, website and distance. Uses API credits of your account. Use for \"Find cheap vegetarian restaurants near downtown Chicago that are open now\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"What to look for: a name, category, phone or taste such as 'coffee'.","title":"Query"},"ll":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Center as 'latitude,longitude', for example '41.8781,-87.6298'.","title":"Ll"},"radius":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Radius in meters around ll (up to 100000; default 22000).","title":"Radius"},"near":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"A geocodable locality such as 'Chicago, IL' (use instead of ll).","title":"Near"},"fsq_category_ids":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated Foursquare category ids.","title":"Fsq Category Ids"},"min_price":{"anyOf":[{"maximum":4,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Lowest price level, 1 (cheapest) to 4.","title":"Min Price"},"max_price":{"anyOf":[{"maximum":4,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Highest price level, 1 to 4.","title":"Max Price"},"open_now":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to return only places open now.","title":"Open Now"},"sort":{"anyOf":[{"enum":["RELEVANCE","RATING","DISTANCE","POPULARITY"],"type":"string"},{"type":"null"}],"default":null,"description":"RELEVANCE, RATING, DISTANCE or POPULARITY.","title":"Sort"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many items to return (1 to 50, default 10).","title":"Limit"}},"title":"search_placesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_place":{"post":{"operationId":"get_place","summary":"Get one place by Foursquare id: name, address, coordinates, categories, hours, rating, price, contact details, attribute","description":"Get one place by Foursquare id: name, address, coordinates, categories, hours, rating, price, contact details, attributes, statistics and description. Uses API credits of your account. Use for \"Give me details about Foursquare place 4b0abc\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"fsq_place_id":{"description":"Foursquare place id (fsq_place_id), for example from search_places.","maxLength":40,"title":"Fsq Place Id","type":"string"}},"required":["fsq_place_id"],"title":"get_placeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_place_tips":{"post":{"operationId":"list_place_tips","summary":"List user tips for a place (text, language, date, agree and disagree counts), most popular or newest first. Use for \"Wha","description":"List user tips for a place (text, language, date, agree and disagree counts), most popular or newest first. Use for \"What tips do people leave for Foursquare place 4b0abc\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"fsq_place_id":{"description":"Foursquare place id (fsq_place_id), for example from search_places.","maxLength":40,"title":"Fsq Place Id","type":"string"},"sort":{"anyOf":[{"enum":["POPULAR","NEWEST"],"type":"string"},{"type":"null"}],"default":"POPULAR","description":"POPULAR (default) or NEWEST.","title":"Sort"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many items to return (1 to 50, default 10).","title":"Limit"},"fields":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":"fsq_tip_id,created_at,text,lang,agree_count,disagree_count","description":"Comma-separated tip fields: fsq_tip_id, created_at, text, lang, url, agree_count, disagree_count.","title":"Fields"}},"required":["fsq_place_id"],"title":"list_place_tipsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/list_place_photos":{"post":{"operationId":"list_place_photos","summary":"List photos of a place with size, date and type labels; build an image URL from prefix, a size and suffix (see Foursquar","description":"List photos of a place with size, date and type labels; build an image URL from prefix, a size and suffix (see Foursquare's photo URL guide). Use for \"Show menu photos for Foursquare place 4b0abc\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"fsq_place_id":{"description":"Foursquare place id (fsq_place_id), for example from search_places.","maxLength":40,"title":"Fsq Place Id","type":"string"},"sort":{"anyOf":[{"enum":["POPULAR","NEWEST"],"type":"string"},{"type":"null"}],"default":"POPULAR","description":"POPULAR (default) or NEWEST.","title":"Sort"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many items to return (1 to 50, default 10).","title":"Limit"},"classifications":{"anyOf":[{"maxLength":100,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated photo types: food_or_drink, menu, outdoor, product.","title":"Classifications"}},"required":["fsq_place_id"],"title":"list_place_photosArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/autocomplete_places":{"post":{"operationId":"autocomplete_places","summary":"Suggest places, searches and geographic areas from at least 3 typed characters, optionally biased to a point; returns up","description":"Suggest places, searches and geographic areas from at least 3 typed characters, optionally biased to a point; returns up to 50 suggestions. Use for \"Suggest Foursquare places starting with 'blue bott'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"query":{"description":"Text typed so far (at least 3 characters).","maxLength":100,"title":"Query","type":"string"},"ll":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Bias point as 'latitude,longitude'.","title":"Ll"},"radius":{"anyOf":[{"maximum":100000,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Bias radius in meters (default 5000).","title":"Radius"},"types":{"anyOf":[{"maxLength":30,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated result types: place, search, geo.","title":"Types"},"limit":{"anyOf":[{"maximum":50,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"How many items to return (1 to 50, default 10).","title":"Limit"}},"required":["query"],"title":"autocomplete_placesArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}