The simple http client for TokApi tiktok mobile API
Installation
pip install tokapi-client
Usage
# For RapidAPI
api = TokApi('YOUR_RAPID_API_KEY')
# For api.tokapi.online
api = TokApi('YOUR_API_KEY_FROM_DASHBOARD', base_url="https://api.tokapi.online")
# Let's find some users by search query with pagination
keyword = 'nike'
offset = 0
for i in range(0, 3):
result = api.search_user_by_keyword(keyword, offset=offset)
data = result.json()
for user in data['user_list']:
info = user['user_info']
print('Nickname: {}, region: {}'.format(info['nickname'],
info['region']))
offset = data['cursor']
Examples
You can find more complex usage examples in examples folder
Legal
This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by TikTok or any of its affiliates or subsidiaries. This is an independent and unofficial API. Use at your own risk.
Metadata
Release files for tokapi-client 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tokapi-client-0.0.3.tar.gz | 8.5 kB | Without provenance | Details for tokapi-client-0.0.3.tar.gz |
Release files / tokapi-client-0.0.3.tar.gz
| Download URL | tokapi-client-0.0.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dfdd23d78a5639ad82fbeb82c72c67964835c9cd666f4b0e885cfd145b41cf3
|
|
BLAKE2b-256 checksum How to use checksums |
6a724fd5964069a78cfc014b5170c9709fce66ed7a2a47ffc012773458c23661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for tokapi-client 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.