To share a WeChat domain block detection API, open some companies with WeChat url at ordinary times, it is found that be stop access, for such a situation, really still has a great influence for our company, then all kinds of ways to, and then find the following WeChat domain detection API, is to use WeChat official interface, Real-time detection of wechat domain name is blocked, with a few months is very good, very stable.

Share it with others who also need it.

Wechat domain name detection API interface from: wx.horocn.com/product-dom…

Note: Remember to replace the API Token below, which is displayed in user center – Member information after login.

<? PHP // Your API Token is available in the user center$apiToken = "* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"; // The address or domain name to check$reqUrl = "www.qq.com";
$url = sprintf("https://wx.horocn.com/api/v1/wxUrlCheck?api_token=%s&req_url=%s".$apiToken.$reqUrl);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
$responseBody = curl_exec($ch);
$responseArr = json_decode($responseBody.true);
if(json_last_error() ! = JSON_ERROR_NONE) {echo "JSON parsing interface result error \n";
    return;
}
if (isset($responseArr['code'&&])$responseArr['code'] == 0) {// The interface returns // correctly$responseArr['data'] ['status'] : OK or blocked. // OK indicates that the virtual drive is normal. Blocked indicates that the virtual drive is blockedprintf("Test address (%s) in: %s\n state".$reqUrl.$responseArr['data'] ['status']);
} else {
    printf("Interface error: %s\n", var_export($responseArr.true));
}
Copy the code

Related services

  • Wechat domain name interception detection interface
  • Wechat domain name online interception and detection tool
  • Wechat domain name online batch interception and detection tool