Giter Site home page Giter Site logo

api's Introduction

API

Overview

Channels

https://iptv-org.github.io/api/channels.json
[
  //...
  {
    "id": "AnhuiTV.cn",
    "name": "Anhui TV",
    "alt_names": ["安徽卫视"],
    "network": "Anhui",
    "owners": ["China Central Television"],
    "country": "CN",
    "subdivision": "CN-AH",
    "city": "Hefei",
    "broadcast_area": ["s/CN-AH"],
    "languages": ["zho"],
    "categories": ["general"],
    "is_nsfw": false,
    "launched": "2016-07-28",
    "closed": "2020-05-31",
    "replaced_by": "CCTV1.cn",
    "website": "http://www.ahtv.cn/",
    "logo": "https://example.com/logo.png"
  }
  //...
]
Field Type Description
id string Unique channel ID
name string Full name of the channel
alt_names array List of alternative channel names
network string or null Name of the network operating the channel
owners array List of channel owners
country string Country code from which the broadcast is transmitted (ISO 3166-1 alpha-2)
subdivision string or null Code of the subdivision (e.g., provinces or states) from which the broadcast is transmitted (ISO 3166-2)
city string or null Name of the city from which the broadcast is transmitted
broadcast_area array List of codes describing the broadcasting area (r/<region_code>, c/<country_code>, s/<subdivision_code>)
languages array List of languages broadcast
categories array List of categories to which this channel belongs
is_nsfw boolean Indicates whether the channel broadcasts adult content
launched string or null Launch date of the channel (YYYY-MM-DD)
closed string or null Date on which the channel closed (YYYY-MM-DD)
replaced_by string or null The ID of the channel that this channel was replaced by
website string or null Official website URL
logo string Logo URL

Source of data: https://github.com/iptv-org/database

Streams

https://iptv-org.github.io/api/streams.json
[
  //...
  {
    "channel": "BBCNews.uk",
    "url": "http://1111296894.rsc.cdn77.org/LS-ATL-54548-6/index.m3u8",
    "timeshift": "2",
    "http_referrer": "http://example.com/",
    "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
  }
  //...
]
Field Type Description
channel string Channel ID
url string Stream URL
timeshift string or null Indicates the shift of the program schedule
http_referrer string or null The Referer request header for the stream
user_agent string or null The User-Agent request header for the stream

Source of data: https://github.com/iptv-org/iptv

Guides

https://iptv-org.github.io/api/guides.json
[
  //...
  {
    "channel": "BBCNews.uk",
    "site": "bt.com",
    "site_id": "hsx4",
    "site_name": "BBC News",
    "lang": "en"
  }
  //...
]
Field Type Description
channel string or null Channel ID
site string Site domain name
site_id string Unique channel ID used on the site
site_name string Channel name used on the site
lang string Language of the guide (ISO 639-1 code)

Source of data: https://github.com/iptv-org/epg

Categories

https://iptv-org.github.io/api/categories.json
[
  //...
  {
    "id": "documentary",
    "name": "Documentary"
  }
  //...
]
Field Type Description
id string Category ID
name string Name of the category

Source of data: https://github.com/iptv-org/database

Languages

https://iptv-org.github.io/api/languages.json
[
  //...
  {
    "name": "French",
    "code": "fra"
  }
  //...
]
Field Type Description
name string Language name
code string ISO 639-3 code of the language

Source of data: https://github.com/iptv-org/database

Countries

https://iptv-org.github.io/api/countries.json
[
  //...
  {
    "name": "Canada",
    "code": "CA",
    "languages": ["eng", "fra"],
    "flag": "🇨🇦"
  }
  //...
]
Field Type Description
name string Name of the country
code string ISO 3166-1 alpha-2 code of the country
languages array List of official languages of the country (ISO 639-3 code)
flag string Country flag emoji

Source of data: https://github.com/iptv-org/database

Subdivisions

https://iptv-org.github.io/api/subdivisions.json
[
  //...
  {
    "country": "CA",
    "name": "Ontario",
    "code": "CA-ON"
  }
  //...
]
Field Type Description
country string ISO 3166-1 alpha-2 code of the country
name string Subdivision name
code string ISO 3166-2 code of the subdivision

Source of data: https://github.com/iptv-org/database

Regions

https://iptv-org.github.io/api/regions.json
[
  //...
  {
    "code": "MAGHREB",
    "name": "Maghreb",
    "countries": ["DZ", "LY", "MA", "MR", "TN"]
  }
  //...
]
Field Type Description
code string Code of the region
name string Full name of the region
countries array List of countries in the region

Source of data: https://github.com/iptv-org/database

Blocklist

https://iptv-org.github.io/api/blocklist.json
[
  //...
  {
    "channel": "AnimalPlanetEast.us",
    "ref": "https://github.com/iptv-org/iptv/issues/1831"
  }
  //...
]
Field Type Description
channel string Channel ID
ref string Link to removal request or DMCA takedown notice

Source of data: https://github.com/iptv-org/database

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting an issue or a pull request.

api's People

Contributors

amynkvirani avatar freearhey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api's Issues

Return additional guide info?

I am trying to build something similar to the table you have on the epg page here.
It would be nice if I could do something with the API rather than scraping the readme.
Is/would something like this be possible?

Thanks,
Chris

EDIT: I could parse the guide URLs and reference that against the country codes response, but maybe that's not ideal for getting and sorting sites by countries?

Get specific country

Is there a way for the api to fetch information only from a specific country?

IPTV-Org parser

I took notice that while there are nearly 10,000 channels/playlists, alot of them do not work.

I've been tinkering with automated ways to parse such things using my own parser im creating in php

https://kaos-inc.ga/dev/IPTV-Org%20Stations%20Parser

This page accomplishes the following automatically on load:

  1. Parses the json from the api streams.json
  2. Gives each Playlist/Channel a Channel Number (Automatically, if iptv-org list updates, this page does, too.)
  3. Displays the outputs in the corresponding areas AND formats each channel for use in Kodi using this format:
    {"title":"CH (channel number). (Channel Name)", "url":"(channel URL)", "image":"None"}

The TOP left side is a list of all Named M3U8 Channels
The TOP right side is a list of all the UnNamed M3U8 Channels
//------//------//------//------//------//------//------//------//------//------//------//------//
The BOTTOM left side is a list of all Named Non-M3U8 channels
The BOTTOM right side is a list of all UnNamed Non-M3U8 channels

It also lets you one-click copy each content area individually, 8000+ lines of channels would be kind of annoying to manually select/copy, right?

The parser does not currently filter the unworking channels yet, but I plan to add that feature into it. I was messing around with that on another script but the method i used is flawed because it only filters a maximum of 200 results, out of nearly 10,000.

"channel":null

Hi everybody,
I see when I perform a https://iptv-org.github.io/api/streams.json
there are thousand of "channel":null but I think all the channels should be have a name and a corrispondence with "id" on channels.json.
Is it correct or I don't understand how the API works
Thank You
Best Regards
Marco

Is there going to be a fix for the iptv removal?

I need the counties & category m3u for the latest iptv.org list.

is this going to be fixed and usable again?

In the mean time, Is there any way you could provide me with the latest
countries & categories m3u list
with the EPG if possible please?

Cheers! ;D

Request to add country in streams API

Streams json api outputs:

{"channel":"1001Noites.br","url":"https://cdn.jmvstream.com/w/LVW-8155/ngrp:LVW8155_41E1ciuCvO_all/playlist.m3u8","http_referrer":null,"user_agent":null,"status":"timeout","width":1280,"height":720,"bitrate":1601536,"frame_rate":29.97,"added_at":"2022-08-13T04:41:45Z","updated_at":"2023-01-01T01:33:07Z","checked_at":"2023-01-01T01:33:07Z"},

requesting to add a tag based on country origin to this like so:

{"channel":"1001Noites.br","country":"BR", "url":"https://cdn.jmvstream.com/w/LVW-8155/ngrp:LVW8155_41E1ciuCvO_all/playlist.m3u8","http_referrer":null,"user_agent":null,"status":"timeout","width":1280,"height":720,"bitrate":1601536,"frame_rate":29.97,"added_at":"2022-08-13T04:41:45Z","updated_at":"2023-01-01T01:33:07Z","checked_at":"2023-01-01T01:33:07Z"},

tag "country":"BR" for Brazil, US for USA, etc.

Created a parser of sorts to parse the streams, would like to parse only US results.

Here is the link to my parser: https://kaos-inc.ga/dev/streams

As you can see, they are output for use with a Kodi addon I'm overhauling, the named channels are sorted and counted on the left and the unnamed channels are sorted/counted on the right.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.