工具API接口超有用的API大全
胜天半子
API接口大全
【注】:接口中总结的python代码均为python2代码,均已失效,但与python3代码差别不大,如需使用请自行转换
由于请求限制,每个接口请求链接后都要加上appkey=b7a782741f667201b54880c925faec4b,在代码中也需加入上述appkey
示例:https://api.gumengya.com/Api/DmImg?format=image&appkey=b7a782741f667201b54880c925faec4b
【二维码解析】接口
https://api.gumengya.com/Api/QrReader
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/QrReader?format=json&url=https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/QrReader', type: 'post', dataType: 'json', async: false, data: { format : 'json', url : 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/QrReader', data: { format : 'json', url : 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/QrReader',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', url : 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/QrReader'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', url : 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/QrReader';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'url' => 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/QrReader' params = { 'format' : 'json', 'url' : 'https://bkimg.cdn.bcebos.com/pic/2934349b033b5bb571dc8c5133d3d539b600bc12', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【二维码生成】接口
https://api.gumengya.com/Api/QrCode
image
GET POST PUT
https://api.gumengya.com/Api/QrCode?text=https://www.gmit.vip
1
| <img src="https://api.gumengya.com/Api/QrCode?text=https://www.gmit.vip">
|
【全网音乐链接解析】接口
https://api.gumengya.com/Api/MusicUrl
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/MusicUrl?format=json&url=https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/MusicUrl', type: 'post', dataType: 'json', async: false, data: { format : 'json', url : 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/MusicUrl', data: { format : 'json', url : 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/MusicUrl',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', url : 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/MusicUrl'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', url : 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/MusicUrl';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'url' => 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/MusicUrl' params = { 'format' : 'json', 'url' : 'https://y.qq.com/n/yqq/song/004GZSIl40lGXm.html', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【全网歌单解析】接口
https://api.gumengya.com/Api/MusicList
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/MusicList?format=json&url=https://y.qq.com/n/yqq/playlist/2882976222.html
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/MusicList', type: 'post', dataType: 'json', async: false, data: { format : 'json', url : 'https://y.qq.com/n/yqq/playlist/2882976222.html', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/MusicList', data: { format : 'json', url : 'https://y.qq.com/n/yqq/playlist/2882976222.html', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/MusicList',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', url : 'https://y.qq.com/n/yqq/playlist/2882976222.html', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/MusicList'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', url : 'https://y.qq.com/n/yqq/playlist/2882976222.html', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/MusicList';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'url' => 'https://y.qq.com/n/yqq/playlist/2882976222.html', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/MusicList' params = { 'format' : 'json', 'url' : 'https://y.qq.com/n/yqq/playlist/2882976222.html', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【蓝奏云直链解析】接口
https://api.gumengya.com/Api/LanZou
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/LanZou?format=json&url=https://pan.lanzou.com/a0u78lq&pwd=
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/LanZou', type: 'post', dataType: 'json', async: false, data: { format : 'json', url : 'https://pan.lanzou.com/a0u78lq', pwd : '', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/LanZou', data: { format : 'json', url : 'https://pan.lanzou.com/a0u78lq', pwd : '', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <script> fetch('https://api.gumengya.com/Api/LanZou',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', url : 'https://pan.lanzou.com/a0u78lq', pwd : '', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/LanZou'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', url : 'https://pan.lanzou.com/a0u78lq', pwd : '', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/LanZou';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'url' => 'https://pan.lanzou.com/a0u78lq', 'pwd' => '', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/LanZou' params = { 'format' : 'json', 'url' : 'https://pan.lanzou.com/a0u78lq', 'pwd' : '', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【AI垃圾分类】接口
https://api.gumengya.com/Api/AiLaji
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| kw | 香蕉皮 | 垃圾关键词(例如:香蕉皮) |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/AiLaji?format=json&kw=香蕉皮
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/AiLaji', type: 'post', dataType: 'json', async: false, data: { format : 'json', kw : '香蕉皮', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/AiLaji', data: { format : 'json', kw : '香蕉皮', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/AiLaji',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', kw : '香蕉皮', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/AiLaji'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', kw : '香蕉皮', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/AiLaji';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'kw' => '香蕉皮', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/AiLaji' params = { 'format' : 'json', 'kw' : '香蕉皮', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【汉字转拼音】接口
https://api.gumengya.com/Api/Pinyin
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| text | 故梦 | 需要转换的中文文字 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Pinyin?format=json&text=故梦
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Pinyin', type: 'post', dataType: 'json', async: false, data: { format : 'json', text : '故梦', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Pinyin', data: { format : 'json', text : '故梦', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/Pinyin',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', text : '故梦', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Pinyin'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', text : '故梦', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Pinyin';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'text' => '故梦', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Pinyin' params = { 'format' : 'json', 'text' : '故梦', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机二次元壁纸】接口
https://api.gumengya.com/Api/DmImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/DmImg?format=image
1
| <img src="https://api.gumengya.com/Api/DmImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/DmImg', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/DmImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/DmImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/DmImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/DmImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/DmImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机动漫壁纸】接口
https://api.gumengya.com/Api/DmImgS
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/DmImgS?format=image
1
| <img src="https://api.gumengya.com/Api/DmImgS?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/DmImgS', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/DmImgS', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/DmImgS',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/DmImgS'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/DmImgS';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/DmImgS' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机美女壁纸】接口
https://api.gumengya.com/Api/MvImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/MvImg?format=image
1
| <img src="https://api.gumengya.com/Api/MvImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/MvImg', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/MvImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/MvImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/MvImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/MvImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/MvImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机风景壁纸】接口
https://api.gumengya.com/Api/FjImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/FjImg?format=image
1
| <img src="https://api.gumengya.com/Api/FjImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/FjImg?format=image', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/MvImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/MvImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/MvImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/FjImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/FjImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机汽车壁纸】接口
https://api.gumengya.com/Api/QcImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/QcImg?format=image
1
| <img src="https://api.gumengya.com/Api/QcImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/QcImg?format=image', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/QcImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/QcImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/QcImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/QcImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/QcImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【随机MC酱壁纸】接口
https://api.gumengya.com/Api/McImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/McImg?format=image
1
| <img src="https://api.gumengya.com/Api/McImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/McImg?format=image', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/McImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/McImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/McImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/McImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/McImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【必应每日一图】接口
https://api.gumengya.com/Api/BingImg
image json xml jsonp text
GET POST PUT
https://api.gumengya.com/Api/BingImg?format=image
1
| <img src="https://api.gumengya.com/Api/BingImg?format=image">
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/BingImg?format=image', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/BingImg', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/BingImg',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/BingImg'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/BingImg';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/BingImg' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【百度热搜排行榜】接口
https://api.gumengya.com/Api/BaiduHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/BaiduHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/BaiDuHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/BaiDuHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/BaiDuHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/BaiDuHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/BaiDuHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/BaiDuHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【抖音热搜排行榜】接口
https://api.gumengya.com/Api/DouYinHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/DouYinHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/DouYinHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/DouyinHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/DouyinHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/DouYinHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/DouYinHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/DouYinHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【搜狗热搜排行榜】接口
https://api.gumengya.com/Api/SoGouHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/SoGouHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/SouGouHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/SouGouHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/SouGouHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/SouGouHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/SouGouHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/SouGouHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【360搜索热搜排行榜】接口
https://api.gumengya.com/Api/SoHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/SoHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/SoHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/SoHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/SoHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/SoHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/SoHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/SoHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【微博热搜排行榜】接口
https://api.gumengya.com/Api/WeiBoHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/WeiBoHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/WeiBoHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/WeiBoHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/WeiBoHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/WeiBoHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/WeiBoHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/WeiBoHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【知乎热搜排行榜】接口
https://api.gumengya.com/Api/ZhiHuHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/ZhiHuHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/ZhiDuHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/ZhiHuHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/ZhiHuHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/ZhiHuHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/ZhiHuHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/ZhiHuHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【今日头条热搜排行榜】接口
https://api.gumengya.com/Api/TouTiaoHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/TouTiaoHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/TouTiaoHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/TouTiaoHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/TouTiaoHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/TouTiaoHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/TouTiaoHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/TouTiaoHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【快手热搜排行榜】接口
https://api.gumengya.com/Api/KuaiShouHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/KuaiShouHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/KuaiShouHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/KuaiShouHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/KuaiShouHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/KuaiShouHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/KuaiShouHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/KuaiShouHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【百度贴吧热搜排行榜】接口
https://api.gumengya.com/Api/BaiduTieBaHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/BaiduTieBaHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/BaiduTieBaHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/BaiduTieBaHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/BaiduTieBaHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/BaiduTieBaHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/BaiduTieBaHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/BaiduTieBaHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【哔哩哔哩排行榜】接口
https://api.gumengya.com/Api/BiliBliHot
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/BiliBliHot?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/BiliBiliHot', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/BiliBiliHot', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <script> fetch('https://api.gumengya.com/Api/BiliBiliHot',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/BiliBiliHot'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/BiliBiliHot';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/BiliBiliHot' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【客户端信息】接口
https://api.gumengya.com/Api/UserInfo
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/UserInfo?format=json
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/UserInfo', type: 'post', dataType: 'json', async: false, data: { format : 'json', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/UserInfo', data: { format : 'json', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <script> fetch('https://api.gumengya.com/Api/UserInfo',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/UserInfo'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/UserInfo';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/UserInfo' params = { 'format' : 'json', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【IP查询】接口
https://api.gumengya.com/Api/IP
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| ip | 1.2.4.8 | 查询的ip地址(当前仅支持ipv4) |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/IP?format=json&ip=1.2.4.8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/IP', type: 'post', dataType: 'json', async: false, data: { format : 'json', ip : '1.2.4.8', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/IP', data: { format : 'json', ip : '1.2.4.8', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/IP',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', ip : '1.2.4.8', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/IP'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', ip : '1.2.4.8', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/IP';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'ip' => '1.2.4.8', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/IP' params = { 'format' : 'json', 'ip' : '1.2.4.8', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【手机号查询】接口
https://api.gumengya.com/Api/Mobile
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| tel | 13000000000 | 查询的手机号 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Mobile?format=json&tel=13000000000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Mobile', type: 'post', dataType: 'json', async: false, data: { format : 'json', tel : '13000000000', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Mobile', data: { format : 'json', tel : '13000000000', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/Mobile',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', tel : '13000000000', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Mobile'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', tel : '13000000000', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Mobile';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'tel' => '13000000000', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Mobile' params = { 'format' : 'json', 'tel' : '13000000000', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【PING检测】接口
https://api.gumengya.com/Api/Ping
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| ip | 8.8.8.8 | 目标地址(ip或域名) |
| type | ipv4 | 目标类型, ipv6 或 ipv4,默认 ipv4 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Ping?format=json&ip=8.8.8.8&type=ipv4
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Ping', type: 'post', dataType: 'json', async: false, data: { format : 'json', ip : '8.8.8.8', type : 'ipv4', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Ping', data: { format : 'json', ip : '8.8.8.8', type : 'ipv4', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <script> fetch('https://api.gumengya.com/Api/Ping',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', ip : '8.8.8.8', type : 'ipv4', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Ping'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', ip : '8.8.8.8', type : 'ipv4', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Ping';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'ip' => '8.8.8.8', 'type' => 'ipv4', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Ping' params = { 'format' : 'json', 'ip' : '8.8.8.8', 'type' : 'ipv4', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【搜索收录查询】接口
https://api.gumengya.com/Api/CheckSEO
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| domain | aliyun.com | 查询的域名 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/CheckSEO?format=json&domain=aliyun.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/CheckSEO', type: 'post', dataType: 'json', async: false, data: { format : 'json', domain : 'aliyun.com', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/CheckSEO', data: { format : 'json', domain : 'aliyun.com', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/CheckSEO',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', domain : 'aliyun.com', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/CheckSEO'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', domain : 'aliyun.com', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/CheckSEO';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'domain' => 'aliyun.com', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/CheckSEO' params = { 'format' : 'json', 'domain' : 'aliyun.com', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【超级PING检测】接口
https://api.gumengya.com/Api/SPing
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| ip | www.gumengya.com | 目标地址(ip或域名) PING不通不会返回任何数据 返回code 502 |
| v | ipv4icmp | ping协议,默认值ipv4icmp 可选 ipv4icmp ipv6icmp ipv4tcp ipv6tcp |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/SPing?format=json&ip=www.gumengya.com&v=ipv4icmp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/SPing', type: 'post', dataType: 'json', async: false, data: { format : 'json', ip : 'www.gumengya.com', v : 'ipv4icmp', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/SPing', data: { format : 'json', ip : 'www.gumengya.com', v : 'ipv4icmp', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <script> fetch('https://api.gumengya.com/Api/SPing',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', ip : 'www.gumengya.com', v : 'ipv4icmp', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/SPing'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', ip : 'www.gumengya.com', v : 'ipv4icmp', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/SPing';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'ip' => 'www.gumengya.com', 'v' => 'ipv4icmp', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/SPing' params = { 'format' : 'json', 'ip' : 'www.gumengya.com', 'v' : 'ipv4icmp', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【域名WHOIS查询】接口
https://api.gumengya.com/Api/Whois
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| domain | gmit.vip | 查询的域名 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Whois?format=json&domain=gmit.vip
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Whois', type: 'post', dataType: 'json', async: false, data: { format : 'json', domain : 'gmit.vip', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Whois', data: { format : 'json', domain : 'gmit.vip', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/Whois',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', domain : 'gmit.vip', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Whois'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', domain : 'gmit.vip', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Whois';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'domain' => 'gmit.vip', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Whois' params = { 'format' : 'json', 'domain' : 'gmit.vip', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【颜色RGB十六进制互转】接口
https://api.gumengya.com/Api/Color
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| color | %23FF0000 | 颜色(RGB:#FF0000 需要urlencode() 或者将#用%23代替,16进制:255,0,0) |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Color?format=json&color=%23FF0000
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Color', type: 'post', dataType: 'json', async: false, data: { format : 'json', color : '%23FF0000', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Color', data: { format : 'json', color : '%23FF0000', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/Color',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', color : '%23FF0000', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Color'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', color : '%23FF0000', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Color';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'color' => '%23FF0000', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Color' params = { 'format' : 'json', 'color' : '%23FF0000', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【天气信息接口】接口
https://api.gumengya.com/Api/Weather
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| city | 长沙市 | 城市(例:汝州市),不传输即根据IP定位 |
| scene | 1 | 是否查询实况天气(1返回实况,0返回最近3天天气) |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/Weather?format=json&city=汝州市&scene=1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/Weather', type: 'post', dataType: 'json', async: false, data: { format : 'json', city : '汝州市', scene : '1', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/Weather', data: { format : 'json', city : '汝州市', scene : '1', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <script> fetch('https://api.gumengya.com/Api/Weather',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', city : '汝州市', scene : '1', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/Weather'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', city : '汝州市', scene : '1', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/Weather';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'city' => '汝州市', 'scene' => '1', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/Weather' params = { 'format' : 'json', 'city' : '汝州市', 'scene' : '1', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【DNS记录查询检测】接口
https://api.gumengya.com/Api/GetDns
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| domain | gumengya.com | 域名 |
| type | A | 查询类型 |
| dns | 223.5.5.5 | 指定的DNS服务器 |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/GetDns?format=json&domain=gumengya.com&type=A&dns=223.5.5.5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/GetDns', type: 'post', dataType: 'json', async: false, data: { format : 'json', domain : 'gumengya.com', type : 'A', dns : '223.5.5.5', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/GetDns', data: { format : 'json', domain : 'gumengya.com', type : 'A', dns : '223.5.5.5', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <script> fetch('https://api.gumengya.com/Api/GetDns',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', domain : 'gumengya.com', type : 'A', dns : '223.5.5.5', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/GetDns'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', domain : 'gumengya.com', type : 'A', dns : '223.5.5.5', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/GetDns';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'domain' => 'gumengya.com', 'type' => 'A', 'dns' => '223.5.5.5', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/GetDns' params = { 'format' : 'json', 'domain' : 'gumengya.com', 'type' : 'A', 'dns' : '223.5.5.5', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
【行政区域查询】接口
https://api.gumengya.com/Api/District
| 参数 | 示例 | 描述 |
|---|
| format | json | 返回json格式数据 |
| kw | 长沙市 | 地区关键词(例如:长沙市) |
json jsonp xml
GET POST PUT
https://api.gumengya.com/Api/District?format=json&kw=长沙市
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <script src="https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js"></script>
<script> $.ajax({ url: 'https://api.gumengya.com/Api/District', type: 'post', dataType: 'json', async: false, data: { format : 'json', kw : '长沙市', }, beforeSend:function(){ }, complete:function(){ }, error: function() { }, success: function (res) { if(res.code == 200){ console.log(res) }else{ console.log(res) } } }) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script src="https://cdn.jsdelivr.net/npm/axios@0.21.1/dist/axios.min.js"></script>
<script> axios({ method: 'post', url: 'https://api.gumengya.com/Api/District', data: { format : 'json', kw : '长沙市', } }).then((res) => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } }).catch( (error) => { console.log(error); }); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <script> fetch('https://api.gumengya.com/Api/District',{ method:"post", mode: 'cors', headers: { 'Content-Type': 'application/json' }, body:JSON.stringify({ format : 'json', kw : '长沙市', }) }).then( response => response.json() ).then( res => { if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } ).catch( console.error ) </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <script> var xhr = new XMLHttpRequest(); xhr.open('post', 'https://api.gumengya.com/Api/District'); xhr.onreadystatechange = function () { if (xhr.readyState === 4) { var res = JSON.parse(xhr.responseText); if(res.data.code == 200){ console.log(res.data) }else{ console.log(res.data) } } } xhr.send(JSON.stringify( { format : 'json', kw : '长沙市', } )); </script>
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?php
header('Access-Control-Allow-Origin:*'); header('content-type:application/json');
$url = 'https://api.gumengya.com/Api/District';
$curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($curl, CURLOPT_POSTFIELDS, [ 'format' => 'json', 'kw' => '长沙市', ]); $data = curl_exec($curl); curl_close($curl);
echo $data;
$data = json_decode(trim($data,chr(239).chr(187).chr(191))); echo $data->code;
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
import urllib, urllib2, sys, json reload(sys) sys.setdefaultencoding('utf-8') url = 'https://api.gumengya.com/Api/District' params = { 'format' : 'json', 'kw' : '长沙市', } querys = urllib.urlencode(params) request = urllib2.Request(url, data=querys) response = urllib2.urlopen(request) content = response.read() if (content): try: res = json.loads(content) if (res['code'] == '200'): print("请求成功%s" % res) else: print("请求失败%s" % res) except Exception as e: print("解析结果异常:%s" % e) else: print("请求异常")
|
致谢
故梦
故梦api


胜天半子
事已至此,先吃饭吧😋
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 胜天半子!