{"openapi":"3.1.0","info":{"title":"SnagRes public API","version":"1.0.0","summary":"Read-only restaurant reservation availability for New York, San Francisco, Los Angeles and Chicago.","description":"SnagRes tracks reservation availability across Resy, OpenTable, Tock and SevenRooms for hard-to-book restaurants in New York, San Francisco, Los Angeles and Chicago, and alerts subscribers when a table opens. It reports availability; it does not book tables on anyone's behalf.\n\nThese endpoints are read-only and need no authentication. Responses for unauthenticated callers use the free tier: a 14-day forward window, and slot counts rather than exact times.\n\nPlease keep request rates modest. Availability is refreshed every few minutes, so polling faster than that returns the same data.","contact":{"name":"SnagRes","url":"https://snagres.com/about","email":"hello@snagres.com"},"license":{"name":"Data provided as-is, attribution appreciated"}},"servers":[{"url":"https://snagres.com","description":"Production"}],"paths":{"/api/restaurants":{"get":{"summary":"List tracked restaurants with current availability","description":"City is selected by the X-City request header (nyc, sf, la or chi); it defaults to nyc when absent.","parameters":[{"name":"X-City","in":"header","required":false,"schema":{"type":"string","enum":["nyc","sf","la","chi"],"default":"nyc"},"description":"Which city's catalogue to return."}],"responses":{"200":{"description":"Restaurants with availability status and metadata.","content":{"application/json":{}}}}}},"/api/restaurants/{restaurant_id}":{"get":{"summary":"Full detail for one restaurant","parameters":[{"name":"restaurant_id","in":"path","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"description":"Restaurant detail, availability and related venues."}}}},"/api/restaurants/by-slug/{slug}":{"get":{"summary":"Resolve a URL slug to a restaurant across all cities","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Enough detail to route to the restaurant."}}}},"/api/restaurants/recommended":{"get":{"summary":"Restaurants with notable availability right now","responses":{"200":{"description":"A short recommended list."}}}},"/api/release-feed":{"get":{"summary":"Recently observed reservation releases","responses":{"200":{"description":"Release events observed by the tracker."}}}},"/api/rarity-index":{"get":{"summary":"How hard each restaurant is to book, measured","responses":{"200":{"description":"Per-restaurant rarity scores."}}}},"/api/scrape-status":{"get":{"summary":"Freshness of the underlying availability data","responses":{"200":{"description":"Last scrape time and coverage."}}}},"/health":{"get":{"summary":"Service health","responses":{"200":{"description":"Database and scraper status."}}}}}}