{"openapi":"3.1.0","info":{"title":"GoThere read API","version":"1.0.0","summary":"Routes, places, sights and events for travelers in Japan (read-only).","description":"Public, read-only JSON API of GoThere, a route and sightseeing guide for travelers in Japan. No key is needed. Only GET is supported, and it can be called from any origin (CORS).\n\nTravel times, fares and crowd levels are estimates computed from typical travel times and service intervals. They are not timetables. Tell the user to confirm exact departure times and fares on each operator's official site.\n\nEverything here is read-only. Posting tips, saving favorites and check-ins are done by people on the site and are not available through this API.\n\nEach response includes page: the URL of the matching page on the site. Give that link to the user.\n\nLanguages (lang): ja, en, zh-hans, zh-hant, ko."},"servers":[{"url":"https://gothere.online"}],"externalDocs":{"description":"Guide for AI assistants","url":"https://gothere.online/llms.txt"},"paths":{"/api/v1/places":{"get":{"operationId":"search_places","summary":"Search places by name","description":"Find stations, airports, bus terminals, ports, sightseeing spots and sights in Japan by name (Japanese, English, Chinese or Korean; partial match). Returns place IDs to use with get_place and find_routes, coordinates, and the URL of each place's page.\n\nExample: https://gothere.online/api/v1/places?q=%E6%B5%85%E8%8D%89&lang=ja","parameters":[{"name":"q","in":"query","required":true,"description":"Name or part of a name, up to 60 characters.","schema":{"type":"string"},"example":"浅草"},{"name":"limit","in":"query","required":false,"description":"Maximum number of results.","schema":{"type":"integer","minimum":1,"maximum":20,"default":8}},{"name":"lang","in":"query","required":false,"description":"Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.","schema":{"type":"string","enum":["ja","en","zh-hans","zh-hant","ko"],"default":"en"}}],"responses":{"200":{"description":"results[]: type (place or sight), id, kind, name, names (five languages), lat, lng, area, page (URL for people), api (URL of the details), routeEndpoint (pass it to find_routes as from or to). Every response also has site (the site name) and notice (a reminder that times and fares are estimates).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"A parameter is missing or invalid. error.issues lists each problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the number of seconds in the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/places/{id}":{"get":{"operationId":"get_place","summary":"Get details of a place","description":"Details of one place: names in five languages, coordinates, kind, the area guide it belongs to, a short description, sights within walking distance, upcoming events nearby, related themes, lines that stop there (for stations), and the URL of its page.\n\nExample: https://gothere.online/api/v1/places/spot-sensoji?lang=en","parameters":[{"name":"id","in":"path","required":true,"description":"Place ID or sight ID returned by search_places or find_nearby (lowercase letters, digits and hyphens).","schema":{"type":"string"},"example":"spot-sensoji"},{"name":"lang","in":"query","required":false,"description":"Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.","schema":{"type":"string","enum":["ja","en","zh-hans","zh-hant","ko"],"default":"en"}}],"responses":{"200":{"description":"id, kind, name, names, lat, lng, area, about (description, typical stay, fee, rainy-day and step-free notes; only for sights), station (lines, lockers, step-free access; only for stations), highlights (walkable sights and classics in the same area), eventsHere, eventsNearby, themes, page, routesToHerePage. Every response also has site (the site name) and notice (a reminder that times and fares are estimates).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"A parameter is missing or invalid. error.issues lists each problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The place ID is not known. Find IDs with search_places.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the number of seconds in the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/routes":{"get":{"operationId":"find_routes","summary":"Find routes between two places","description":"Compare ways to travel between two places in Japan, combining trains, subways, buses, flights, ferries, walking and (optionally) taxi or bicycle. Returns several itineraries with duration, fare, transfers, walking time and expected crowding, plus the URL of the result page. Times and fares are estimates computed from typical travel times and service intervals, not from timetables.\n\nExample: https://gothere.online/api/v1/routes?from=tokyo&to=spot-sensoji&lang=en","parameters":[{"name":"from","in":"query","required":true,"description":"Origin. A place ID (for example \"tokyo\", \"kyoto\", \"spot-sensoji\"; find IDs with search_places), or a map point written as \"@lat,lng,label\" (for example \"@35.7148,139.7967,Senso-ji\").","schema":{"type":"string"},"example":"tokyo"},{"name":"to","in":"query","required":true,"description":"Destination. A place ID (for example \"tokyo\", \"kyoto\", \"spot-sensoji\"; find IDs with search_places), or a map point written as \"@lat,lng,label\" (for example \"@35.7148,139.7967,Senso-ji\").","schema":{"type":"string"},"example":"spot-sensoji"},{"name":"d","in":"query","required":false,"description":"Date in Japan time, YYYY-MM-DD. Omit both d and t to search from now. With d only, the search starts at 09:00.","schema":{"type":"string"},"example":"2026-12-01"},{"name":"t","in":"query","required":false,"description":"Time in Japan time, HH:MM (24-hour).","schema":{"type":"string"},"example":"09:30"},{"name":"m","in":"query","required":false,"description":"Whether d/t is the departure time or the latest arrival time.","schema":{"type":"string","enum":["depart","arrive"],"default":"depart"}},{"name":"a","in":"query","required":false,"description":"Number of adults (12 and over).","schema":{"type":"integer","minimum":1,"maximum":9,"default":1}},{"name":"c","in":"query","required":false,"description":"Number of children aged 6 to 11 (child fare).","schema":{"type":"integer","minimum":0,"maximum":9,"default":0}},{"name":"i","in":"query","required":false,"description":"Number of infants aged 0 to 5.","schema":{"type":"integer","minimum":0,"maximum":9,"default":0}},{"name":"p","in":"query","required":false,"description":"Traveler situation, comma-separated. Any of: luggage, stroller, kids, wheelchair, senior, simple, jrpass. (luggage = large suitcases, stroller = with a baby stroller, kids = with children, wheelchair = step-free routes, senior = avoid long walks, simple = fewer and easier transfers, jrpass = holds a Japan Rail Pass.)","schema":{"type":"string"},"example":"kids,luggage"},{"name":"x","in":"query","required":false,"description":"Transport to exclude, comma-separated. Any of: shinkansen, limited, flight, bus, hbus, ferry. (limited = limited express trains, hbus = highway buses.)","schema":{"type":"string"},"example":"flight"},{"name":"taxi","in":"query","required":false,"description":"Set to 1 to include taxi options.","schema":{"type":"string","enum":["1"]}},{"name":"bike","in":"query","required":false,"description":"Set to 1 to include bicycle options.","schema":{"type":"string","enum":["1"]}},{"name":"w","in":"query","required":false,"description":"Longest acceptable single walk, in minutes.","schema":{"type":"integer","minimum":5,"maximum":40,"default":15}},{"name":"limit","in":"query","required":false,"description":"Maximum number of itineraries.","schema":{"type":"integer","minimum":1,"maximum":8,"default":5}},{"name":"lang","in":"query","required":false,"description":"Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.","schema":{"type":"string","enum":["ja","en","zh-hans","zh-hant","ko"],"default":"en"}}],"responses":{"200":{"description":"page (the same search on the site, with map), query (resolved date and time in Japan time), from, to, itineraries[]: depart, arrive, durationMinutes, fareYen (whole party), fareAdultYen, transfers, walkMinutes, crowdMax (1 = empty to 5 = very crowded), ease (0 to 100), tags (recommended, fastest, cheapest, easiest, calmest), advice[], legs[] (mode, line, from, to, depart, arrive, fareYen, crowdLevel). empty is set when nothing was found. Every response also has site (the site name) and notice (a reminder that times and fares are estimates).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"A parameter is missing or invalid. error.issues lists each problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The place ID is not known. Find IDs with search_places.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the number of seconds in the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/nearby":{"get":{"operationId":"find_nearby","summary":"Find stations, sights and events near a point","description":"Stations, sights and this week's events within walking distance of a place or a coordinate in Japan, nearest first, with estimated walking minutes. Give either place (a place ID) or lat and lng. Coordinates are used only to compute distances and are not stored.\n\nExample: https://gothere.online/api/v1/nearby?place=asakusa&within=15&lang=en","parameters":[{"name":"place","in":"query","required":false,"description":"Place ID to search around (use this instead of lat/lng when the user names a station or spot).","schema":{"type":"string"},"example":"asakusa"},{"name":"lat","in":"query","required":false,"description":"Latitude (WGS84), within Japan. Three decimal places are enough.","schema":{"type":"number","minimum":24,"maximum":45.6},"example":35.711},{"name":"lng","in":"query","required":false,"description":"Longitude (WGS84), within Japan.","schema":{"type":"number","minimum":122.9,"maximum":145.9},"example":139.798},{"name":"within","in":"query","required":false,"description":"Walking time limit in minutes.","schema":{"type":"integer","minimum":5,"maximum":30,"default":15}},{"name":"limit","in":"query","required":false,"description":"Maximum number of sights (stations and events are capped at 5 each).","schema":{"type":"integer","minimum":1,"maximum":20,"default":10}},{"name":"lang","in":"query","required":false,"description":"Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.","schema":{"type":"string","enum":["ja","en","zh-hans","zh-hant","ko"],"default":"en"}}],"responses":{"200":{"description":"origin, stations[] (with walkMinutes), sights[] (with walkMinutes, description, fee, rainy-day and step-free notes, routeEndpoint), events[] (this week, within 5 km), page. Every response also has site (the site name) and notice (a reminder that times and fares are estimates).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"A parameter is missing or invalid. error.issues lists each problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"The place ID is not known. Find IDs with search_places.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the number of seconds in the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/events":{"get":{"operationId":"find_events","summary":"Find events and festivals","description":"Festivals, fireworks, illuminations, seasonal events and similar in Japan whose dates were confirmed on official announcements. Filter by date range, region and kind. Each event has its dates, venue, nearest place ID and the official URL.\n\nExample: https://gothere.online/api/v1/events?from=2026-12-01&to=2026-12-31&area=kanto&lang=en","parameters":[{"name":"from","in":"query","required":false,"description":"First day (Japan time, YYYY-MM-DD). Defaults to today.","schema":{"type":"string"},"example":"2026-12-01"},{"name":"to","in":"query","required":false,"description":"Last day (YYYY-MM-DD). Defaults to 30 days after from. The range may span at most 366 days.","schema":{"type":"string"},"example":"2026-12-31"},{"name":"area","in":"query","required":false,"description":"Region of Japan.","schema":{"type":"string","enum":["hokkaido","tohoku","kanto","chubu","kansai","chugoku","shikoku","kyushu","okinawa"]}},{"name":"kind","in":"query","required":false,"description":"Kind of event.","schema":{"type":"string","enum":["fireworks","festival","illumination","season","snow","sports","food","popculture"]}},{"name":"limit","in":"query","required":false,"description":"Maximum number of events.","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"lang","in":"query","required":false,"description":"Language of names and texts in the response. Long descriptions exist in Japanese and English only; other languages fall back to English.","schema":{"type":"string","enum":["ja","en","zh-hans","zh-hant","ko"],"default":"en"}}],"responses":{"200":{"description":"from, to, total, events[]: id, name, kind, start, end, time, venue, region, nearestPlace (id usable as a find_routes destination), description, caution, officialUrl, fee (free, paid or part), dateSource (official or press), routesPage; and page (the event list on the site). Every response also has site (the site name) and notice (a reminder that times and fares are estimates).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Result"}}}},"400":{"description":"A parameter is missing or invalid. error.issues lists each problem.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests. Wait for the number of seconds in the Retry-After header.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Result":{"type":"object","description":"The fields of each operation are listed in its 200 response description.","properties":{"site":{"type":"string"},"notice":{"type":"string","description":"Reminder that times and fares are estimates, in the requested language."},"page":{"type":"string","description":"URL of the matching page for people."}},"required":["site","notice"],"additionalProperties":true},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_request","not_found","rate_limited"]},"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"param":{"type":"string"},"message":{"type":"string"}}}}},"required":["code","message"]},"docs":{"type":"string","description":"URL of this document."}},"required":["error"]}}}}