Home  >  Article  >  Backend Development  >  [JSON data available] Obtain data from the Ministry of Industry and Information Technology's ICP filing inquiry system. Retrieve ICP filing information through domain name query without verification code.

[JSON data available] Obtain data from the Ministry of Industry and Information Technology's ICP filing inquiry system. Retrieve ICP filing information through domain name query without verification code.

WBOY
WBOYOriginal
2016-07-25 08:47:041938browse
Call the information at http://vote.bi-xenon.cn/checkicp.php, and then intercept the obtained information
Note: I got a good thing from a friend. This kind of thing is rare now. Everyone, please do it and cherish it, haha

2014-11-25 Note: For children’s shoes that require JSON, you can add the JSON key in GET, and the value is arbitrary,
such as http://vote.bi-xenon.cn/checkicp.php ?dm=sina.com&json=1 to get JSON data


Low-key, low-key~
  1. $domain= 'so.com';
  2. $url='http://vote.bi-xenon.cn/checkicp.php?dm='.$domain; //Web page query Format
  3. //JSON format $url='http://vote.bi-xenon.cn/checkicp.php?json=1&dm='.$domain;
  4. $contents = file_get_contents($url);
  5. preg_match_all("|
Status code:(.*)
Query results|U", $contents , $out,PREG_PATTERN_ORDER);
  • echo $out;//$out is the code for filing or not, 2000 means it has been filed, and other content is waiting for you to draw inferences~
  • ?>
  • Copy code


    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn