承接 idammi/tiktok-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

idammi/tiktok-api

Composer 安装命令:

composer require idammi/tiktok-api

包简介

TikTok API wrapper for PHP

README 文档

README

TikTok Private API

This library gives access to exclusive TikTok API functions: login, like, follow, comment, getting user (profile, followers, following, videos), upload, getting videos from hashtag, searching for sounds, search for users.

Installation via Composer

composer require idammi/tiktok-api

Usage

/////////// API  //////////
$debug = false;
$accessKey = 'YOUR_ACCESS_KEY';
$proxy = 'http://user:pass@proxy:port';
///////////////////////////
$tiktok = new \TikTokAPI\TikTok($debug);
$tiktok->setAccessKey($accessKey);
$tiktok->setProxy($proxy);

Available methods

  • login - Login user/resume logged in session login($username, $password)
  • getComments - Get comments on a post getComments($awemeId, $cursor)
  • getUserFeed - Get user posts getUserFeed($secUserId, $cursor)
  • getUserFollowers - Get user followers getUserFollowers($secUserId, $max_time)
  • getUserFollowing - Get user following getUserFollowing($secUserId, $max_time)
  • getChallenge - Get challenge feed getChallenge($ch_id, $cursor)
  • getMusic - Get Music feed getMusic($music_id, $cursor)
  • getUserInfo - Get user info getUserInfo($secUserId)
  • search - General search search($keyword)

Example Login Response

{
    "data": {
        "app_id": 1233,
        "avatar_url": "",
        "connects": [],
        "country_code": 234,
        "device_id": 0,
        "email": "",
        "has_password": 1,
        "is_kids_mode": 0,
        "mobile": "+234****3724",
        "name": "user5180781450262",
        "screen_name": "user5180781450262",
        "sec_user_id": "MS4wLjABAAAAdsnqxZXSEeRzp4ppOc8Zndo14IaYeNxiABwTPfbGkxYCWr4OCzQF90JgJPC33jD6",
        "session_key": "7f6f103535941dc2054baa0446a5cf3a",
        "user_id": 7058506727294240000,
        "user_id_str": "7058506727294239749",
        "user_verified": false
    },
    "message": "success",
    "status": "ok",
    "timestamp": 1657486200
}

API Access Key Usage

You can use Authorization: Bearer <access_key> in the request header or use ?key=<access_key> in the request parameter.

Private API backend functionalities

  • Device registration for registering device_id, install_id also known as iid and did.

    • Proper trace-id header generation.
    • Proper X-Gorgon and X-Khronos header generation.
    • Proper TTEncrypting of data (v05).
    • Proper XLoging of registered device_id (v02).
  • Account Login

    • Complete device registration when logging in for the first time.
    • Account Login with username/password.
    • Automated captcha solver.

How does this work?

Monthly subscription of my private API service is required for this to function.

Subscription service pricing

Package Cost(per month) Account Limit Quota (requests/day) Quota (requests/month)
Starter 50 USD 1 5,000 ~150,000
Pro (popular) 100 USD 5 12,000 ~360,000
Business 200 USD 10 25,000 ~720,000
Custom custom pricing ? ? ?
  • These quota counts on successful responses (with status code 200).

Terms and conditions

  • You will NOT use this API for marketing purposes (spam, botting, harassment, massive bulk messaging...).
  • We do NOT give support to anyone who wants to use this API to send spam or commit other crimes.
  • We reserve the right to block any user of this repository that does not meet these conditions.

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.

Disclaimer

TikTok is always updating their API endpoints but I will keep updating this library. I take no responsibility if your IP or your acccount gets banned using this API. It's recommended that you use proxy.

If you want, you can reach me on Telegram: https://t.me/dologbonjaye

idammi/tiktok-api 适用场景与选型建议

idammi/tiktok-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 72 次下载、GitHub Stars 达 14, 最近一次更新时间为 2022 年 07 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「php」 「php-fpm」 「scrapper」 「rest-api」 「PHP7」 「php-library」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 idammi/tiktok-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 idammi/tiktok-api 我们能提供哪些服务?
定制开发 / 二次开发

基于 idammi/tiktok-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 72
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 15
  • 点击次数: 17
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 14
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-10