Get series
<h2>获取指定网址状态码</h2>
<p>请求地址:<a href="https://api.menhood.wang/getstatus/?url">https://api.menhood.wang/getstatus/?url</a>=
示例:<a href="https://api.menhood.wang/getstatus/?url=https://www.baidu.com">https://api.menhood.wang/getstatus/?url=https://www.baidu.com</a>
ajax方式示例:</p>
<pre><code class="language-javascript">$.ajax({
async: true,
type: "GET",
dataType: "text",
url: "https://api.menhood.wang/getstatus/",
data: {
"url": "https://www.baidu.com"
},
success: function (result) {
console.log(result);
if (result == 200 || result == 301 || result == 302) {
console.log('Server is UP');
};
},
error: function () {
console.log('Ajax Get Error!');
}
});</code></pre>
<h2>获取B站视频cid</h2>
<p>请求地址:<a href="https://api.menhood.wang/getcid/?url">https://api.menhood.wang/getcid/?url</a>=</p>
<p>示例:<a href="https://api.menhood.wang/getcid/?url=https://www.bilibili.com/bangumi/play/ep251076">https://api.menhood.wang/getcid/?url=https://www.bilibili.com/bangumi/play/ep251076</a></p>
<p>支持<code>番剧</code>,<code>未下架视频</code>,没有做大范围测试,不知道其他分区如何</p>
<h2>获取客户端ip</h2>
<p>请求地址:<a href="https://api.menhood.wang/getcip">https://api.menhood.wang/getcip</a></p>
<p>返回示例:</p>
<pre><code class="language-javascript">var reutrncip = {"cip": "113.248.154.47"};</code></pre>
<p>使用示例:</p>
<pre><code class="language-html">访问者IP为:<input type="text" value="" id="getcipdemo" />
<script src="https://api.menhood.wang/getcip/"></script>
<script>
document.getElementById('getcipdemo').value=reutrncip['cip'];
</script></code></pre>
<h2>获取RSS更新状态</h2>
<p>请求地址:<a href="https://api.menhood.wang/get-rss-stat/?url">https://api.menhood.wang/get-rss-stat/?url</a>=</p>
<p>示例:<a href="https://api.menhood.wang/get-rss-stat/?url=https://blog.menhood.wang/feed">https://api.menhood.wang/get-rss-stat/?url=https://blog.menhood.wang/feed</a></p>
<p>支持<code>feed</code>,<code>atom.xml</code>,<code>sitemap.xml</code>,与上次访问数据做对比,返回布尔值</p>