- API接入说明
- API更新日志(2025.05.07)
- 综合CPS推广(订单接口、外卖 打车 电影等)
- 淘宝
- 京东
- 拼多多
- 唯品会
- 快手
- 增值接口
- 其他接口
- 点餐接口(肯德基星巴克等)
- 聚合霸王餐API(推荐使用)
- 免费旅游卡接口
- CPA拉新接口
- 美团外卖到家/到店团购
- 中免日上
- 闲鱼返利API
- 旧衣/图书上门回收API
CPS活动转链(禁止使用 后期随时下架)
POST
/cps/ratesurl
请求参数
Body 参数application/json
actId
integer
活动ID
sid
string
用户的跟单参数;最长不要超过30位,仅此支持字母+数字
deeplink
boolean
是否需要返回deeplink链接
noLogin
boolean
是否免登录
poster
boolean
是否需要返回海报
sign
string
签名
timeStamp
integer
时间戳
wxQrInfo
boolean
是否需要返回小程序码
示例
{
"actId": 9,
"deeplink": false,
"noLogin": true,
"poster": false,
"sid": "123456",
"sign": "c4ca4238a0b923820dcc509a6f75849b",
"timeStamp": 1714061925,
"wxQrInfo": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/cps/ratesurl' \
--header 'Content-Type: application/json' \
--data-raw '{
"actId": 9,
"deeplink": false,
"noLogin": true,
"poster": false,
"sid": "123456",
"sign": "c4ca4238a0b923820dcc509a6f75849b",
"timeStamp": 1714061925,
"wxQrInfo": true
}'
返回响应
🟢200成功
application/json
Body
cache
boolean
必需
code
integer
必需
data
object
必需
h5
string
h5短链接
longH5
string
h5长链接
deeplink
null
deeplink链接
actName
string
活动名称
weAppInfo
object
小程序信息
posterUrl
null
推广海报(长图)
message
string
必需
示例
{
"cache": false,
"code": 0,
"data": {
"h5": "https://dpurl.cn/jWVuriUz",
"longH5": "https://dpurl.cn/jWVuriUz",
"deeplink": null,
"actName": "【新】美团外卖CPS+CPA推广活动",
"weAppInfo": {
"appId": "wxde8ac0a21135c07d",
"pagePath": "/index/pages/h5/h5?weburl=https%3A%2F%2Fdpurl.cn%2F4c9qOmpz&lch=cps:waimai:5:a664c868cb9c92912ed9f69dcfe270ed:1xgz123456:33:79282&f_token=1&f_userId=1",
"miniCode": "http://p0.meituan.net/wmpqrcode/9052467c3d4c8cc14565d4670a02d61c100802.jpg",
"originalId": "gh_870576f3c6f9"
},
"posterUrl": null
},
"message": "操作成功"
}