A country's channels
Every TV channel in one country, ordered the way its own guides list them, with ids, names, logos and categories.
Free key and every planLive data
GEThttps://api.tvguideapi.com/v1/countries/{cc}/channels
Try itRuns the real call with your key
200 OK
Parameters
| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| cc | path | string | required | Country code, ISO 3166-1 alpha-2. | GB |
| limit | query | integer | optional | Page size, 1 to 500. Defaults to 100. | 100 |
| cursor | query | string | optional | The cursor from the previous answer's meta.next. See Paging and fields. |
Request
curl -H "Authorization: Bearer $TVG_KEY" \ "https://api.tvguideapi.com/v1/countries/GB/channels"
$ch = curl_init("https://api.tvguideapi.com/v1/countries/GB/channels");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TVG_KEY")],
]);
$answer = json_decode(curl_exec($ch), true);
const r = await fetch("https://api.tvguideapi.com/v1/countries/GB/channels", {
headers: { Authorization: `Bearer ${process.env.TVG_KEY}` },
});
const { data, meta } = await r.json();
import os, requests
r = requests.get(
"https://api.tvguideapi.com/v1/countries/GB/channels",
headers={"Authorization": f"Bearer {os.environ['TVG_KEY']}"},
)
data = r.json()["data"]
Sample response
{
"data": [
{
"id": "ch_jw83a3xg",
"name": "BBC One",
"country": "GB",
"languages": [
"eng"
],
"categories": [
"general"
],
"owner": "BBC",
"launched": 1936,
"website": "https://www.bbc.co.uk/bbcone",
"feeds": 3
}
],
"meta": {
"count": 612,
"next": "c_8f21a0",
"took_ms": 41
}
}