Public Data
Opening Times
1 min
if you need a simple check to see the opening times for a given day then the opening times call will suit that the call can also return a true or false on if the venue is open at the specified times { "tab" "examples", "url" "http //letsbookfor com/playopolis/open/12 05 2022/9 00/267", "name" "get opening times for a day", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "venue slug", "type" "string", "description" "the venue you want to get opening times for, using the url slug" }, { "kind" "optional", "name" "date", "type" "string", "description" "date which you want to check if the venue is open if not provided will default to today " }, { "kind" "optional", "name" "time", "type" "string", "description" "the time in hh\ ss format for which you want to check if the venue is open" }, { "kind" "optional", "name" "session limiter", "type" "number", "description" "limit the opening time check to a particular session, providing the session id" } ], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "bar5biruhf jlmvr3po8y", "code" "{\n \\"open\\" false,\n \\"earliest\\" \\"12 00 00\\",\n \\"latest\\" \\"21 00 00\\"\n}", "language" "200", "customlabel" "" }, { "id" "c0rwcy770vrvgugttz2a ", "code" "{\\"error\\" \\"store not found\\"}", "language" "404", "customlabel" "" } ], "selectedlanguageid" "bar5biruhf jlmvr3po8y" }, "examples" { "languages" \[ { "id" "fony6zz0b1eebqqiscwor", "code" "const fetch = require('node fetch');\n\nlet url = 'http //letsbookfor com/playopolis/open/12 05 2022/9 00/267';\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" "kdwtnznme n3sdfgir58a", "code" "curl request get\n url http //letsbookfor com/playopolis/open/12 05 2022/9 00/267\n header 'accept application/json'", "language" "curl", "customlabel" "" }, { "id" "fidlvqaqzpa1aef ky c ", "code" "fetch(\\"http //letsbookfor com/playopolis/open/12 05 2022/9 00/267\\", {\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" "dejn1nzzznu1wywrsnoai", "code" "import requests\n\nurl = \\"http //letsbookfor com/playopolis/open/12 05 2022/9 00/267\\"\nheaders = {\\"accept\\" \\"application/json\\"}\nresponse = requests request(\\"get\\", url, headers=headers)\nprint(response text)", "language" "python", "customlabel" "" }, { "id" "6rfjyhrkvsjwsmjiv88dm", "code" "const fetch = require('node fetch');\n\nlet url = 'http //letsbookfor com/playopolis/open/12 05 2022/9 00/267';\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" "fony6zz0b1eebqqiscwor" }, "description" "returns the opening time, and closing time of a venue", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } }