{"openapi":"3.1.2","info":{"title":"Herska Travel & Nature API","version":"1.0.0","description":"Read approved customer reviews for published tours in Ushuaia and Tierra del Fuego."},"servers":[{"url":"https://www.herskatravelandnature.tur.ar/api"}],"externalDocs":{"description":"API documentation and published tour discovery","url":"https://www.herskatravelandnature.tur.ar/en/docs"},"paths":{"/v1/tour-reviews":{"get":{"operationId":"listTourReviews","summary":"List approved reviews for a published tour","description":"Returns up to four reviews, newest first. Discover tour IDs in the review links in tour Markdown pages listed at /llms.txt.","security":[],"parameters":[{"name":"tourId","in":"query","required":true,"description":"Identifier from the review link on the published tour’s Markdown page.","schema":{"type":"string","pattern":"^[a-zA-Z0-9_-][a-zA-Z0-9._-]{0,127}$"}},{"name":"cursor","in":"query","description":"Opaque nextCursor from the preceding response for the same tour. Omit it for the first page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Tour-wide review totals and a page of approved reviews.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPage"},"example":{"count":0,"average":null,"reviews":[],"nextCursor":null}}}},"400":{"description":"Missing or invalid tourId, or invalid cursor.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"404":{"description":"The tour is unavailable in the published catalog.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"503":{"description":"The reviews service is temporarily unavailable.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"schemas":{"ReviewPage":{"type":"object","required":["count","average","reviews","nextCursor"],"properties":{"count":{"type":"integer","minimum":0,"description":"Total approved reviews for the tour."},"average":{"type":["number","null"],"minimum":1,"maximum":5,"description":"Average rating across all approved reviews, or null."},"reviews":{"type":"array","maxItems":4,"items":{"$ref":"#/components/schemas/Review"}},"nextCursor":{"type":["string","null"],"description":"Cursor for the next page, or null on the last page."}}},"Review":{"type":"object","required":["_id","displayName","rating","date","text"],"properties":{"_id":{"type":"string","description":"Unique review identifier."},"displayName":{"type":"string","description":"Public reviewer name."},"rating":{"type":"integer","minimum":1,"maximum":5},"date":{"type":"string","format":"date-time"},"text":{"type":"string","description":"Published review text."}}},"Problem":{"type":"object","required":["type","title","status","detail","error"],"properties":{"type":{"type":"string","format":"uri","example":"about:blank"},"title":{"type":"string"},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string"},"error":{"type":"string","description":"Machine-readable error code."}}}}}}