Skip to content

Loukious/StreamLabsTikTokStreamKeyGenerator

Repository files navigation

TikTok Live Stream Key Generator for OBS Studio Using Streamlabs API

Description

This application is a simple tool that generates a TikTok Live Stream Key for OBS Studio using the Streamlabs API. Streamlabs TikTok LIVE access is required.

"Buy Me A Coffee"

Features

  • Generate TikTok Live Stream Key using Streamlabs API

Requirements

  • Streamlabs TikTok LIVE access. You can request access here
  • TikTok account
  • Streamlabs installed on your computer and you are logged in with your TikTok account in Streamlabs (optional)

Download

  • Download the latest release from here

Usage

  1. Run the application.

  2. click on the "Load token" button.

    1. If you have Streamlabs installed on your computer and you are logged in with your TikTok account in Streamlabs, the application will automatically load the token.
    2. If you don't have Streamlabs installed on your computer or you are not logged in with your TikTok account in Streamlabs, you will need to login with your TikTok account in the browser that will open.
    3. If automatic login fails (common on Linux), you must manually export your TikTok cookies (see below) and then click "Load from Web".
  3. Select stream title and category.

  4. Click on "Save Config" button to save the token, title and category.

  5. Click on the "Go Live" button.

Manual Cookie Export (Required if automatic login fails)

If the token cannot be loaded automatically (for example, due to Selenium detection, cookie loading issues, or request timeouts), follow these steps:

Install a browser extension that allows exporting cookies in JSON format, such as mentioned in FAQ

  1. Open TikTok in your browser and log in.
  2. While on tiktok.com, export your cookies using the extension.
  3. Save the exported file as cookies.json.
  4. Place cookies.json in the same directory as the application.
  5. Launch the app and click "Load from Web".

With manually exported cookies, the application can successfully authenticate with Streamlabs and retrieve the token.

Screenshots

Screenshot

Output

The script will output:

  • Base stream URL: The URL needed to connect to the TikTok live stream.
  • Stream key for OBS Studio (or any other streaming app): Stream key that that you can use in OBS Studio to stream to TikTok.

Checkout my OBS-Multi-RTMP plugin fork!

With this plugin, you can use your streamlabs token to stream directly to TikTok by saving it only once.

FAQ

I'm getting you You can't open the application "***" because it may be damaged or incomplete error on MacOS. What should I do?

I don't own a Mac so I can't test the app on MacOS but you can try the following:

  1. Open Terminal.
  2. Run the following command: xattr -dr com.apple.quarantine /path/to/the/StreamLabsTikTokStreamKeyGenerator.app (replace /path/to/the/StreamLabsTikTokStreamKeyGenerator.app with the path to the app).
  3. Try to run the app again.

I'm getting a Maximum number of attempts reached. Try again later. error. What should I do?

This error sometimes occurs when TikTok detects selenium. You can use this extension to export your cookies and import them into the script.

  1. Start by installing the above extension in your browser.
  2. Log into TikTok in the browser (if not already logged in), then export the cookies using the extension (while being on TikTok's website).
  3. After that, place the file in the same directory as the script and rename it to cookies.json then start the app.

Do I need to have 1k followers to get Streamlabs TikTok LIVE access?

No, you can request access even if you have less than 1k followers.

The app cannot retrieve the token and times out. What should I do?

This is typically caused by cookies not being properly loaded automatically. Use the manual cookie export method described above and then click "Load from Web".

About

TikTok Live Stream Key Generator for OBS Studio using Streamlabs API

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

 
 
 

Contributors

Languages