Skip to main content

Simple http client for TokApi rapid-api tiktok mobile API

Project description

PRs Welcome

The simple http client for TokApi tiktok mobile API

Installation

pip install tokapi-client

Usage

api = TokApi('YOUR_RAPID_API_KEY')

# 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tokapi-client-0.0.2.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokapi_client-0.0.2-py2-none-any.whl (4.4 kB view details)

Uploaded Python 2

File details

Details for the file tokapi-client-0.0.2.tar.gz.

File metadata

  • Download URL: tokapi-client-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for tokapi-client-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4499485678ceac7a76877b540006ed005d2a1cc66c015db56ea385133110b983
MD5 bd9e2680fd4cc99a5b498356d77bf757
BLAKE2b-256 0ca62a2fda021ac6a1e11d10b7b3ad3a2f98d117d18fe93a7a1b77d4b048b04a

See more details on using hashes here.

File details

Details for the file tokapi_client-0.0.2-py2-none-any.whl.

File metadata

  • Download URL: tokapi_client-0.0.2-py2-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for tokapi_client-0.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 890d3a9cb8c5483b485a24e9348fb465522153b3af6d25e511d7b0136eb0453e
MD5 eb7ad1585373cc63845744dbb510776c
BLAKE2b-256 8337de216e6e10d876d2931cfed2fadda6c068665e13c59670632c9159017515

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page