短网址短网址工具 本站提醒:请勿用于非法用途!    t.cn接口  url.cn接口 QQ客服:327328679 QQ客服:1298693822 精简API 个人中心 API文档
精简API文档合集
接口中使用的 appkey,可在个人中心获取, 个人中心
 
  新浪短网址api接口-3.0版本,GET方式请求,详细文档
  https://www.mynb8.com/api3/sina.html?type=txt&appkey=APPKEY&long_url=http://www.baidu.com
  返回结果:https://t.cn/RttEZZa
//php调用代码示例,注意:long_url参数需要 urlencode 编码
$api_url     = "http://www.mynb8.com/api3/sina.html?type=txt&appkey=APPKEY&long_url=".urlencode('https://www.baidu.com/');
$short_url   = file_get_contents( $api_url );
echo $short_url;
  腾讯短网址api接口-3.0版本,GET方式请求,详细文档
  https://www.mynb8.com/api3/urlcn.html?type=txt&appkey=APPKEY&long_url=http://www.baidu.com
  返回结果:https://url.cn/5xbUtGu
//php调用代码示例,注意:long_url参数需要 urlencode 编码
$api_url     = "http://www.mynb8.com/api3/urlcn.html?type=txt&appkey=APPKEY&long_url=".urlencode('https://www.baidu.com/');
$short_url   = file_get_contents( $api_url );
echo $short_url;
  微信域名拦截检测接口,GET方式请求,详细文档
  https://www.mynb8.com/hostCheckApi/host.html?appkey=APPKEY&host_name=www.baidu.com
  返回结果:{"rs_code":0,"rs_msg":"ok","host_name":"www.baidu.com","host_status":1,"host_msg":"u57dfu540du672au62e6u622a"}
//php调用代码示例
$url    = "http://www.mynb8.com/hostCheckApi/host.html?appkey=APPKEY&host_name=www.baidu.com";
$json	= file_get_contents( $url );
$data = json_decode( $json, true);
if($data['rs_code'] == 0){
	if($data['host_status'] == 1){
		echo '域名安全可用';exit;
	}else{
		echo '域名被微信拦截';exit;
	}
}else{
	echo $data['rs_msg'];exit;//错误提示
}
  QQ域名拦截检测接口,GET方式请求
  https://www.mynb8.com/hostCheckApi/host_qq.html?appkey=APPKEY&host_name=www.baidu.com
  返回结果:{"rs_code":0,"rs_msg":"ok","host_name":"www.baidu.com","host_status":1,"host_msg":"u57dfu540du672au62e6u622a"}
//php调用代码示例
$url    = "http://www.mynb8.com/hostCheckApi/host_qq.html?appkey=APPKEY&host_name=www.baidu.com";
$json	= file_get_contents( $url );
$data = json_decode( $json, true);
if($data['rs_code'] == 0){
	if($data['host_status'] == 1){
		echo '域名安全可用';exit;
	}else{
		echo '域名被QQ拦截';exit;
	}
}else{
	echo $data['rs_msg'];exit;//错误提示
}
  微博域名拦截检测接口,GET方式请求
  https://www.mynb8.com/hostCheckApi/host_wb.html?appkey=APPKEY&host_name=www.baidu.com
  返回结果:{"rs_code":0,"rs_msg":"ok","host_name":"www.baidu.com","host_status":1,"host_msg":"u57dfu540du672au62e6u622a"}
//php调用代码示例
$url    = "http://www.mynb8.com/hostCheckApi/host_wb.html?appkey=APPKEY&host_name=www.baidu.com";
$json	= file_get_contents( $url );
$data = json_decode( $json, true);
if($data['rs_code'] == 0){
	if($data['host_status'] == 1){
		echo '域名安全可用';exit;
	}else{
		echo '域名被微博拦截';exit;
	}
}else{
	echo $data['rs_msg'];exit;//错误提示
}