GithubHelp home page GithubHelp logo

newbie-hue / tiktok-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kingking888/tiktok-api

0.0 0.0 0.0 23 KB

An API that allows you to get full information about TikTok videos

Python 100.00%

tiktok-api's Introduction

TikTok-API

An API that allows you to get full information about TikTok videos without using any third party sources and only the TikTok API.

This API was last tested and worked on Dec 1, 2021.

(This API is free and open-source, no paying or getting tokens is required)

More

V0.0.9 for Python 3.x.x

This API uses the script from here: https://github.com/frogc0de/TikTok-Algorithm

This API requires the requests lib https://docs.python-requests.org/en/latest/

Usage

(I will provide a better documentation later)

First step would be to obtain a url the tiktok application sends to get/post to it's api.

The url should contain things like device parameters and account id's.

To obtain the dictionary of needed parameters use: getDeviceParams("The url")

To set the API parameters use: setDeviceParams(theDictionary)

After this is done use getVideoByUrl("Tiktok video url") or getVideoById("Tiktok video id") to get the information about the video

The information contains the following: Unwatermarked video url, watermarked video url, music info, avatars, covers, author info, video statistics and etc.

If you are unable to extract the needed parameters from your account use the parameters located in the sampleParams file, they currently work, but may stop working at any time which is why it is recommended to use your own account for this. Usage: .deviceParamsQuery="Sample params"

Example replit: https://replit.com/@FrogCode/TikTokAPI

tiktok-api's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.