首页 IT技术 微信阅读点赞数获取
http[s]://api.liangmlk.cn?appid=1694&ak=*****
JSON
GET
38

GET请求参数:

参数名称 参数类型 必填 默认值 示例值 备注
url String https%3A%2F%2Fmp.weixin.qq.com%2Fs%3F__biz%3DMjM5MzI5NTU3MQ%3D%3D%26mid%3D2651456339%26idx%3D1%26sn%3Db28ead72f72decc7993d2db6a4a7f437%26scene%3D0 https://mp.weixin.qq.com/s?__biz=MjM5MzI5NTU3MQ==&mid=2651456339&idx=1&sn=b28ead72f72decc7993d2db6a4a7f437&scene=0#wechat_redirect需要先进行url编码,微信文章永久链接

请求示例代码:

<?php

    header('content-type:text/html;charset=utf-8');
	$ch  = curl_init();
	$url = 'http://api.liangmlk.cn?ak=xxxx&appid=1694&url=xxxx';
	curl_setopt($ch,CURLOPT_URL,$url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	$res = curl_exec($ch);
	curl_close($ch);
	return json_decode($res,true);
                    

JSON返回示例 [仅供参考]:

其它推荐RECOMMENDED DATA 更多