/api/health
Use this to check that the API process is responding. It does not check the database.
{
"status": "ok"
}
JSON API for the official mobile apps. It reads and writes the same content as the TW Radio website.
https://www.api.twradiogh.com/api
Every /api/v1 request needs the shared app credential. Send it as a bearer token. GET /api/health does not.
Authorization: Bearer {MOBILE_API_TOKEN}
Accept: application/json
A missing or wrong token returns 401 and {"message":"Unauthenticated."}. The API allows 60 requests per minute per IP address.
message and errors.
List responses that paginate use ?page=2. Each page has 15 records, inside data, with links and meta.
/api/health
Use this to check that the API process is responding. It does not check the database.
{
"status": "ok"
}
Published articles only: status is published and published_at is not in the future. Image URLs point at the website's public storage.
/api/v1/news
List published articles, newest first. Optional query category is a category slug.
{
"id": 1,
"title": "Cape Coast market",
"slug": "cape-coast-market",
"content": "...",
"featured_image_url": "https://example.com/storage/news/story.jpg",
"author": { "id": 1, "name": "Ama Mensah" },
"category": { "id": 1, "name": "Local", "slug": "local" },
"views": 0,
"tags": ["local"],
"youtube_embed": null,
"published_at": "2026-09-27T10:00:00.000000Z",
"likes_count": 0,
"comments_count": 0
}
/api/v1/news/{id}
One published article. The id is numeric. A draft or scheduled article returns 404.
/api/v1/categories
Active categories. This list is not paginated.
{ "id": 1, "name": "Local", "slug": "local" }
Active episodes only, newest podcast_date first.
/api/v1/podcasts
List active podcasts.
{
"id": 1,
"title": "Morning conversation",
"description": "...",
"thumbnail_url": "https://example.com/storage/podcasts/cover.jpg",
"media_url": "https://example.com/storage/podcasts/audio/episode.mp3",
"podcast_date": "2026-09-27T00:00:00.000000Z"
}
/api/v1/podcasts/{id}
One active podcast. An inactive episode returns 404.
Listed shows only. Optional query day is Monday through Sunday. Any other value returns 422. A show is is_live when today matches its day and the current time is within one hour of its start. Times use the API server clock, which is UTC unless the app timezone is changed. Host email and phone are not included.
/api/v1/programs
Program schedule, ordered by start time.
{
"id": 1,
"name": "Morning Show",
"day": "Wednesday",
"time": "10:00:00",
"is_live": true,
"schedule": {
"id": 1,
"title": "Talk",
"description": "...",
"image_url": "https://example.com/storage/programs/show.jpg",
"host": { "id": 1, "name": "Ama", "host_bio": "..." },
"segments": [{ "id": 1, "name": "News", "time": "10:15:00", "sort": 1 }]
}
}
/api/v1/programs/{id}
One listed program. An unlisted program returns 404.
/api/v1/on-air
Today's programs plus the live stream URL. This response is not paginated.
{
"data": {
"stream_url": "https://a00.w3gradle.com/a21.mp3",
"day": "Wednesday",
"programs": []
}
}
/api/v1/events
Events, latest date first.
{
"id": 1,
"title": "Festival",
"description": "...",
"venue": "Cape Coast",
"thumbnail_url": "https://example.com/storage/events/cover.jpg",
"event_date": "2026-10-05T00:00:00.000000Z",
"event_type": { "id": 1, "name": "Concert" }
}
/api/v1/events/{id}
One event.
/api/v1/event-galleries
Visible gallery items only.
{
"id": 1,
"caption": "Festival",
"media_urls": ["https://example.com/storage/gallery/one.jpg"],
"event": {},
"category": { "id": 1, "name": "Photos" }
}
Current ads only: start_date has begun and end_date has not passed. Optional query page matches the advert page name, such as Home. Owner contact details are not included.
/api/v1/adverts
Ads that are running now.
{
"id": 1,
"media_url": "https://example.com/storage/ads/home.jpg",
"type": "Banner",
"size": { "name": "LH_7_1.5", "width": "728.00", "height": "90.00" },
"placement": "In-Page",
"display": "Banner",
"page": "Home",
"start_date": "2026-09-27T00:00:00.000000Z",
"end_date": "2026-10-27T00:00:00.000000Z"
}
/api/v1/about
Active about sections, ordered by sort_order. This list is not paginated.
{
"id": 1,
"title": "Our story",
"subtitle": "...",
"content": "...",
"image_url": "https://example.com/storage/about/section.jpg",
"section_type": "story",
"sort_order": 1
}
/api/v1/contact
Studio contact details, business hours, and social links.
{
"data": {
"information": {
"phone": "0300000000",
"email": "studio@example.com",
"address_line1": "Cape Coast",
"address_line2": null,
"city": "Cape Coast",
"country": "Ghana"
},
"business_hours": [{
"id": 1,
"day": "Monday",
"opening_time": "08:00:00",
"closing_time": "17:00:00",
"is_closed": false
}],
"social_media": [{
"id": 1,
"platform": "Facebook",
"url": "https://example.com/facebook",
"icon": "ri-facebook-fill"
}]
}
}
These create records. A successful call returns 201 and the created record in data. Send JSON.
/api/v1/subscribers
Newsletter signup. email is required, must be a valid address, and must not already be subscribed. The stored status is subscribed.
{ "email": "listener@example.com" }
/api/v1/contact-messages
Contact form. name is required and at least 3 characters. email and service are required. message is required and at least 10 characters. company is optional. The stored status is new.
{
"name": "Ama Mensah",
"company": "Coastal FM",
"email": "ama@example.com",
"service": "Advertising",
"message": "We would like to advertise on the morning show."
}
/api/v1/partnership-interests
Interest options for the partnership form. Each item is id and name.
/api/v1/partnership-availabilities
Availability options for the partnership form. Each item is id and name.
/api/v1/partnership-opportunities
Partnership opportunities, including the related interest.
{
"id": 1,
"name": "Events",
"description": "...",
"interest": { "id": 1, "name": "Events" }
}
/api/v1/partnership-applications
Partnership application. name is at least 3 characters. email, phone, interest_id, and availability_id are required. interest_id and availability_id must exist. message is at least 10 characters.
{
"name": "Ama Mensah",
"email": "ama@example.com",
"phone": "0240000000",
"interest_id": 1,
"availability_id": 1,
"message": "I can help with weekend events."
}