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

zynn-scraper

v0.0.9

Published

A simple scraping library for TikTok, Instagram, and more.

Readme

zynn-scraper

zynn-scraper adalah library Node.js sederhana untuk scraping data dari platform populer seperti TikTok. Mendukung download video, metadata, dan lainnya.


Install

npm install zynn-scraper

Fitur

  • Download video TikTok tanpa watermark
  • Ambil data video: judul, views, likes, dan lainnya
  • Format hasil sudah rapi dan siap pakai

Contoh Penggunaan

const zynn = require('zynn-scraper');

(async () => {
  try {
    const url = 'https://www.tiktok.com/@username/video/1234567890';
    const data = await zynn.tiktok(url);
    
    console.log(data.result.title);            // Judul video
    console.log(data.result.stats.views);      // Jumlah view
    console.log(data.result.video.nowatermark_hd); // Link video HD
  } catch (err) {
    console.error(err.message);
  }
})();
const { ttsearch } = require('zynn-scraper');

(async () => {
  const hasil = await ttsearch('kucing');
  if (hasil.status) {
    const firstVideo = hasil.result.videos[0];
    console.log('Judul musik:', firstVideo.music_info.title);
    console.log('Author musik:', firstVideo.music_info.author);
    console.log('Durasi musik:', firstVideo.music_info.duration, 'detik');
    console.log('URL musik:', firstVideo.music_info.play);
  } else {
    console.log('Error:', hasil.message);
  }
})();

Struktur Data Hasil Tiktok

{
  "status": true,
  "creator": "Kyy",
  "type": "video",
  "result": {
    "id": "1234567890",
    "title": "Contoh video TikTok",
    "region": "ID",
    "taken_at": "Sabtu, 11 Mei 2024 12.34.56",
    "cover": "https://cover-image-url",
    "music_info": {
      "id": "1234",
      "title": "Lagu TikTok",
      "author": "Penyanyi",
      "album": null,
      "url": "https://music-url"
    },
    "stats": {
      "views": "1.234",
      "likes": "567",
      "comment": "89",
      "share": "10",
      "download": "200"
    },
    "author": {
      "id": "user123",
      "fullname": "user123",
      "nickname": "nickname",
      "avatar": "https://avatar-url"
    },
    "duration": "15 Seconds",
    "video": {
      "watermark": "https://watermark-url",
      "nowatermark": "https://nowatermark-url",
      "nowatermark_hd": "https://hd-url"
    }
  }
}

Struktur Data Hasil Instagram

{
  "status": true,
  "creator": "Kyy",
  "type": "video",
  "result": {
    "video": "https://dl.snapcdn.app/get?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJodHRwczovL2luc3RhZ3JhbS5maGFuMTUtMS5mbmEuZmJjZG4ubmV0L28xL3YvdDE2L2YyL204Ni9BUU50T3JrN0gxSFZmNXhPTmpVWmR3R0pVMmtnbllBbXA5U0Q2aVg5Vk0yRW55MVF0UjRsdFFOTWpEVm5KWktKa053czJzaGc5NkczM0VadGJrQ01OckxIa0hISkxqX2dxMEZ2WXlVLm1wND9zdHA9ZHN0LW1wNCZlZmc9ZXlKeFpWOW5jbTkxY0hNaU9pSmJYQ0pwWjE5M1pXSmZaR1ZzYVhabGNubGZkblJ6WDI5MFpsd2lYU0lzSW5abGJtTnZaR1ZmZEdGbklqb2lkblJ6WDNadlpGOTFjbXhuWlc0dVkyeHBjSE11WXpJdU56SXdMbUpoYzJWc2FXNWxJbjAmX25jX2NhdD0xMDEmdnM9MTE3NzIxMDM1NDEwNTM0OV8zMTA5MTI2ODg2Jl9uY192cz1IQmtzRlFJWVVtbG5YM2h3ZGw5eVpXVnNjMTl3WlhKdFlXNWxiblJmYzNKZmNISnZaQzh3TVRReU1rRXdRekkxUWtaQ09EUXhOek0xT0RZNFJEVXdSVUkzTnprNU1GOTJhV1JsYjE5a1lYTm9hVzVwZEM1dGNEUVZBQUxJQVFBVkFoZzZjR0Z6YzNSb2NtOTFaMmhmWlhabGNuTjBiM0psTDBkUE5EVk5Rak0xYm5aNVdrbHNSVU5CUVhsVVpuSkxiMDVNY0RGaWNWOUZRVUZCUmhVQ0FzZ0JBQ2dBR0FBYkFCVUFBQ2FxdGFEQnNjallQeFVDS0FKRE15d1hRRVBtWm1abVptWVlFbVJoYzJoZlltRnpaV3hwYm1WZk1WOTJNUkVBZGY0SFplYWRBUUElM0QmX25jX3JpZD02ZWVhODg0YWI5JmNjYj05LTQmb2g9MDBfQWZJY3lSazMxTHpGV2NEUEhHWkdlZ0U3cFJmTzF0T0dGdF9zZGZrNnM5QkppZyZvZT02ODJCM0VCRCZfbmNfc2lkPTEwZDEzYiIsImZpbGVuYW1lIjoiWVQxcy5pb19BUU50T3JrN0gxSFZmNXhPTmpVWmR3R0pVMmtnbllBbXA5U0Q2aVg5Vk0yRW55MVF0UjRsdFFOTWpEVm5KWktKa053czJzaGc5NkczM0VadGJrQ01OckxIa0hISkxqX2dxMEZ2WXlVLm1wNCIsIm5iZiI6MTc0NzU0MjAwOSwiZXhwIjoxNzQ3NTQ1NjA5LCJpYXQiOjE3NDc1NDIwMDl9.7sK-S8zdk9n0ggni85edWs7N82TrKJ9v4cKs_fhEXWc"
  }
}

Struktur Data Hasil Tiktok Search

{
  "status": true,
  "creator": "Kyy",
  "result": {
    "videos": [
      {
        "video_id": "7478520907661692168",
        "region": "US",
        "title": "We are hungry#fyp #kucing #PetsOfTikTok #meow #funnyvideos #cutecat #catsoftiktok #catlover #kitty #cats #cute #funny ",
        "duration": 9,
        "cover": "https://tikwm.com/video/cover/7478520907661692168.webp",
        "video_no_watermark": "https://tikwm.com/video/media/play/7478520907661692168.mp4",
        "video_with_watermark": "https://tikwm.com/video/media/wmplay/7478520907661692168.mp4",
        "size": 1633736,
        "wm_size": 1712981,
        "music": "https://tikwm.com/video/music/7478520907661692168.mp3",
        "music_info": {
          "id": "7478520959458102017",
          "title": "original sound - sr_kittyyyy",
          "play": "https://sf16-ies-music-sg.tiktokcdn.com/obj/tiktok-obj/7478520936283523857.mp3",
          "author": "freedom",
          "original": true,
          "duration": 9,
          "album": ""
        },
        "play_count": 6251309,
        "digg_count": 257650,
        "comment_count": 3749,
        "share_count": 40312,
        "download_count": 18495,
        "create_time": 1741228843,
        "author": {
          "id": "7434904927425692728",
          "unique_id": "sr_kittyyyy",
          "nickname": "freedom",
          "avatar": "https://tikwm.com/video/avatar/7478520907661692168.jpeg"
        },
        "is_ad": false
      }
    ]
  }
}

Fitur New

  • Pencarian TikTok (ttsearch)
  • Download Instagram

Rencana Fitur Mendatang

  • Download dari Instagram
  • Pencarian TikTok (ttsearch)
  • Youtube downloader
  • Gemini Ai

Gabung Grup WhatsApp

Ingin diskusi atau lapor bug? Gabung ke grup WA komunitas kami:


Lisensi

MIT © Kyy