List networks
TV networks and streaming services, by country, with their ids.
Free key and every planLive data
GEThttps://api.tvguideapi.com/v1/networks
Try itRuns the real call with your key
200 OK
Parameters
| Parameter | In | Type | Required | Description | Example |
|---|---|---|---|---|---|
| country | query | string | optional | A country code. | 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/networks"
$ch = curl_init("https://api.tvguideapi.com/v1/networks");
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/networks", {
headers: { Authorization: `Bearer ${process.env.TVG_KEY}` },
});
const { data, meta } = await r.json();
import os, requests
r = requests.get(
"https://api.tvguideapi.com/v1/networks",
headers={"Authorization": f"Bearer {os.environ['TVG_KEY']}"},
)
data = r.json()["data"]
Sample response
{
"data": [
{
"id": "nw_2szm9pm5",
"name": "BBC One",
"country": "GB",
"kind": "network"
}
],
"meta": {
"count": 400,
"next": "c_8f21a0",
"took_ms": 41
}
}