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

parkpana-tiktok-scraper

v1.0.0

Published

TikTok Scraper & Downloader — scoped fork maintained by @parkpana. Scrape user/hashtag/trend/music feeds and download videos.

Readme

@parkpana/tiktok-scraper

npm version Node.js

TikTok Scraper & Downloader — modernised fork of tiktok-scraper maintained by @parkpana.

Supports Node.js 18+, uses got (instead of the deprecated request) and modern TypeScript 5.


Install

npm install @parkpana/tiktok-scraper
# or
yarn add @parkpana/tiktok-scraper

Quick start (API)

const scraper = require('@parkpana/tiktok-scraper');

// Scrape user posts
const result = await scraper.user('tiktok', { number: 30 });
console.log(result.collector);

// Scrape hashtag
const posts = await scraper.hashtag('summer', { number: 50 });

// Download single video
await scraper.video('https://www.tiktok.com/@tiktok/video/1234567890', {
  download: true,
  filepath: './downloads',
});

Event-based scraping

const users = scraper.userEvent('tiktok', { number: 30 });
users.on('data', json => console.log(json));
users.on('done', () => console.log('Done'));
users.on('error', err => console.error(err));
users.scrape();

Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | number | number | 30 | Posts to scrape | | download | boolean | false | Download video files | | filepath | string | '' | Save path | | filetype | 'json'\|'csv'\|'all' | '' | Output file format | | proxy | string\|string[] | '' | HTTP or SOCKS proxy | | sessionList | string[] | [] | TikTok session cookies (sid_tt=...) | | noWaterMark | boolean | false | Remove watermark | | asyncDownload | number | 5 | Concurrent downloads | | timeout | number | 0 | Delay between requests (ms) |

CLI

npx @parkpana/tiktok-scraper user USERNAME -n 30 -t json
npx @parkpana/tiktok-scraper hashtag HASHTAG -n 50 -d

Changes from original

  • request / request-promise replaced with got (v11, LTS compatible)
  • json2csv replaced with @json2csv/plainjs (v7)
  • CookieJar moved from request to tough-cookie
  • TypeScript 5 + ES2022 target
  • Node.js 18+ minimum
  • Scoped package: @parkpana/tiktok-scraper

License

MIT