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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ionic-tiktok-scraper

v1.0.1

Published

Get TikTok posts and reels without API or Cookie key in ionic apps

Readme

ionic-tiktok-scraper: Ionic

A lightweight library to search TikTok videos, fetch user details, and download media, built for Ionic and Cordova environments with native HTTP support.


🚀 Features

  • 🔍 Search TikTok videos by URL (retry included)
  • 🎵 Fetch music info including audio URL and cover images
  • 📥 Use Urls for TikTok videos download (with and without watermark)
  • 🖼️ Fetch images / photo posts from TikTok
  • ⚡ Works with Ionic / Cordova native HTTP plugin
  • 🛠️ Returns media in structured format

Table of contents:


Quickstart

📦 Installation

ionic cordova plugin add cordova-plugin-advanced-http
npm install ionic-tiktok-scraper --save

Using the library

import Tiktok from 'ionic-tiktok-scraper;

const tiktokUrl = 'https://vm.tiktok.com/ZNHChcc/';

try {
  const result = await Tiktok(tiktokUrl, {
      parse: true,
  })
 console.log(result);
} catch (err) {
  if (e.status === 429){
    // handle rate limit issue
  }
  console.error('Error fetching TikTok video:', err);
}

{
  "id": "7540333526",
  "username": "perninsenn",
  "name": "pni",
  "createdAt": 1755622934,
  "profilePicture": "https://p16-sign-va.tiktokcdn.com/tos-3a6be05f1d551aa1~tplv-tiktokx-cropcenter:720:720.webp",
  "media": [
    {
      "id": "75403108533526",
      "original_width": 1080,
      "original_height": 1920,
      "caption": "#clash #clashroyale #fyp",
      "thumbnail": "https://p16-pu-sign-no.tiktokcdn-eu.com/...jpeg",
      "type": "video",
      "url": "https://v16m-default.tiktokcdn.com/...video.mp4",
      "mimetype": "video/mp4",
      "has_audio": true,
      "video_duration": 8.08,
      "audio_url": "https://sf77-ies-music-va.tiktokcdn.com/...mp3",
      "wm_url": "https://v16m.byteicdn.com/...video.mp4"
    }
  ],
  "music_info": {
    "id": 70216776000,
    "title": "Clash royale opening music",
    "author": "dathan",
    "album": "",
    "audio_url": "https://sf77-ies-music-va.tiktokcdn.com/...mp3",
    "cover_large": [
      "https://p16-sign-va.tiktokcdn.com/...jpeg"
    ]
  }
}

Additional Response Fields

You can fetch only specific fields from the TikTok video by passing a keys array while keeping parsing enabled (parse: true

import Tiktok from 'ionic-tiktok-scraper';

const tiktokUrl = 'https://www.tiktok.com/@shot/video/7539590113288?_r=1&_t=ZN-8z8m3Qj3X5a';

try {
  const result = await Tiktok(tiktokUrl, {
    parse: true,
    keys: ['desc', 'duration', 'author']
  })
  console.log(result);
} catch (err) {
  if (err.status === 429){
    // handle rate limit issue
  }
  console.error('Error fetching TikTok video:', err);
}

Raw TikTok API data without parsing

import Tiktok from 'ionic-tiktok-scraper';

const tiktokUrl = 'https://vm.tiktok.com/ZN2hcc/';

try {
  const result = await Tiktok(tiktokUrl, {
      parse: false
  })
 console.log(result);
} catch (err) {
  if (err.status === 429){
    // handle rate limit issue
  }
  console.error('Error fetching TikTok video:', err);
}

License

Apache Version 2.0

See LICENSE