{"openapi":"3.1.0","info":{"title":"Prox","version":"1.0.0","description":"Live local board: what businesses near a point are posting right now. Read only. Terms: https://proxgetlocal.app/terms Privacy: https://proxgetlocal.app/privacy","termsOfService":"https://proxgetlocal.app/terms","contact":{"email":"proxadvertising@gmail.com"}},"servers":[{"url":"https://proxgetlocal.app"}],"paths":{"/api/health":{"get":{"operationId":"health","summary":"Liveness check","responses":{"200":{"description":"The app is up.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["ok"],"properties":{"ok":{"type":"boolean","const":true}}}}}}}}},"/api/deals":{"get":{"operationId":"listDeals","summary":"Live posts near a point","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","minimum":-90,"maximum":90},"description":"Latitude. Send it with lng."},{"name":"lng","in":"query","required":true,"schema":{"type":"number","minimum":-180,"maximum":180},"description":"Longitude. Send it with lat."},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"number","exclusiveMinimum":0,"maximum":25,"default":5},"description":"Miles. Defaults to 5. Max 25."},{"name":"radius_m","in":"query","required":false,"schema":{"type":"number","minimum":1,"maximum":40234},"description":"Legacy meters. Clamped to 40234 (25 miles). Ignored when radius_miles is set."},{"name":"category","in":"query","required":false,"schema":{"type":"string","maxLength":80},"description":"Keep a post only when this name is in its category list. Prox uses Restaurants, Coffee, Bars, Street Food, Hotels, Attractions, Shopping, Services, Wellness, Grocery."}],"responses":{"200":{"description":"At most 50 live posts inside the radius, nearest first. Cached for 30 seconds.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["deals"],"properties":{"deals":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/Deal"}}}}}}},"400":{"description":"Missing or invalid lat, lng, radius_miles, radius_m, or category.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 60 requests in a minute from one network.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Posts could not be loaded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","additionalProperties":false,"required":["error"],"properties":{"error":{"type":"string"}}},"Deal":{"type":"object","additionalProperties":false,"required":["id","type","title","description","price_display","original_price","discount_percent","business_name","address","category","lat","lng","distance_miles","expires_at","ends","is_demo"],"properties":{"id":{"type":"string"},"type":{"type":"string","enum":["deal","open","special","closed_early"]},"title":{"type":"string"},"description":{"type":"string"},"price_display":{"type":["string","null"]},"original_price":{"type":["string","null"]},"discount_percent":{"type":["number","null"]},"business_name":{"type":["string","null"]},"address":{"type":["string","null"]},"category":{"type":"array","items":{"type":"string"}},"lat":{"type":"number"},"lng":{"type":"number"},"distance_miles":{"type":["number","null"],"description":"Miles, one decimal."},"expires_at":{"type":["string","null"]},"ends":{"type":"string","description":"Readable Pacific time, or \"Live until the business takes it down\" when expires_at is null."},"is_demo":{"type":"boolean"},"claim_available":{"type":"boolean","description":"True when a claim code can be claimed right now."},"claim_url":{"type":["string","null"],"description":"Page where a person taps Claim to get their own short code. Null when the post has no claim code."},"claims_left_today":{"type":["integer","null"],"description":"Codes left today under the shop's daily limit. Null when there is no limit or no claim code."},"claim_cap_per_day":{"type":["integer","null"],"description":"The daily limit, or null for none."}}}}}}