Get ID from current Live

Hi, how to get ID from current Live? Twitch use only the channel name when is Live. I want save the link of each Live.

Get what ID for what current live.

Not sure what you are trying to get the link of here

Live Youtube example: https://www.youtube.com/watch?v=pZsBkGURsIc
Live Twitch example: https://www.twitch.tv/esl_csgo

I have the ID pZsBkGURsIc and Twitch I can to get only channel name from URL.

I need embed the Live in my site and automatically to save for watch in another hour. Not is possible without the ID.

Embedding Twitch is documented here:

It only requires the channel name esl_csgo in this example.

<html>
  <body>
    <!-- Add a placeholder for the Twitch embed -->
    <div id="twitch-embed"></div>

    <!-- Load the Twitch embed script -->
    <script src="https://embed.twitch.tv/embed/v1.js"></script>

    <!-- Create a Twitch.Embed object that will render within the "twitch-embed" root element. -->
    <script type="text/javascript">
      new Twitch.Embed("twitch-embed", {
        width: 854,
        height: 480,
        channel: "esl_csgo"
      });
    </script>
  </body>
</html>

I looked that, but I need to archive the Live.
I have a database with all Lives of my users from Youtube. The user need to inform URL only.

The Videos API is documented here

or if v5 is your thing

broadcast_type = archive

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.