Public Data
Check Bookablity
1 min
if you need a quick check to see if a slot is bookable then the bookablity check is perfect for this as it returns a quick yes or no response { "tab" "examples", "url" "https //letsbookfor com/\[slug]/bookable/\[date]/\[time]/\[session]/\[guests]", "name" "check bookablity for a venue", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "venue slug", "type" "string", "description" "the venue slug as provided in the letsbookfor url" }, { "kind" "required", "name" "date", "type" "string", "description" "the date for the booking check, provided in dd mm yyyy format" }, { "kind" "required", "name" "time", "type" "string", "description" "when should the booking slot be for this doesn't have to be a display slot provided in hh\ mm format" }, { "kind" "required", "name" "session", "type" "number", "description" "what session type is being checked " }, { "kind" "required", "name" "guests", "type" "number", "description" "how many guests are trying to book required for yield management check" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "fl31avetxaxnsnhumy8ha", "code" "{\n \\"free\\"\ true, // if the slot is free and bookable, even if outside of opening times\n \\"open\\"\ true, // if the store would normally be open for this session \n \\"bookable\\"\ true // if the slot is free and the venue would be normally open \n}", "language" "200", "customlabel" "" }, { "id" "sjzs0jyr3g3yq6dscgnnr", "code" "{\\"error\\" \\"store not found\\"}", "language" "404", "customlabel" "" } ], "selectedlanguageid" "fl31avetxaxnsnhumy8ha" }, "examples" { "languages" \[ { "id" "az0rtmx5lukxlfbnfxctt", "code" "curl request get\n url https //letsbookfor com/playopolis/bookable/12 05 2022/13 00/1/4\n header 'accept application/json'", "language" "curl", "customlabel" "" }, { "id" " qpavifd7ovecuhar0cfm", "code" "const fetch = require('node fetch');\n\nlet url = 'https //letsbookfor com/playopolis/bookable/12 05 2022/13 00/1/4';\nlet options = {\n method 'get',\nheaders {\n accept 'application/json',\n }\n};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "nodejs", "customlabel" "" }, { "id" "z4poyel6vqay7ptkqowlr", "code" "fetch(\\"https //letsbookfor com/playopolis/bookable/12 05 2022/13 00/1/4\\", {\n \\"method\\" \\"get\\",\n \\"headers\\" {\n \\"accept\\" \\"application/json\\"\n }\n})\n then(response => {\n console log(response);\n})\n catch(err => {\n console error(err);\n});", "language" "javascript", "customlabel" "" }, { "id" "ccgo e6n8ys4r 25vuxcv", "code" "import requests\n\nurl = \\"https //letsbookfor com/playopolis/bookable/12 05 2022/13 00/1/4\\"\nheaders = {\\"accept\\" \\"application/json\\"}\nresponse = requests request(\\"get\\", url, headers=headers)\nprint(response text)", "language" "python", "customlabel" "" }, { "id" "jl z8sgh6y s9y6i3xlbw", "code" "const fetch = require('node fetch');\n\nlet url = 'https //letsbookfor com/playopolis/bookable/12 05 2022/13 00/1/4';\nlet options = {method 'get', headers {accept 'application/json'}};\nfetch(url, options)\n then(res => res json())\n then(json => console log(json))\n catch(err => console error('error ' + err));", "language" "ruby", "customlabel" "" } ], "selectedlanguageid" "jl z8sgh6y s9y6i3xlbw" }, "description" "using it's letsbookfor slug, check if a slot can be booked", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } }