Skip to content

NirTatcher/nirs-tiktok-metrics-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors