nirs-tiktok-metrics-api

2.0.0 • Public • Published

nirs-tiktok-metrics-api

Get public data from tiktok videos and authors
  • Get author metrics such as likes, followers etc.
  • Get video metrics such as likes, shares, comments etc.

Installation

npm install nirs-tiktok-metrics-api

Usage

Get author

const tiktok = require('nirs-tiktok-metrics-api');

tiktok.author('author_name')
.then(authorStats=>console.log(authorStats));

Get video

const tiktok = require('nirs-tiktok-metrics-api');

tiktok.video('author_name','video_id')
.then(videoStats=>console.log(videoStats));

Examples

Get author response

{
  message: "{'followerCount': 1400000, 'followingCount': 246, 'heart': 47800000, 'heartCount': 47800000, 'videoCount': 1276, 'diggCount': 6632}",
  status: 200
}

Get video response

{
  message: "{'diggCount': 16500, 'shareCount': 36, 'commentCount': 161, 'playCount': 199500}",
  status: 200
}

NOTE: The package relies on fetch calls to my tiktok api app hosted on heroku (currently a private repo)

Readme

Keywords

Package Sidebar

Install

npm i nirs-tiktok-metrics-api

Weekly Downloads

7

Version

2.0.0

License

ISC

Unpacked Size

2.57 kB

Total Files

3

Last publish

Collaborators

  • nirto111