Cebu Courts And Clubs
Developers · API v1

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.

Base URL https://cebucourtsandclubs.com/api/v1
Accepting requests Format JSON, UTF-8 Methods GET only Auth API key Time zone Philippine time (UTC+8) Currency PHP (₱)

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:

Shell
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.

Only public listings. The API returns exactly what this website shows publicly, with the same details as each listing's public page. Listings awaiting review, archived or hidden by their owner never appear.

Authentication

Send your key with every request, in either header:

HTTP headers
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/v1 needs no key.

Endpoints

RequestReturns
GET/api/v1Endpoint 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

PathItem typeWhat's included
courtscourtCourt facilities: location, rate, hours, amenities, contact.
openplayopenplayDrop-in open play sessions that are still upcoming or recurring.
takeoverstakeoverPasalo: future booked court slots players are passing on.
tournamentstournamentUpcoming and ongoing tournaments.
clubsclubPickleball clubs and community groups.
coachescoachCoaches: rates, levels taught, availability, contact.
storesstoreEquipment retailers and pro shops.
servicesserviceCourt builders, repair, photography and other services.

Get one listing

Shell
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:

Response · 200
{
  "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

ParameterMeaning
pagePage number, starting at 1. Default 1.
per_pageListings per page, 1–100. Default 25. Values outside the range are clamped.
cityOnly listings in this city. Case-insensitive; common short forms work, so city=Cebu matches “Cebu City”.
qOnly listings whose name contains this text, case-insensitive.
prettyAny value pretty-prints the JSON. Handy while exploring.

Filters are applied before paging, so meta.total is the number of matching listings.

Response · 200
{
  "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

JavaScript (Node 18+, server-side)
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");
PHP
$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 as gallery are [] 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 *_display twin 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_occurrence is ISO 8601 with offset, such as 2026-10-10T18:00:00+08:00.
  • Links and images. Every URL is absolute. Owner-entered links are only ever http or https; anything else is returned as null.
  • Related listings. court_id and club_id on 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 url so people can see the full page on Cebu Courts And Clubs.

Shared objects

These objects appear in several listing types. In the field tables, ? after a type means the value can be null.

Weekly schedule

Used by operating_hours (courts) and availability (coaches). Keys are mon…sun; closed days are omitted. Times are 24-hour HH:MM. An end time earlier than the start time runs past midnight.

Example
{ "mon": { "start": "06:00", "end": "22:00" }, "fri": { "start": "18:00", "end": "02:00" } }
ObjectFields
locationlatitude, longitude: decimal degrees, 6 places. The whole object is null when the listing has no map pin.
ratingaverage (1–5, 2 decimal places), count (number of ratings). The whole object is null until the first rating.
website, facebook, instagram, reclub: each a URL or null. Coaches also have video.

Fields by type

Every type starts with id (integer), type (string) and name (string), and has url, the listing's public page.

Court

/courts
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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
FieldTypeDescription
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:

HeaderMeaning
X-RateLimit-LimitRequests allowed per hour for this key.
X-RateLimit-RemainingRequests left in the current hour.
X-RateLimit-ResetUnix time when the count resets.
Retry-AfterOn 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:

Response · 429
{ "error": { "code": "rate_limited", "message": "Hourly request limit reached. …" } }

Branch on code, which is stable. message is for people and may change.

StatusCodeWhat to do
401missing_api_keySend the key in Authorization or X-API-Key.
401invalid_api_keyThe key is mistyped or was revoked. Ask for a new one.
404not_foundUnknown endpoint, or no public listing has that id or slug. Listings can be removed or hidden at any time.
405method_not_allowedThe API is read-only. Use GET.
429rate_limitedWait Retry-After seconds, then retry.
500server_errorRetry shortly. The error is logged on our side.
503api_disabledThe 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.