title: how to get video id from tiktok video url
body: <p>i am using two function for get the url or video play
  1. for extract the tiktok for video with watermark</p>
  
  <pre><code>public function getDetails()
  {
      $url = $this-&gt;url;
      $resp = $this-&gt;getContent($url);
      $check = explode("\"contentUrl\":\"", $resp);
      if (count($check) &gt; 1) {
          $video = explode("\"", $check[1])[0];
          $videoWithoutWaterMark = $this-&gt;WithoutWatermark($url);
          $thumb = explode("\"", explode("\"thumbnailUrl\":[\"", $resp)[1])[0];
          $username = explode("/", explode("@", explode("\"", explode("\"url\":\"", $resp)[1])[0])[1])[0];
  
          $result = [
              'video'=&gt;$video,
              'withoutWaterMark'=&gt;$videoWithoutWaterMark,
              'user'=&gt;$username,
              'thumb'=&gt;$thumb,
              'error'=&gt;false,
              'message'=&gt;false
          ];
      }
      else
      {
          $result = [
              'video'=&gt;false,
              'withoutWaterMark'=&gt;false,
              'user'=&gt;false,
              'thumb'=&gt;false,
              'error'=&gt;true,
              'message'=&gt;"Please double check your url and try again."
          ];
      }
  
      return $result;
  
  }
  
  
  private function cUrl($url)
  {
      $user_agent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36';
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
      curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
      $result = curl_exec($ch);
      curl_close($ch);
      return $result;
  
  }
  </code></pre>
  
  <p>and another function for get the video url without water mark is</p>
  
  <pre><code>private function WithoutWatermark($url)
  {
      //videi id for example 6795008547961752326
      $dd = explode("video/",$url);
      $url = "https://api2.musical.ly/aweme/v1/playwm/?video_id=".$dd[1];
      return $url;
  }
  </code></pre>
  
  <p>Please help me to find tiktok video id, or any way to create download link of video without watermark. how can i find the video id of the video so i will use this video id for create a download link " <a href="https://api2.musical.ly/aweme/v1/playwm/?video_id=v09044b90000bpfdj5q91d8vtcnie6o0" rel="nofollow noreferrer">https://api2.musical.ly/aweme/v1/playwm/?video_id=v09044b90000bpfdj5q91d8vtcnie6o0</a>";</p>