API文档中心

热门接口:产品ID找同款全量维权查询万能转链字符串ID转换 (有API需求可联系本站)

饿了么红包、浏览店铺、零售会场转链接口

调用权限:核心接口会员卡调用
接口使用场景等说明:

本接口可以对饿了么各类活动进行转链。

主要推广以下三大任务:

活动名称

佣金率

活动ID

说明


1

饿了么天天领红包

6%起

10144

主推广:饿了么天天领红包,最高抢66元大额红包,预估佣金收益6%

2

浏览店铺做任务

6%起

10174

主推广:抢无门槛红包,预估佣金收益6%

3

零售专属会场

7%起(加码中)

10247

主推广:超低价爆品来袭,预估佣金收益4%


更多活动ID请参考接入指引:https://www.veapi.cn/apidoc/waimai/295 

接口请求地址

环境 http 地址 https 地址
正式环境 http://api.veapi.cn/waimai/ele_actproms 暂无

请求方式:GETPOST

请求参数

参数名称 参数类型 必填 示例值 描述
vekey String V123M56 公共参数,接口秘钥,请在会员中心获取
activity_id String 10144 活动ID,默认10144,表示饿了么天天领红包活动。活动ID请参考上文说明。
sid String 65512 可选值,用于跟单的自定义参数,可定义1-26位的数字字母开头的+数字字母和下划线组成的字串,比如您的会员ID,用于识别哪个会员推广。如果是自用的则通常不需要设置本参数。

请求示例

  • HTTP
  • PHP
  • JAVA
  • PYTHON
GET/POST  http://api.veapi.cn/waimai/ele_actproms?vekey=xxx&sid=wode5611&activity_id=10144 

使用curl函数,curl不是php原生库,需要安装才能使用

$api="http://api.veapi.cn/waimai/ele_actproms?vekey=xxx&sid=wode5611&activity_id=10144";

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $api);
//curl_setopt($ch, CURLOPT_POST, true);  //POST方式时启用
//curl_setopt($ch, CURLOPT_POSTFIELDS, $postData );  //POST方式时传参

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  //如果使用https请启用
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);  //如果使用https请启用
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );   //返回数据流,不直接输出
curl_setopt($ch, CURLOPT_ENCODING, 'gzip'); //使用gzip压缩传输让访问更快
curl_setopt($ch, CURLOPT_TIMEOUT, 6);  //允许执行的最长秒数。这里设定6S
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);

$result = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);

echo $result; //返回值
使用okhttp3/httpclient/jsoup/hutool,以hutool为例:

import cn.hutool.http.HttpResponse;
import cn.hutool.http.HttpRequest;

public class testGetParam {

    public static void main(String[] args) {
        // API网址
        String url = "http://api.veapi.cn/waimai/ele_actproms?vekey=xxx&sid=wode5611&activity_id=10144";
        // JDK 8u111版本后,若目标页面为HTTPS协议,请启用proxy用户密码鉴权
        //System.setProperty("jdk.http.auth.tunneling.disabledSchemes", "");

        // 发送请求
        String result = HttpRequest.get(url)
                .timeout(10000)//设置超时,毫秒
                .execute().body();
        System.out.println(result);
    }
}
推荐使用 requests,支持访问http,https网页:

import requests
		
# 要访问的API网页
target_url = "http://api.veapi.cn/waimai/ele_actproms?vekey=xxx&sid=wode5611&activity_id=10144"

# 发送请求
response = requests.get(target_url)

# 获取页面内容
if response.status_code == 200:
	print response.text

返回值(JSON)

参数名称 参数类型 示例值 描述
id String 10124 活动ID
title String 饿了么xxx 标题
description String 下单xxxxx 描述
picture String https://xxxxx 活动创意图片
start_time Number 1638374400 起始时间(秒)
end_time Number 1673107200 结束时间(秒)
link Object   推广链接
 └─ wx_appid String wxxxxxxxx 小程序appId
 └─ wx_path String xxxxx 微信小程序path链接
 └─ picture String xxx 推广图片地址
 └─ alipay_mini_url String alipays://platformapi/xx 支付宝小程序推广链接
 └─ h5_url String https://tb.ele.me/wow/ixxxx/xxxx h5推广地址
 └─ tb_qr_code String https://gw.alicdn.com/imgextra/xxxx 淘宝二维码图片地址
 └─ mini_qrcode String https://gw.alicdn.com/imgextra/xxxx 微信独立二维码
 └─ tb_mini_qrcode String https://gw.alicdn.com/imgextra/xxxx 淘宝独立二维码
 └─ ele_scheme_url String https://tb.ele.me/wow/alsc/mod/c1474c7db25accb9axxxxxx 饿了么唤端链接
 └─ h5_short_link String xxxx h5推广地址短链

返回示例

【提示】推广链接通常有时效性,示例中的链接为创建文档时生成,仅用于展示返回结果使用,有可能已失效。
{ "error": "0", "msg": "查询成功!", "data": { "description": "最高抢66元大额红包", "end_time": "1714492799", "id": "10144", "link": { "alipay_mini_url": "alipays://platformapi/startapp?appId=2021001110676437&page=plugin-private%3A%2F%2F2021002141657015%2Fpages%2Findex-bdlm%2Findex%3FconfigKey%3DBDLM_ELE_ALIPAY_DG%26scene%3D160179e9a71d4498b060a12ec65fcf0f", "ele_scheme_url": "eleme://web?action=ali.open.nav&module=h5&packageName=me.ele&bc_fl_src=locallife_wtzt_0-0-ADGROUPID-__REQID__-2&url=https%3A%2F%2Ffc.ele.me%2Fa%2FMWJhZDM1OTY5ZTg5MTFlYzllYWEwMDE2M2UxM2FkMTE%3D%3Fscene%3D160179e9a71d4498b060a12ec65fcf0f%26o2i_1st_clk%3D__CLICK_ID__&fastmode=1", "h5_short_link": "https://u.ele.me/4b17CXw8", "h5_url": "https://fc.ele.me/a/MWJhZDM1OTY5ZTg5MTFlYzllYWEwMDE2M2UxM2FkMTE=?scene=160179e9a71d4498b060a12ec65fcf0f", "mini_qrcode": "https://img.alicdn.com/imgextra/i4/6000000000481/O1CN010k5XzS1FQLKNKm9NV_!!6000000000481-0-o2oad.jpg", "picture": "https://img.alicdn.com/imgextra/i3/6000000007343/O1CN01tooALv247985NAoB9_!!6000000007343-0-o2oad.jpg", "tb_mini_qrcode": "https://img.alicdn.com/imgextra/i2/6000000000898/O1CN01vHBHCo1IVKUBRHAm8_!!6000000000898-0-o2oad.jpg", "tb_qr_code": "https://img.alicdn.com/imgextra/i3/6000000000948/O1CN01HfgYny1IsEI6cqDnW_!!6000000000948-0-o2oad.jpg", "wx_appid": "wxece3a9a4c82f58c9", "wx_path": "commercialize/pages/taoke-guide/index?scene=160179e9a71d4498b060a12ec65fcf0f" }, "picture": "https://img.alicdn.com/imgextra/i3/6000000001594/O1CN0187p2Km1Ne68biBOa5_!!6000000001594-2-o2oad.png", "start_time": "1649865600", "title": "饿了么天天领红包", "inner_request_id": "15rwjq7n3j64t" }, "request_id": "HIAhvvC" }

错误码

如果error不为0时,请点此查看错误码表格

在线
客服

会员请加QQ群交流:

微信
咨询

加微信咨询
顶部