TV Schedule
This API provides a complete daily schedule of TV broadcasts for a specific country. If no date or country is provided, it defaults to today in the US.
Endpoint
Section titled “Endpoint” POST
/api/v1/tv/schedule Request Parameters
Section titled “Request Parameters”The following parameters are accepted in the request body:
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
country | string | Optional | ISO country code. Defaults to US. | GB |
date | string | Optional | Date in YYYY-MM-DD format. Defaults to today. | 2026-05-29 |
Request Examples
Section titled “Request Examples”curl -X POST https://heavstal.com.ng/api/v1/tv/schedule \-H "Content-Type: application/json" \-H "x-api-key: <YOUR_API_KEY>" \-d '{"country": "US", "date": "2026-05-29"}'const response = await fetch('https://heavstal.com.ng/api/v1/tv/schedule', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': '<YOUR_API_KEY>' }, body: JSON.stringify({ country: "US", date: "2026-05-29" })});
const res = await response.json();console.log(`Found ${res.data.count} shows airing.`);import { tv } from '@heavstal/api';
// Get schedule for Great Britain for todayconst schedule = await tv.schedule("GB");console.log(schedule.schedule[0].show);import requests
url = "https://heavstal.com.ng/api/v1/tv/schedule"headers = { "Content-Type": "application/json", "x-api-key": "<YOUR_API_KEY>"}payload = { "country": "US"}
response = requests.post(url, headers=headers, json=payload)print(response.json()["data"]["schedule"][0]["show"])Response Examples
Section titled “Response Examples”{ "status": "success", "creator": "HEAVSTAL TECH", "cached": false, "cache_ttl": 3600, "data": { "country": "US", "date": "2026-05-29", "count": 1, "schedule": [ { "id": 1234, "show": "The Tonight Show", "episode_name": "Special Guest Star", "season": 12, "number": 45, "channel": "NBC", "time": "23:35", "runtime": 60 } ] }}{ "error": "Failed to fetch TV schedule", "details": "Invalid country code."}