Skip to main content

Public Browse API

Public Browse Endpoints​

All endpoints below are unauthenticated. No Authorization header is required. They are thin aliases of the authenticated endpoints and return identical response shapes.

Base prefix: /api/mobile/open/

bundle_availability is always {"status": 0} for guests. Block-based review filtering is skipped — all approved reviews are visible.


Sports​

List Active Sports​

GET /api/mobile/open/sports

Returns all sports marked active, ordered by sort_order.

Response 200​

{
"data": [
{
"id": 1,
"name": "Football",
"description": "A popular team sport",
"image_url": "https://example.com/storage/sports/football.jpg",
"thumbnail": "https://example.com/storage/sports/football_thumb.jpg",
"sort_order": 1
}
]
}
StatusMeaning
200Success
503Unexpected server error

List Offerings by Sport​

GET /api/mobile/open/sports/{sport}/offerings

Returns paginated offerings that include sessions for the given sport.

Path Parameter​

ParameterTypeDescription
sportintegerSport ID

Query Parameters​

ParameterTypeDescription
datedate (Y-m-d)Filter to offerings with a session on this exact date. Overrides from/to.
fromdate (Y-m-d)Sessions on or after this date. Defaults to today.
todate (Y-m-d)Sessions on or before this date.
per_pageintegerResults per page (default 10).

Response 200​

{
"sport": { "id": 1, "name": "Football", "image_url": "..." },
"data": [ /* MobileOffering objects */ ],
"meta": { "current_page": 1, "per_page": 10, "total": 42, "last_page": 5 }
}
StatusMeaning
200Success
404Sport not found or inactive

Coaches​

List All Coaches​

GET /api/mobile/open/coaches

Returns paginated active and verified coaches.

Query Parameters​

ParameterTypeDescription
searchstringSearch by first name, last name, or email.
per_pageintegerResults per page (default 15).

Response 200​

{
"data": [
{
"id": 3,
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"profile_picture_url": "https://example.com/storage/coaches/john.jpg",
"specialities": ["Football"],
"bio": "Experienced coach with 10 years in sports training.",
"review_rating": 4.5,
"tier_badge": {
"name": "Gold Coach",
"color": "#FFD700",
"icon_url": "https://example.com/badges/gold.png"
}
}
],
"meta": { "current_page": 1, "per_page": 15, "total": 40, "last_page": 3 }
}
StatusMeaning
200Success
503Unexpected server error

Get Top-Rated Coaches​

GET /api/mobile/open/coaches/top-rated

Returns up to 10 coaches with the highest average approved review rating. Ties at 10th place resolve by random selection (up to 5 tied coaches).

Response 200​

Same shape as List All Coaches but without meta — returns a flat data array of up to 10 items.


List Promoted Coaches​

GET /api/mobile/open/coaches/promoted

Returns active/verified coaches that have an active promotion, paginated.

Query Parameters​

ParameterTypeDescription
searchstringSearch by first name, last name, or email.
per_pageintegerResults per page (default 15).

Response 200​

Same coach shape as above, with an additional promotion field per item:

{
"promotion": {
"promotion_id": 3,
"starts_at": "Apr 01, 2026 09:00 AM",
"ends_at": "Apr 30, 2026 11:59 PM",
"assigned_at": "Mar 28, 2026 02:30 PM",
"status": "active"
}
}

Get Single Coach​

GET /api/mobile/open/coaches/{id}

Returns a single coach profile object (not wrapped in a data array).

Path Parameter​

ParameterTypeDescription
idintegerCoach user ID
StatusMeaning
200Success
404Coach not found or not active/verified

Get Coach Offerings​

GET /api/mobile/open/coaches/{id}/offerings

Returns offerings with future sessions belonging to the given coach.

Path Parameter​

ParameterTypeDescription
idintegerCoach user ID

Query Parameters​

ParameterTypeDescription
fromdate (Y-m-d)Sessions on or after this date. Default: today.
todate (Y-m-d)Sessions on or before this date.

Response 200​

{
"coach": { "id": 3, "first_name": "John", "last_name": "Doe" },
"data": [ /* MobileOffering objects */ ]
}
StatusMeaning
200Success
404Coach not found or not active/verified

Venues​

List All Venues​

GET /api/mobile/open/venues

Returns paginated active and verified venues.

Query Parameters​

ParameterTypeDescription
searchstringSearch by first name, last name, email, or venue name.
per_pageintegerResults per page (default 15).

Response 200​

{
"data": [
{
"id": 5,
"first_name": "Sport",
"last_name": "Arena",
"email": "[email protected]",
"profile_picture_url": "https://example.com/storage/venues/avatar.jpg",
"name": "Sport Arena Doha",
"description": null,
"capacity": 500,
"address": "West Bay, Doha",
"tier_badge": {
"name": "Gold Venue",
"color": "#FFD700",
"icon_url": "https://example.com/badges/gold.png"
}
}
],
"meta": { "current_page": 1, "per_page": 15, "total": 30, "last_page": 2 }
}
StatusMeaning
200Success
503Unexpected server error

Get Top-Rated Venues​

GET /api/mobile/open/venues/top-rated

Returns up to 10 venues with the highest average approved review rating. Same tie-breaking as top-rated coaches.

Response 200​

Same venue shape as above, no meta, flat data array of up to 10 items. Includes review_rating.


List Promoted Venues​

GET /api/mobile/open/venues/promoted

Returns active/verified venues that have an active promotion, paginated.

Query Parameters​

ParameterTypeDescription
searchstringSearch by first name, last name, email, or venue name.
per_pageintegerResults per page (default 15).

Each item includes the same promotion object as promoted coaches.


Get Single Venue​

GET /api/mobile/open/venues/{id}

Returns a single venue profile object (not wrapped in a data array).

Path Parameter​

ParameterTypeDescription
idintegerVenue user ID
StatusMeaning
200Success
404Venue not found or not active/verified

Get Venue Offerings​

GET /api/mobile/open/venues/{id}/offerings

Returns offerings with future sessions hosted at the given venue.

Path Parameter​

ParameterTypeDescription
idintegerVenue user ID

Query Parameters​

ParameterTypeDescription
fromdate (Y-m-d)Sessions on or after this date. Default: today.
todate (Y-m-d)Sessions on or before this date.
per_pageintegerResults per page (default 15).

Response 200​

{
"venue": { "id": 5, "name": "Sport Arena Doha" },
"data": [ /* MobileOffering objects */ ],
"meta": { "current_page": 1, "per_page": 15, "total": 10, "last_page": 1 }
}
StatusMeaning
200Success
404Venue not found

Offerings​

List All Offerings​

GET /api/mobile/open/offerings

Returns all active, public offerings that have not fully passed.

Query Parameters​

ParameterTypeDescription
sport_idintegerFilter by sport ID.
typestringFilter by type: single, series, or bundle.
datedate (Y-m-d)Only offerings with a session on this date. For bundles, the date must fall inside the bundle's validity window.
searchstringSearch by offering title or description.

Response 200​

{
"data": [ /* MobileOffering objects */ ]
}
StatusMeaning
200Success
422Invalid date format
503Unexpected server error

List Promoted Offerings​

GET /api/mobile/open/offerings/promoted

Returns promoted offerings that have not yet passed. Each item includes an extra promotion field.

Query Parameters​

ParameterTypeDescription
sport_idintegerFilter by sport ID.
typestringFilter by type: single, series, or bundle.
searchstringSearch by title or description.

Response 200​

{
"data": [
{
/* MobileOffering fields */
"promotion": {
"starts_at": "May 01, 2026 08:00 AM",
"ends_at": "Jun 30, 2026 11:59 PM",
"status": "active"
}
}
]
}
StatusMeaning
200Success
503Unexpected server error

Get Single Offering​

GET /api/mobile/open/offerings/{id}

Returns a single offering. Only public offerings that have not passed are returned; anything else yields 404.

Path Parameter​

ParameterTypeDescription
idintegerOffering ID

Query Parameters​

ParameterTypeDescription
offering_versionintegerOptional. If provided and the offering has been updated since this version, returns 409.
StatusMeaning
200Success
404Offering not found or no longer available
409Offering version mismatch — client should refresh

Reviews​

Get Reviews for a Coach or Venue​

GET /api/mobile/open/users/{id}/reviews

Returns paginated approved reviews for the given coach or venue. Block filtering is skipped for guests — all approved reviews are visible.

Path Parameter​

ParameterTypeDescription
idintegerUser ID of the coach or venue

Query Parameters​

ParameterTypeDescription
per_pageintegerReviews per page (default 10).

Response 200​

{
"average_rating": 4.35,
"total": 28,
"data": [
{
"id": 55,
"rating": 4,
"comments": "Great session!",
"coach_id": 3,
"venue_id": null,
"session_id": 11,
"created_at": "2026-04-01T10:00:00+03:00",
"reviewer": {
"id": 101,
"first_name": "Sara",
"last_name": "Ali",
"profile_picture": {
"background": "https://example.com/storage/profile.jpg",
"icon": "https://example.com/storage/profile.jpg"
}
}
}
]
}
StatusMeaning
200Success
404User not found, or is neither a coach nor a venue