All Projects → davidteather → Tiktok Api

davidteather / Tiktok Api

Licence: mit
The Unofficial TikTok API Wrapper In Python

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Tiktok Api

Javacord
An easy to use multithreaded library for creating Discord bots in Java.
Stars: ✭ 368 (-60.85%)
Mutual labels:  api, hacktoberfest
Goa
Design-based APIs and microservices in Go
Stars: ✭ 4,493 (+377.98%)
Mutual labels:  api, hacktoberfest
Villus
🏎 A tiny and fast GraphQL client for Vue.js
Stars: ✭ 378 (-59.79%)
Mutual labels:  api, hacktoberfest
Loopback Next
LoopBack makes it easy to build modern API applications that require complex integrations.
Stars: ✭ 3,972 (+322.55%)
Mutual labels:  api, hacktoberfest
Ftl
The Pi-hole FTL engine
Stars: ✭ 776 (-17.45%)
Mutual labels:  api, hacktoberfest
Wp Graphql Acf
WPGraphQL for Advanced Custom Fields
Stars: ✭ 358 (-61.91%)
Mutual labels:  api, hacktoberfest
Ola
The Open Lighting Architecture - The Travel Adaptor for the Lighting Industry
Stars: ✭ 424 (-54.89%)
Mutual labels:  api, hacktoberfest
Vulcain
Fast and idiomatic client-driven REST APIs.
Stars: ✭ 3,190 (+239.36%)
Mutual labels:  api, hacktoberfest
Kroki
Creates diagrams from textual descriptions!
Stars: ✭ 774 (-17.66%)
Mutual labels:  api, hacktoberfest
Stein
Use Google Sheets as your no-setup database
Stars: ✭ 726 (-22.77%)
Mutual labels:  api, hacktoberfest
Askql
AskQL is a query language that can express any data request
Stars: ✭ 352 (-62.55%)
Mutual labels:  api, hacktoberfest
Apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
Stars: ✭ 831 (-11.6%)
Mutual labels:  api, hacktoberfest
Canvasapi
Python API wrapper for Instructure's Canvas LMS. Easily manage courses, users, gradebooks, and more.
Stars: ✭ 306 (-67.45%)
Mutual labels:  api, hacktoberfest
Vuex Rest Api
A utility to simplify the use of REST APIs with Vuex
Stars: ✭ 365 (-61.17%)
Mutual labels:  api, hacktoberfest
Laravel Api Boilerplate
Laravel API Boilerplate | Please consult the Wiki !
Stars: ✭ 300 (-68.09%)
Mutual labels:  api, hacktoberfest
Memento
Memento is a development-only tool that caches HTTP calls once they have been executed.
Stars: ✭ 380 (-59.57%)
Mutual labels:  api, hacktoberfest
Wp Graphql
🚀 GraphQL API for WordPress
Stars: ✭ 3,097 (+229.47%)
Mutual labels:  api, hacktoberfest
Php Openapi
Read and write OpenAPI yaml/json files and make the content accessible in PHP objects.
Stars: ✭ 268 (-71.49%)
Mutual labels:  api, hacktoberfest
Droplet kit
DropletKit is the official DigitalOcean API client for Ruby.
Stars: ✭ 482 (-48.72%)
Mutual labels:  api, hacktoberfest
Pizzly
The simplest, fastest way to integrate your app with an OAuth API 😋
Stars: ✭ 796 (-15.32%)
Mutual labels:  api, hacktoberfest

Unofficial TikTok API in Python

This is an unofficial api wrapper for TikTok.com in python. With this api you are able to call most trending and fetch specific user information as well as much more.

LinkedIn Sponsor Me GitHub release (latest by date) Build Status GitHub Downloads Support Server

Table of Contents

Getting Started

To get started using this api follow the instructions below.

Installing

If you run into an issue please check the closed issues on the github. You're most likely not the first person to experience this issue. If nothing works feel free to open an issue.

pip install TikTokApi
python -m playwright install

If you would prefer a video walk through of setting up this package I created a YouTube video just for that.

If you're on MacOS you may need to install XCode Developer Tools

Docker Installation

Clone this repository onto a local machine then run the following commands.

docker build . -t tiktokapi:latest
docker run -v TikTokApi --rm tiktokapi:latest python3 your_script.py

Note this assumes your script is named your_script.py and lives in the root of this directory.

Common Issues

Please don't open an issue if you're experiencing one of these just comment if the provided solution do not work for you.

Quick Start Guide

Here's a quick bit of code to get the most recent trending on TikTok. There's more examples in the examples directory.

from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
# If playwright doesn't work for you try to use selenium
# api = TikTokApi.get_instance(use_selenium=True)

results = 10

# Since TikTok changed their API you need to use the custom_verifyFp option. 
# In your web browser you will need to go to TikTok, Log in and get the s_v_web_id value.
trending = api.trending(count=results, custom_verifyFp="")

for tiktok in trending:
    # Prints the id of the tiktok
    print(tiktok['id'])

print(len(trending))

To run the example scripts from the repository root, make sure you use the module form of python the interpreter

python -m examples.getTrending

Here's an example of what a tiktok dictionary looks like.

Documentation

You can find the documentation here, I will be making this documentation more complete overtime as it's not super great right now, but better than just having it in the readme!

Built With

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].