Giter Club home page Giter Club logo

douyin-api's Introduction

抖音签名服务

已列举如下接口使用示例:

  • 获取主页推荐视频列表
  • 获取用户信息
  • 获取音乐信息
  • 获取用户喜欢的视频
  • 获取自己的视频
  • 获取评论信息
  • 获取粉丝列表
  • 获取关注列表
  • 获取主页推荐视频列表
  • 获取热搜榜
  • 加密手机号
  • 加密密码
  • 加密短信验证码
  • 短信登陆
  • 搜索用户
  • 搜索视频
  • 签名服务接口调用次数

其他接口理论上也都支持,此处不一一举例。如不知如何使用,可联系我

示例代码: https://github.com/bzkj-tech/douyin-api

TODO

  • 手机号密码登陆
  • 微博跳转登陆
  • 视频点赞
  • 视频评论
  • 关注红人
  • 私信

服务接口说明

签名服务

接口说明:由于抖音的接口都有加密,需要计算最新的as、mas、cp参数才可访问。该接口用于提供最新的有效连接

请求方式: GET(HTTP)

请求地址: http://bzkj.tech:2117/douyin/encrypt_url

请求包体:

{
    "url":"xxx",
    "secret_key":"xxxx"
}

参数说明:

参数 必须 说明
url 抖音接口的url
secret_key 用户的签名密钥

返回结果:

{
    "code":200,
    "data":{
        "url":"xxxx"
    }
    "msg":"请求成功"
}

参数说明:

参数 说明
code 返回码 (200 为成功, 非200出错)
data 返回的数据体
url 生成的有效url
msg 对返回码的文本描述内容

电话号加密服务

接口说明:用于登陆的电话号,抖音接口提交的为加密后的数据

请求方式: GET(HTTP)

请求地址: http://bzkj.tech:2117/douyin/encrypt_phonenumber

请求包体:

{
    "phonenumber":"xxx",
    "secret_key":"xxxx"
}

参数说明:

参数 必须 说明
phonenumber 登陆的电话号
secret_key 用户的签名密钥

返回结果:

{
    "code":200,
    "data":{
        "phonenumber":"xxxx"
    }
    "msg":"请求成功"
}

参数说明:

参数 说明
code 返回码 (200 为成功, 非200出错)
data 返回的数据体
phonenumber 加密后的电话号
msg 对返回码的文本描述内容

密码加密服务

接口说明:用于登陆的密码,抖音接口提交的为加密后的数据

请求方式: GET(HTTP)

请求地址: http://bzkj.tech:2117/douyin/encrypt_phonenumber

请求包体:

{
    "password":"xxx",
    "secret_key":"xxxx"
}

参数说明:

参数 必须 说明
password 登陆的密码
secret_key 用户的签名密钥

返回结果:

{
    "code":200,
    "data":{
        "password":"xxxx"
    }
    "msg":"请求成功"
}

参数说明:

参数 说明
code 返回码 (200 为成功, 非200出错)
data 返回的数据体
phonenumber 加密后的密码
msg 对返回码的文本描述内容

短信验证码加密服务

接口说明:短信验证码,需要加密才能登陆

请求方式: GET(HTTP)

请求地址: http://bzkj.tech:2117/douyin/encrypt_code

请求包体:

{
    "code":"xxx",
    "secret_key":"xxxx"
}

参数说明:

参数 必须 说明
code 短信验证码
secret_key 用户的签名密钥

返回结果:

{
    "code":200,
    "data":{
        "code":"xxxx"
    }
    "msg":"请求成功"
}

参数说明:

参数 说明
code 返回码 (200 为成功, 非200出错)
data 返回的数据体
code 加密后的短信验证码
msg 对返回码的文本描述内容

服务次数统计

接口说明:获取套餐已使用次数、剩余次数

请求方式: GET(HTTP)

请求地址: http://bzkj.tech:2117/douyin/get_used_count

请求包体:

{
    "secret_key":"xxxx"
}

参数说明:

参数 必须 说明
secret_key 用户的签名密钥

返回结果:

{
    "code":200,
    "data":{
        "total_count": xxx,
        "used_count": xxx
    }
    "msg":"请求成功"
}

参数说明:

参数 说明
code 返回码 (200 为成功, 非200出错)
data 返回的数据体
total_count 总次数
used_count 已用次数
msg 对返回码的文本描述内容

联系方式

email: [email protected]

wechat: bzkj_tech

douyin-api's People

Contributors

bzkj-tech avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

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.