简要描述:
- 查询文件信息及获取VIP下载地址。
通过本接口可以通过用户ID和文件编号的组合查询文件信息,并获取VIP高速下载地址。
请注意,文件查询接口必须提供真实的访问来源 (ref参数),若不提供将被拦截和停止使用接口。
接口版本:
版本号 | 制定人 | 制定日期 | 修订日期 |
---|---|---|---|
1.0 | Joe | 2018-01-20 | 2018-01-20 |
请求URL:
请求参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
f | 是 | string | 查询的用户ID和文件ID的组合 |
passcode | 否 | string | 如文件需要访问密码,可在此提供 |
token | 否 | string | 用户登录时获取的登陆密钥 |
r | 否 | string | 随机数,防止浏览器强制缓存 |
ref | 是 | string | 访问来源地址,可通过document.referrer获取 |
返回示例:
正常返回:
{"popad":5,"is_userself":0,"link_protected":0,"is_vip":1,"vip_dx_url":"https:\/\/168-ctc-dd.tv002.com\/down\/83ada873384638f092ff0d8c58adbe74\/Paintstorm_Studio_2.43.120120_iMacso.com.dmg?cts=dx-v-U1010F417576789D218A82A194A17279&ctp=218A82A194A152&ctt=1604063257&limit=2&spd=9600000&ctk=83ada873384638f092ff0d8c58adbe74&chk=d8015db12f1aaadb60db7a80df24f623-55751478&mtd=1","vip_lt_url":"https:\/\/91-cucc-dd.tv002.com\/down\/d7d0e71c758a9250211a7e0a228502de\/Paintstorm_Studio_2.43.120120_iMacso.com.dmg?cts=wt-v-U1010F417576789D218A82A194A17279&ctp=218A82A194A152&ctt=1604063257&limit=2&spd=9600000&ctk=d7d0e71c758a9250211a7e0a228502de&chk=d8015db12f1aaadb60db7a80df24f623-55751478&mtd=1","vip_yd_url":"https:\/\/197-cmcc-dd.tv002.com\/down\/a61c8408a2f2bf8a23a9d63f04ccd101\/Paintstorm_Studio_2.43.120120_iMacso.com.dmg?cts=yd-v-U1010F417576789D218A82A194A17279&ctp=218A82A194A152&ctt=1604063257&limit=2&spd=9600000&ctk=a61c8408a2f2bf8a23a9d63f04ccd101&chk=d8015db12f1aaadb60db7a80df24f623-55751478&mtd=1","title":"\u8d44\u6e90\u4e0b\u8f7d","file_name":"Paintstorm_Studio_2.43.120120_iMacso.com.dmg","file_size":"53.17 MB","file_time":"2020-01-14","file_views":17,"username":"iMacso_com","email":"cooki*****@sohu.com","reg_url":"https:\/\/www.ctfile.com\/p\/register","login_url":"https:\/\/www.ctfile.com\/p\/login","home_url":"https:\/\/home.ctfile.com","web_url":"https:\/\/www.ctfile.com","page_title":"Paintstorm_Studio_2.43.120120_iMacso.com.dmg - \u514d\u8d39\u9ad8\u901f\u4e0b\u8f7d","file_dir":"\/dir\/160721-188855-1604041657-45dac49f26b9f3e6","userid":161721,"file_id":417576189,"free_speed":"26 \u5206\u949f","software_speed":"7 \u5206\u949f","vip_speed":"11 \u79d2","my_uid":1010,"my_username":"testuser","is_mb":0,"doubleclick_url":"https:\/\/doubleclick.ctfile.com\/?adv&advert&mod=cpv&act=add&uid=161721&fid=417576189&t=1604041657&k=6de5a402e345cd5f7caccc6e8c46c8d8&ref=","file_chk":"b8134965c62a9570ba250da726d09515","user_pic":"https:\/\/imgstatic.ctfile.com\/upload\/profile\/8483af773baaacb9175669e0.jpg","groups_price":{"10":600,"13":1310,"14":2550},"code":200}
错误时返回:
{"code":403,"message":"错误描述"}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
vip_dx_url | string | 登录若为VIP,则会提供VIP下载地址,电信地址 |
vip_lt_url | string | 登录若为VIP,则会提供VIP下载地址,联通地址 |
vip_yd_url | string | 登录若为VIP,则会提供VIP下载地址,移动地址 |
is_vip | int | 是否为VIP用户 |
file_name | string | 文件名 |
file_size | string | 文件大小 |
file_chk | string | 获取下载地址时需要提供的验证信息 |
备注:
- 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2020-10-30 15:24 作者:admin