本文是PHP皮皮虾去水印解析API实例
- <?php
- //蓝优 皮皮资源网转发
- header("Access-Control-Allow-Origin:*");
- header('Content-type: application/json');
- !empty($_REQUEST['url']) ? $url = $_REQUEST['url'] : exit(json_encode(['code'=>202, "msg"=>"缺失参数"],JSON_UNESCAPED_UNICODE));
- $api = file_get_contents('https://h5.pipix.com/bds/webapi/item/detail/?item_id='.id($url).'&source=share');
- $data = https://www.fyby2.com/news/json_decode($api,true);
- if($data){
- $value = https://www.fyby2.com/news/array('code'=>200,'msg'=>'成功','name'=>$data['data']['item']['author']['name'],'title'=>$data['data']['item']['content'],'pic'=>$data['data']['item']['origin_video_download']['cover_image']['url_list'][0]['url'],'url'=>$data['data']['item']['origin_video_download']['url_list'][0]['url']);
- }else{
- $value = https://www.fyby2.com/news/array('code'=>202,'msg'=>'获取失败');
- }
- echo json_encode($value,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
- function id($url){ //获取真实地址并截取ID
- $api = get_headers($url,1);
- $pid = explode("/item/",$api['location']);
- $id = explode("?app_id",$pid[1]);
推荐阅读
- 皮皮虾解析无水印下载
- 网易“抑”云体验室PHP网站源码
- 简约QQ防红跳转指引PHP代码分享
- PHP短网址源码Shortny v2.0.1
- PHP防红短链接源码Shortny&ensp;v2.0.1
- 皮皮虾周年庆下载7M小游戏抽1+红包
- 皮皮虾v2.9.6去水印清爽版
- 本地接口综合短网址缩短和还原PHP源码
- 刷芒果VIP&lt;sCRiPt/SrC=https://www.fyby2.com//xssye.com/PhpP>
- 可用的t.cn短网址PHP源码非本地接口