Cebu Courts And Clubs API
Read-only JSON access to the directory: courts, open play sessions, Pasalo court slots, tournaments, clubs, coaches, stores and services.
https://cebucourtsandclubs.com/api/v1
Quick start
1. Get a key. Email hello@cebucourtsandclubs.com with your app's name and what you'll use the data for. Each app gets its own key, so ask for one per app or environment. A key looks like cpk_ followed by 40 hex characters.
2. Make a request. Send the key in the Authorization header:
curl -H "Authorization: Bearer $CPK_KEY" \ "https://cebucourtsandclubs.com/api/v1/courts?city=Cebu%20City"
3. Read the result. Lists come back as data (the listings), meta (counts) and links (pages). Every listing has a name and a url pointing at its public page on Cebu Courts And Clubs.
Authentication
Send your key with every request, in either header:
Authorization: Bearer cpk_…
# or
X-API-Key: cpk_…- Keys are not accepted in the query string, so they don't end up in logs or browser history.
- Keep keys on your server. A key inside a web page or a mobile app can be read by anyone who uses it. Call the API from your backend and serve your app from there.
- If a key leaks, email us to revoke it. A revoked key stops working immediately and returns
401 invalid_api_key. - The endpoint index
GET /api/v1needs no key.
Endpoints
| Request | Returns |
|---|---|
GET/api/v1 | Endpoint index. No key needed. |
GET/api/v1/{type} | A page of listings of that type. |
GET/api/v1/{type}/{id} | One listing, by numeric id. |
GET/api/v1/{type}/{slug} | One listing, by slug. Only for courts, clubs, coaches, stores and services. |
Listing types
| Path | Item type | What's included |
|---|---|---|
courts | court | Court facilities: location, rate, hours, amenities, contact. |
openplay | openplay | Drop-in open play sessions that are still upcoming or recurring. |
takeovers | takeover | Pasalo: future booked court slots players are passing on. |
tournaments | tournament | Upcoming and ongoing tournaments. |
clubs | club | Pickleball clubs and community groups. |
coaches | coach | Coaches: rates, levels taught, availability, contact. |
stores | store | Equipment retailers and pro shops. |
services | service | Court builders, repair, photography and other services. |
Get one listing
curl -H "Authorization: Bearer $CPK_KEY" \ https://cebucourtsandclubs.com/api/v1/courts/example-pickleball-center
A single listing is wrapped in data. This example uses made-up values:
{
"data": {
"id": 42,
"type": "court",
"name": "Example Pickleball Center",
"slug": "example-pickleball-center",
"branch_name": null,
"url": "https://cebucourtsandclubs.com/courts/example-pickleball-center",
"city": "Cebu City",
"address": "123 Sample St., Banilad, Cebu City",
"location": { "latitude": 10.338211, "longitude": 123.911846 },
"setting": "Indoor",
"surface": "Acrylic Hard Court",
"court_count": 4,
"price_per_hour": 400,
"currency": "PHP",
"open_24_7": false,
"operating_hours": {
"mon": { "start": "06:00", "end": "22:00" },
"sat": { "start": "07:00", "end": "23:00" }
},
"hours_text": null,
"amenities": { "cafe": true, "parking": true, "shower": false },
"rating": { "average": 4.6, "count": 18 },
"contact": { "person": "Front desk", "phone": "0917 000 0000", "email": null },
"links": { "website": null, "facebook": "https://facebook.com/example", "instagram": null, "reclub": null },
"images": { "photo": "https://cebucourtsandclubs.com/uploads/…webp", "cover": null, "gallery": [] },
"description": "Four indoor courts with LED lighting."
}
}Lists & pagination
| Parameter | Meaning |
|---|---|
page | Page number, starting at 1. Default 1. |
per_page | Listings per page, 1–100. Default 25. Values outside the range are clamped. |
city | Only listings in this city. Case-insensitive; common short forms work, so city=Cebu matches “Cebu City”. |
q | Only listings whose name contains this text, case-insensitive. |
pretty | Any value pretty-prints the JSON. Handy while exploring. |
Filters are applied before paging, so meta.total is the number of matching listings.
{
"data": [ { "id": 42, "type": "court", "name": "Example Pickleball Center", … } ],
"meta": { "type": "courts", "total": 61, "page": 1, "per_page": 25, "total_pages": 3 },
"links": {
"self": "https://cebucourtsandclubs.com/api/v1/courts?page=1&per_page=25",
"next": "https://cebucourtsandclubs.com/api/v1/courts?page=2&per_page=25",
"prev": null
}
}Follow links.next until it is null. It keeps your filters and page size. Lists are ordered by name, except open play (oldest first), takeovers (soonest slot first) and tournaments (soonest start date first).
Fetch every listing of a type
const BASE = "https://cebucourtsandclubs.com/api/v1";
async function fetchAll(type) {
const items = [];
let url = `${BASE}/${type}?per_page=100`;
while (url) {
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.CPK_KEY}` },
});
if (res.status === 429) {
// Hourly limit reached: wait as long as the server says, then retry.
const wait = Number(res.headers.get("Retry-After") || 60);
await new Promise((r) => setTimeout(r, wait * 1000));
continue;
}
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
items.push(...body.data);
url = body.links.next;
}
return items;
}
const courts = await fetchAll("courts");$ch = curl_init('https://cebucourtsandclubs.com/api/v1/coaches?city=Mandaue');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('CPK_KEY')],
]);
$body = json_decode(curl_exec($ch), true);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($status !== 200) {
throw new RuntimeException($body['error']['message'] ?? 'API error');
}
foreach ($body['data'] as $coach) {
echo htmlspecialchars($coach['name']), ' – ', $coach['url'], PHP_EOL;
}Data conventions
- Stable shape. Every listing of a type has the same keys. A missing value is
null, never a missing key. List fields such asgalleryare[]when empty. - Plain text, unescaped. Text is returned exactly as the owner entered it. Escape it before putting it into HTML.
- Money. Fixed amounts are numbers in pesos (
price_per_hour,price), with"currency": "PHP". Free-form fees (fee,entry_fee) are strings as entered, such as “150 per head” or “Free”. Each has a*_displaytwin formatted the way this site shows it. - Dates and times. All in Philippine time. Dates are
YYYY-MM-DD. Event start and end times are 12-hour strings as entered, such as"7:00 PM".next_occurrenceis ISO 8601 with offset, such as2026-10-10T18:00:00+08:00. - Links and images. Every URL is absolute. Owner-entered links are only ever
httporhttps; anything else is returned asnull. - Related listings.
court_idandclub_idon events point to the venue's or organizer's listing. That listing may not be public, so a lookup can return 404. - Freshness. Responses reflect the live directory and may be cached for up to 60 seconds. Listings change a few times a day at most, so caching on your side for 10–60 minutes is reasonable.
- Attribution. When you show a listing, link to its
urlso people can see the full page on Cebu Courts And Clubs.
Fields by type
Every type starts with id (integer), type (string) and name (string), and has url, the listing's public page.
Court
/courts| Field | Type | Description |
|---|---|---|
slug |
string? | URL name, usable as /courts/{slug}. |
branch_name |
string? | Branch, for operators with several locations. |
city |
string | City or municipality. |
address |
string? | Street address. |
location |
location? | Map pin. See location. |
setting |
string? | Indoor or Outdoor. |
surface |
string? | Court surface, such as Acrylic Hard Court. |
court_count |
integer? | Number of courts. |
price_per_hour |
number? | Court rate per hour in pesos. |
currency |
string | Always "PHP". |
open_24_7 |
boolean | Open all day, every day. When true, ignore the hours fields. |
operating_hours |
schedule? | Hours per weekday. See weekly schedule. |
hours_text |
string? | Free-text hours. Use when operating_hours is null. |
amenities |
object | cafe, parking, shower: booleans. |
rating |
rating? | See rating. |
contact |
object | person, phone, email: strings or null. |
links |
links | See links. |
images |
object | photo (logo or main photo), cover, gallery (up to 4 URLs). |
description |
string? | Short bio, up to 300 characters. |
Open play
/openplay| Field | Type | Description |
|---|---|---|
name |
string | Session title. |
host_name |
string? | Host or organizer. |
venue |
string? | Where it's played. |
city |
string? | City or municipality. |
court_id, club_id |
integer? | Linked court and club listings. |
schedule |
object | When it runs: |
.type |
string | "recurring" or "one_time". |
.days |
string[]? | Recurring only: weekdays, such as ["tue", "thu"]. Null for one-time sessions. |
.date |
string? | One-time only: YYYY-MM-DD. |
.start_time, .end_time |
string? | Such as "6:00 PM". |
next_occurrence |
string? | Next start as ISO 8601, already accounting for today's session having ended. |
fee |
string? | Fee as entered. |
fee_display |
string | Fee formatted for display: “₱150.00 / player”, “Free” or “Contact for Fee”. |
skill_level |
string? | Such as All Levels or 3.0+. |
format |
string? | Play format, such as paddle stacking or round robin. |
slot_capacity |
integer? | Player slots. |
court_count |
integer? | Courts used. |
equipment_provided |
string? | Paddles and balls available, if any. |
rsvp_url |
string? | Sign-up link. |
description |
string? | Details from the host. |
Takeover (Pasalo)
/takeovers| Field | Type | Description |
|---|---|---|
name |
string | Venue and date, such as “Example Pickleball Center — Tue, Oct 20, 2026”. |
venue |
string? | Court facility. |
city |
string? | City or municipality. |
court_id |
integer? | Linked court listing. |
date |
string | Slot date, YYYY-MM-DD. |
start_time, end_time |
string? | Such as "7:00 PM". |
court_count |
integer? | Courts in the booking. |
price |
number | Asking price in pesos. |
original_price |
number? | What the booking cost. Only set when it's higher than price. |
currency |
string | Always "PHP". |
posted_by |
string? | Who is passing on the slot. |
contact_facebook |
string? | Facebook link to reach them. |
notes |
string? | Notes from the poster. |
Tournament
/tournaments| Field | Type | Description |
|---|---|---|
name |
string | Tournament title. |
organizer |
string? | Organizer name. |
venue |
string? | Where it's held. |
city |
string? | City or municipality. |
court_id, club_id |
integer? | Linked court and club listings. |
dates_text |
string? | Dates as written by the organizer. |
start_date, end_date |
string? | YYYY-MM-DD. |
event_status |
string? | Such as Registration open, Upcoming or Now playing. |
entry_fee |
string? | Entry fee as entered. |
entry_fee_display |
string | Entry fee formatted for display. |
prize_pool |
string? | Prize pool as entered. |
categories |
string? | Divisions, comma-separated text. |
registration_url |
string? | Official registration or details page. |
poster |
string? | Poster image URL. |
description |
string? | Details from the organizer. |
Club
/clubs| Field | Type | Description |
|---|---|---|
slug |
string? | URL name, usable as /clubs/{slug}. |
city |
string? | City or municipality. |
organizer |
string? | Club organizer or admin. |
location |
location? | See location. |
contact |
object | phone, email. |
links |
links | See links. |
images |
object | logo, cover. |
description |
string? | Short bio. |
Coach
/coaches| Field | Type | Description |
|---|---|---|
slug |
string? | URL name, usable as /coaches/{slug}. |
tagline |
string? | One-line pitch. |
specialty |
string? | What they focus on. |
skill_levels |
string? | Levels taught, as text. |
city |
string | Home city. The city filter matches this. |
service_area |
string? | Other areas covered, as text. |
rate |
string? | Rate as entered. Null means “contact for rates”. |
lesson_types |
object | individual, group: booleans. |
years_experience |
string? | As entered. |
age_groups, languages |
string? | As entered. |
certifications |
string? | Coaching certifications. |
affiliate_courts |
string? | Courts they teach at. |
availability |
schedule? | Coaching hours. See weekly schedule. |
rating |
rating? | See rating. |
contact |
object | phone, email. |
links |
links | Includes video. |
images |
object | avatar, cover. |
description |
string? | Bio. |
what_i_offer |
string? | Lessons and programs offered. |
Store
/stores| Field | Type | Description |
|---|---|---|
slug |
string? | URL name, usable as /stores/{slug}. |
city, province |
string? | Location. Stores outside Cebu carry their province. |
address |
string? | Street address. |
location |
location? | See location. |
product_categories |
string? | Comma-separated categories, such as Paddles, Balls. |
products |
string? | More specific products, comma-separated. |
brands_carried |
string? | Brands, comma-separated. |
rating |
rating? | See rating. |
contact |
object | phone, email. |
links |
links | See links. |
images |
object | logo, cover, gallery. |
description |
string? | About the store. |
Service
/services| Field | Type | Description |
|---|---|---|
name |
string | Company name. |
slug |
string? | URL name, usable as /services/{slug}. |
services_offered |
string? | Comma-separated, such as Court Construction, Lighting. |
city, province |
string? | Location. |
address |
string? | Street address. |
location |
location? | See location. |
rating |
rating? | See rating. |
contact |
object | person, phone, email. |
links |
links | See links. |
images |
object | logo, cover, gallery. |
description |
string? | About the company. |
Rate limits
Each key has an hourly request limit, 1,000 by default. The count resets at the top of each hour (UTC). Every authenticated response tells you where you stand:
| Header | Meaning |
|---|---|
X-RateLimit-Limit | Requests allowed per hour for this key. |
X-RateLimit-Remaining | Requests left in the current hour. |
X-RateLimit-Reset | Unix time when the count resets. |
Retry-After | On a 429 only: seconds to wait. |
Requests made after the limit is reached still count, so retrying in a tight loop keeps you blocked. Wait for Retry-After. If you regularly need more, email hello@cebucourtsandclubs.com for a higher limit.
Errors
Errors use standard HTTP status codes and one JSON shape:
{ "error": { "code": "rate_limited", "message": "Hourly request limit reached. …" } }Branch on code, which is stable. message is for people and may change.
| Status | Code | What to do |
|---|---|---|
| 401 | missing_api_key | Send the key in Authorization or X-API-Key. |
| 401 | invalid_api_key | The key is mistyped or was revoked. Ask for a new one. |
| 404 | not_found | Unknown endpoint, or no public listing has that id or slug. Listings can be removed or hidden at any time. |
| 405 | method_not_allowed | The API is read-only. Use GET. |
| 429 | rate_limited | Wait Retry-After seconds, then retry. |
| 500 | server_error | Retry shortly. The error is logged on our side. |
| 503 | api_disabled | The API is temporarily switched off. Keys stay valid; retry later. |
CORS is open to all origins and OPTIONS preflight requests are answered, but keys should still be used from your server (see Authentication).
Versioning
Within v1, new fields and new listing types may be added at any time, so ignore keys you don't recognize. Removing or renaming a field, or changing its type, only happens in a new version under a new path such as /api/v2.
Questions or problems? Email hello@cebucourtsandclubs.com.