curl --request GET \
--url https://api.opencals.com/storefront/products/{productId}/current-availabilities \
--header 'x-api-key: <api-key>'import requests
url = "https://api.opencals.com/storefront/products/{productId}/current-availabilities"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.opencals.com/storefront/products/{productId}/current-availabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.opencals.com/storefront/products/{productId}/current-availabilities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opencals.com/storefront/products/{productId}/current-availabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.opencals.com/storefront/products/{productId}/current-availabilities")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/products/{productId}/current-availabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"productId": "123e4567-e89b-12d3-a456-426614174000",
"fromDate": "2026-04-10",
"fromTime": "09:00:00",
"toDate": "2026-04-10",
"toTime": "09:30:00",
"attendees": 123,
"maxAttendees": 123,
"staffMemberIds": [
"<string>"
],
"locationIds": [
"<string>"
]
}
]Get current availabilities for a product
Retrieve individual bookable time slots for a product on a given date.
curl --request GET \
--url https://api.opencals.com/storefront/products/{productId}/current-availabilities \
--header 'x-api-key: <api-key>'import requests
url = "https://api.opencals.com/storefront/products/{productId}/current-availabilities"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.opencals.com/storefront/products/{productId}/current-availabilities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.opencals.com/storefront/products/{productId}/current-availabilities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.opencals.com/storefront/products/{productId}/current-availabilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.opencals.com/storefront/products/{productId}/current-availabilities")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.opencals.com/storefront/products/{productId}/current-availabilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"productId": "123e4567-e89b-12d3-a456-426614174000",
"fromDate": "2026-04-10",
"fromTime": "09:00:00",
"toDate": "2026-04-10",
"toTime": "09:30:00",
"attendees": 123,
"maxAttendees": 123,
"staffMemberIds": [
"<string>"
],
"locationIds": [
"<string>"
]
}
]Authorizations
Storefront API key (sfk_...)
Path Parameters
ID of the product
"123e4567-e89b-12d3-a456-426614174000"
Query Parameters
Date (YYYY-MM-DD)
Filter by location ID
Filter by staff member ID
Timezone for date/time calculations
Booking duration in seconds; defaults to the product base duration
Response
Availabilities
ID of the product this slot belongs to
"123e4567-e89b-12d3-a456-426614174000"
Start date of the slot (YYYY-MM-DD, UTC)
"2026-04-10"
Start time of the slot (HH:MM:SS, UTC)
"09:00:00"
End date of the slot (YYYY-MM-DD, UTC)
"2026-04-10"
End time of the slot (HH:MM:SS, UTC)
"09:30:00"
Total booked attendees overlapping this slot
Maximum attendees capacity for this product
Comma-separated staff member IDs associated with this slot, or null
Comma-separated location IDs associated with this slot, or null
Was this page helpful?