{"openapi":"3.1.0","info":{"title":"The Globe Map API for assistants","version":"1.0.0","description":"Search real spots in supported cities and create a day-by-day itinerary that opens as a visual page on The Globe Map. No account or API key needed."},"servers":[{"url":"https://www.theglobemap.com"}],"paths":{"/api/ai/spots":{"get":{"operationId":"searchSpots","summary":"Search spots in a city","description":"Real places in one supported city, most reviewed first. Use the ids with createItinerary.","parameters":[{"name":"city","in":"query","required":true,"schema":{"type":"string"},"description":"One of: Paris, London, Barcelona, Berlin, Rome, Amsterdam, Athens, Brussels, Budapest, Copenhagen, Dublin, Edinburgh, Florence, Istanbul, Krakow, Lisbon, Madrid, Milan, Munich, Nice, Porto, Prague, Seville, Venice, Vienna."},{"name":"query","in":"query","schema":{"type":"string"},"description":"Text to look for in the spot name or neighbourhood."},{"name":"category","in":"query","schema":{"type":"string","enum":["landmarks","museums","restaurants","bars-drinks","breakfast","cafes","nightlife","parks-nature","walking-tours","shopping","shows","tours-experiences","sports"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":25,"default":12}}],"responses":{"200":{"description":"List of spots","content":{"application/json":{"schema":{"type":"object","properties":{"spots":{"type":"array","items":{"type":"object"}}}}}}}}}},"/api/ai/itineraries":{"post":{"operationId":"createItinerary","summary":"Create a day-by-day itinerary","description":"Returns a link to a visual itinerary page (map, photos, hours, walking times). Give only city and days, or spot_ids_by_day from searchSpots. Always share the returned url with the user.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["city"],"properties":{"city":{"type":"string","description":"One of: Paris, London, Barcelona, Berlin, Rome, Amsterdam, Athens, Brussels, Budapest, Copenhagen, Dublin, Edinburgh, Florence, Istanbul, Krakow, Lisbon, Madrid, Milan, Munich, Nice, Porto, Prague, Seville, Venice, Vienna."},"days":{"type":"integer","minimum":1,"maximum":7,"description":"Ignored when spot_ids_by_day is given."},"travel_style":{"type":"string","enum":["culture_explorer","gourmet_explorer","social_spark","landmark_hunter","unhurried_traveller","offbeat_adventurer","local_soul","elegant_eye","first_class_explorer","smart_adventurer","city_conqueror","boutique_hunter","memory_maker","influencer","active_explorer","moment_seeker"]},"spot_ids_by_day":{"type":"array","items":{"type":"array","items":{"type":"string"}},"description":"One list of spot ids per day (max 8), in visiting order."}}}}}},"responses":{"201":{"description":"Itinerary created","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"name":{"type":"string"},"days":{"type":"array","items":{"type":"object"}}}}}}}}}}}}