Get club details by slug
curl --request GET \
--url https://api.1club.ai/v1/platform/clubs/{slug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/clubs/{slug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/clubs/{slug}', 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.1club.ai/v1/platform/clubs/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.1club.ai/v1/platform/clubs/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.1club.ai/v1/platform/clubs/{slug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/clubs/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>",
"phone": "<string>",
"email": "<string>",
"website": "<string>",
"logo": "<string>",
"images": [
"<string>"
],
"amenities": [
"<string>"
],
"amenitiesResolved": [
{
"id": "<string>",
"name": "<string>",
"icon": "<string>",
"category": "<string>"
}
],
"sports": [
"<string>"
],
"rating": {
"average": 123,
"total": 123
},
"socialProfiles": {},
"subtitle": "<string>",
"description": {},
"gettingThere": "<string>",
"operatingHours": {},
"timezone": "<string>",
"privateTrainingLabel": "<string>",
"groupActivitiesLabel": "<string>",
"areasLabel": "<string>",
"translations": {
"en": {
"privateTrainingLabel": "Personal coaching"
}
}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Clubs
Get club details by slug
Returns club details including amenities, rating, images and the club’s booking-card labels. The club must be active and belong to the organization associated with the API token.
GET
/
v1
/
platform
/
clubs
/
{slug}
Get club details by slug
curl --request GET \
--url https://api.1club.ai/v1/platform/clubs/{slug} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/clubs/{slug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/clubs/{slug}', 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.1club.ai/v1/platform/clubs/{slug}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.1club.ai/v1/platform/clubs/{slug}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.1club.ai/v1/platform/clubs/{slug}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/clubs/{slug}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": 123,
"name": "<string>",
"slug": "<string>",
"address": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postalCode": "<string>",
"phone": "<string>",
"email": "<string>",
"website": "<string>",
"logo": "<string>",
"images": [
"<string>"
],
"amenities": [
"<string>"
],
"amenitiesResolved": [
{
"id": "<string>",
"name": "<string>",
"icon": "<string>",
"category": "<string>"
}
],
"sports": [
"<string>"
],
"rating": {
"average": 123,
"total": 123
},
"socialProfiles": {},
"subtitle": "<string>",
"description": {},
"gettingThere": "<string>",
"operatingHours": {},
"timezone": "<string>",
"privateTrainingLabel": "<string>",
"groupActivitiesLabel": "<string>",
"areasLabel": "<string>",
"translations": {
"en": {
"privateTrainingLabel": "Personal coaching"
}
}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
Club details
A club with its address, contact info, amenities, sports, aggregated images, and average rating.
The title of the card for areas that have no area-type name of their own - untyped areas, and the card that gathers every area. A card for a named area type always shows that type's name instead, so a club whose types are all named never sees this one. Defaults to the platform's "Areas". Up to 30 characters, on one line. Null when the club uses the platform wording.
Maximum string length:
30Was this page helpful?