npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

untiktok-api

v1.4.0

Published

Unofficial TikTok API wrapper in TypeScript (ported from Python)

Readme

UnTikTok-Api

An unofficial TikTok API wrapper in TypeScript, originally ported from the TikTok-Api Python library.

Disclaimer: This project is not affiliated with, endorsed by, or connected to TikTok, ByteDance, or the original author of the Python TikTok-Api. It is an independent, open-source TypeScript port designed for integration into Node.js applications and AI tools.

NPM Version TypeScript Playwright Node.js


Table of Contents


Features

This API allows you to extract and automate interactions with TikTok data without requiring an official developer API key. It achieves this by using Playwright and stealth scripts to interface directly with TikTok's web endpoints.

Capabilities include:

  • Trending Feeds: Fetch the most viral and trending videos on the platform.
  • User Profiles: Retrieve a user's uploaded videos, liked videos, favorited videos, reposted videos, pinned videos, followers/following lists, profile information, and live stream status.
  • Hashtags: Fetch videos under specific hashtags.
  • Search: Search for specific users or videos by keyword.
  • Comments: Extract comments and replies from specific videos, including support for TikTok Stickers.
  • Sounds/Music: Retrieve videos associated with a specific audio track or sound.
  • Downloads: Download raw video bytes (without watermarks) and audio streams directly.

Installation

Install the package directly from NPM:

npm install untiktok-api

Since this wrapper relies on Playwright to interface with TikTok, you must also install the required Playwright browsers (specifically Chromium):

npx playwright install chromium

Building from Source

If you want to contribute, modify, or build the project locally:

git clone https://github.com/AlGhozaliRamadhan/UnTikTok-Api.git
cd UnTikTok-Api
npm install
npm run build

Quick Start

Looking to get started immediately? Check out the Quick Start Guide.


API Reference

For a full list of classes, methods, and constructor options, check out the API Reference.


Examples & Guides

For detailed examples and tutorials on how to use specific features, check out the dedicated guides in the docs/ folder: