抖音热点榜
# 接口信息
- 接口状态 : 正常
- 请求方式 :
GET
- 返回格式 :
JSON
- 扣除Gong币数 :
2
# 请求地址
http://gateway.gtcbaba.icu/api/douyin
1
# 请求参数
参数名 | 必选 | 类型 | 描述 |
---|---|---|---|
无 | 否 | string | 直接请求即可 |
# 响应参数
参数名称 | 类型 | 描述 |
---|---|---|
code | int | 响应码 |
data.update_time | string | 榜单最近更新时间 |
data.info.index | int | 热度排名 |
data.info.title | string | 标题 |
data.info.hot | string | 当前热度 |
data.info.url | string | pc端访问地址 |
data.info.mobilUrl | string | 移动端访问地址 |
message | string | 响应描述 |
# 代码示例
注意 🔔️
没有开发者调用凭证无法调用接口哦!!! 前往个人中心获取开发者凭证 (opens new window)
注入Manager
@Resource
private GtcApiManager gtcApiManager;
1
2
2
- 示例一 :推荐👍
通过yml配置开发者调用凭证
public BasicResponse getDouyin() {
BasicResponse douyinInfo = null;
try {
douyinInfo = gtcApiManager.getDouyin();
System.out.println("得到抖音热点榜信息: " + douyinInfo);
} catch (ApiException e) {
log.error(e.getMessage());
}
return douyinInfo;
}
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
- 示例二:不推荐👎
手动实例化
public BasicResponse getDouyin() {
GtcApiClient client = new GtcApiClient("您的AccessKey", "您的SecretKey");
GtcApiManager gtcApiManager = new GtcApiManager();
gtcApiManager.setGtcApiClient(client);
BasicResponse douyinInfo = null;
try {
douyinInfo = gtcApiManager.getDouyin();
System.out.println("得到抖音热点榜信息: " + douyinInfo);
} catch (ApiException e) {
log.error(e.getMessage());
}
return douyinInfo;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
响应示例:
{
"update_time": "2024-08-04 10:00:45",
"info": [
{
"title": "郑钦文夺奥运网球女单冠军",
"hot": "1209.8万",
"url": "https://www.douyin.com/search/%E9%83%91%E9%92%A6%E6%96%87%E5%A4%BA%E5%A5%A5%E8%BF%90%E7%BD%91%E7%90%83%E5%A5%B3%E5%8D%95%E5%86%A0%E5%86%9B",
"mobil_url": "https://www.douyin.com/search/%E9%83%91%E9%92%A6%E6%96%87%E5%A4%BA%E5%A5%A5%E8%BF%90%E7%BD%91%E7%90%83%E5%A5%B3%E5%8D%95%E5%86%A0%E5%86%9B",
"index": 1
},
{
"title": "孙颖莎憾失大满贯:我不会放弃",
"hot": "1206.9万",
"url": "https://www.douyin.com/search/%E5%AD%99%E9%A2%96%E8%8E%8E%E6%86%BE%E5%A4%B1%E5%A4%A7%E6%BB%A1%E8%B4%AF%EF%BC%9A%E6%88%91%E4%B8%8D%E4%BC%9A%E6%94%BE%E5%BC%83",
"mobil_url": "https://www.douyin.com/search/%E5%AD%99%E9%A2%96%E8%8E%8E%E6%86%BE%E5%A4%B1%E5%A4%A7%E6%BB%A1%E8%B4%AF%EF%BC%9A%E6%88%91%E4%B8%8D%E4%BC%9A%E6%94%BE%E5%BC%83",
"index": 2
},
{
"title": "107台发动机助“嫦娥”奔月",
"hot": "1173.5万",
"url": "https://www.douyin.com/search/107%E5%8F%B0%E5%8F%91%E5%8A%A8%E6%9C%BA%E5%8A%A9%E2%80%9C%E5%AB%A6%E5%A8%A5%E2%80%9D%E5%A5%94%E6%9C%88",
"mobil_url": "https://www.douyin.com/search/107%E5%8F%B0%E5%8F%91%E5%8A%A8%E6%9C%BA%E5%8A%A9%E2%80%9C%E5%AB%A6%E5%A8%A5%E2%80%9D%E5%A5%94%E6%9C%88",
"index": 3
},
{
"title": "维基奇摔拍子",
"hot": "1141.3万",
"url": "https://www.douyin.com/search/%E7%BB%B4%E5%9F%BA%E5%A5%87%E6%91%94%E6%8B%8D%E5%AD%90",
"mobil_url": "https://www.douyin.com/search/%E7%BB%B4%E5%9F%BA%E5%A5%87%E6%91%94%E6%8B%8D%E5%AD%90",
"index": 4
},
{
"title": "上海海港1:0山东泰山",
"hot": "763.7万",
"url": "https://www.douyin.com/search/%E4%B8%8A%E6%B5%B7%E6%B5%B7%E6%B8%AF1%3A0%E5%B1%B1%E4%B8%9C%E6%B3%B0%E5%B1%B1",
"mobil_url": "https://www.douyin.com/search/%E4%B8%8A%E6%B5%B7%E6%B5%B7%E6%B8%AF1%3A0%E5%B1%B1%E4%B8%9C%E6%B3%B0%E5%B1%B1",
"index": 29
},
{
"title": "暑假就这么水灵灵的要过完了",
"hot": "763.3万",
"url": "https://www.douyin.com/search/%E6%9A%91%E5%81%87%E5%B0%B1%E8%BF%99%E4%B9%88%E6%B0%B4%E7%81%B5%E7%81%B5%E7%9A%84%E8%A6%81%E8%BF%87%E5%AE%8C%E4%BA%86",
"mobil_url": "https://www.douyin.com/search/%E6%9A%91%E5%81%87%E5%B0%B1%E8%BF%99%E4%B9%88%E6%B0%B4%E7%81%B5%E7%81%B5%E7%9A%84%E8%A6%81%E8%BF%87%E5%AE%8C%E4%BA%86",
"index": 30
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47