朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

本站免费PHP api接口使用文档

说明

接口域名:Api.sirblog.cn,支持http协议与https协议
因为博主穷,买不起高防服务器,网站加了免费的cdn (cloudflare)所以可能会导致网站访问速度缓慢
如果json返回值包含null就证明你提交的参数有误
如果txt返回值包含null或者为空也证明你提交的参数有误
本站api会不断更新,有兴趣的可以收藏本站!

打赏赞助

[tabs]
[tab name=”红包码” active=”true”]1579916874654.jpg[/tab]
[tab name=”支付码”]Screenshot_2020-01-29-13-15-45-689_com.eg.android.jpg [/tab]
[/tabs]
如果你觉得本站内容对你有帮助,又不想打赏,可以扫下领红包二维码 然后扫到多少转我多少,如果想要套现可以备注填写你的支付宝账号并说明套现。 当然如果你不想我也没得办法 ::bx:zhuakuang::

接口状态

查看接口是否正常,以及其他信息请访问:https://Api.sirblog.cn/web/tongji.html

哔哩哔哩

获取用户信息

Json
链接:https://Api.sirblog.cn/?api=bilibili&inc=data&mid=用户id ;
返回值:
face:头像图片链接 ;
name:用户昵称 ;
sex:性别 ;
top_photo:背景图片链接 ;
txt
获取头像链接:http://Api.sirblog.cn/?api=bilibili&inc=data&mid=用户id&contents=face ;
获取昵称:http://Api.sirblog.cn/?api=bilibili&inc=data&mid=用户id&contents=name ;
获取性别:http://Api.sirblog.cn/?api=bilibili&inc=data&mid=用户id&contents=sex ;
获取背景图链接:http://Api.sirblog.cn/?api=bilibili&inc=data&mid=用户id&contents=top_photo

热门搜索

Json
链接:http://Api.sirblog.cn/?api=bilibili&inc=resou ;
返回值:
id:这个不知道有啥用 ;
seid:随机系列号 ;
type:类型 ;
show_name:热搜内容 ;
name:这个不知道,一直为空 ;
goto_value:视频id,av后面的数字 ;
url:视频链接 ;
txt
获取id(id):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=id ;
获取seid(系列号):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=seid ;
获取type(类型):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=type ;
获取show_name(热搜内容):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=show_name ;
获取name:http://Api.sirblog.cn/?api=bilibili&inc=resou&con=name ;
获取goto_value(视频id):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=goto_value ;
获取url(视频链接):http://Api.sirblog.cn/?api=bilibili&inc=resou&con=url

视频信息(简)

Json

链接
获取视频所有信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=json
返回值:
aid:视频id
cid:视频cid
page:页数
title:视频标题
null:视频不存在
只获取视频cid信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=json&i=cid
只获取视频page信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=json&i=page
只获取视频title:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=json&i=title

txt

链接
获取视频所有信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=txt
只获取视频cid信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=txt&i=cid
只获取视频page信息:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=txt&i=page
只获取视频title:http://Api.sirblog.cn/small/bilibili.html?to=avdata&aid= 视频aid(例如av1000000)&format=txt&i=title

视频所有信息

Json

链接
获取视频所有信息:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=json
返回值:
aid:视频id
tid:视频所在分区编号
tname:视频所在分区名称
copyright:版权(1为自制)
pic:封面图片链接
title:视频标题
author_name:此视频up主名称
author_mid:此视频up主mid
author_face:此视频up主头像地址
view:浏览量
danmaku:弹幕数量
reply:评论数量
favorite:视频被收藏数
coin:视频获取硬币数
share:视频被分享数
like:喜欢此视频人(点赞数)数
dislike:不喜欢此视频人(踩)数
dynamic:视频标签
只获取tid视频所在分区编号:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=json&i=tid
只获取tname视频所在分区名称:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=json&i=tname
只获取版权copyright:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=json&i=copyright
其他:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=json&i=返回值名称

txt

只获取tid视频所在分区编号:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=txt&i=tid
只获取tname视频所在分区名称:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=txt&i=tname
只获取版权copyright:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=txt&i=copyright
其他:http://Api.sirblog.cn/small/bilibili.html?to=avall&aid=视频aid(例如av1000000)&format=txt&i=返回值名称(参考json返回值名称)

渣男一言

Json
链接:http://Api.sirblog.cn/shys.html 或者 http://Api.sirblog.cn/shys.html?op=json ;
返回值:
contents:随机一言内容 ;
likeCount:喜欢人数 ;
dislikeCount:不喜欢人数 ;
txt
获取全部:http://Api.sirblog.cn/shys.html?op=text ;
只获取一言内容:http://Api.sirblog.cn/shys.html?op=text&p=contents ;
只获取当前一言喜欢人数:http://Api.sirblog.cn/shys.html?op=text&p=likeCount或者 http://api.sirblog.cn/shys.html?op=text&p=likeCount&i=jian ;
只获取当前一言不喜欢人数:http://Api.sirblog.cn/shys.html?op=text&p=dislikeCount或者 http://api.sirblog.cn/shys.html?op=text&p=dislikeCount&i=jian

短信轰炸

使用方法

Json
链接:https://Api.sirblog.cn/dx/?phonenumber=被轰炸的手机号&cishu=提交轰炸接口数 ;
返回值:
result:状态(susuccess=>成功 , error=>失败);
nos:成功提交数量;
wsd:错误原因
如果页面502,请尝试减少轰炸次数(服务器配置低,弄不了高并发)

提交接口

本短信轰炸接口原理为把多个获取验证码的接口汇集为一个api
所以想要更有效果还需要各位提交有效的获取短信接口来壮大本api
如果你会抓包,可以尝试贡献自己一份力,如果你不想或不会,那么也谢谢你的支持

如何提交
提交接口地址:https://Api.sirblog.cn/post/dxapi.html
找到一个类似 https://Api.aihecong.com/account/vercode?type=register&antiBrush=ecdfddd24937106ex&callback=JSONP_1580388414994&tel=手机号
的网址可以发布到评论区,或者我的邮箱:zhuchunshu999@gmail.com 也可以发送到我QQ:467621795

刷IP

使用方法

提交到链接:http://Api.sirblog.cn/shuaip/?cishu=单次刷取ip个数&url=网址(要加协议头http,https)

返回值

Json
result:状态(susuccess=>成功 , error=>失败);
getquantity:刷取次数;
wsd:错误原因

短网址

使用方法

JSon
提交到链接:http://Api.sirblog.cn/small/surl.html?url=被缩短的链接&format=json (输出格式)
返回值
result:状态 success是成功,error是失败
content:结果 (生成后的短链接)
txt
提交到链接:http://Api.sirblog.cn/small/surl.html?url=被缩短的链接&format=txt(输出格式)
即可

图片验证码

生成

访问链接:api.sirblog.cn/class/yzm.html 生成验证码(验证码在验证通过前一直有效,验证通过后会删除旧验证码)

查看

JSON
查看验证码信息:http://Api.sirblog.cn/small/vccode.html
返回值:
result:状态(表示查看成功或失败)
pic:验证码图片链接(重新生成验证码链接)
vcode:验证码

验证

Json
链接:http://Api.sirblog.cn/small/vccode.html?type=yz&vpass=已生成的验证码字符
返回值:
result:验证结果(error是失败)
msg:失败原因

IP查询

参数作用表格

参数名 说明 支持的输出方式
code 返回代码 200为成功 json,txt
data 返回的数据 json
ip 被查询的ip json,txt
country IP所在的国家 json,txt
region IP所在的省份 json,txt
city IP所在的市 json,txt
isp 机房 json,txt
country_id 国家id json,txt
region_id 省份id json,txt
city_id 市id json,txt
isp_id 机房id json,txt

查询一下自己IP信息,就可以看到省份id,市区id是干嘛的(身份证)

使用

Json
查看当前(自己)IP信息:http://Api.sirblog.cn/small/chaip.PHP?format=json
查看指定IP信息:http://Api.sirblog.cn/small/chaip.PHP?format=json&ip=ip地址
返回值说明看上面表格
txt
例如查看自己ip所在的国家: http://Api.sirblog.cn/small/chaip.PHP?format=txt&i=data_country
例如查看指定ip所在的国家: http://Api.sirblog.cn/small/chaip.PHP?format=txt&ip=IP地址&i=data_country
调用方式即为:链接地址&i=data_参数名
示例:http://Api.sirblog.cn/small/chaip.PHP?format=txt&i=data_参数名

说明

参数名区分大小写

获取一言

Json

链接:http://Api.sirblog.cn/yan.html?format=json

txt

链接:http://Api.sirblog.cn/yan.html?format=txt

返回值说明

名称 说明
id 当前一言id
From 当前一言分类名
yiyan 一言内容
author 当前一言作者
time 一言生成时的 Unix 时间戳

添加一言

前往https://xgdb.net 登录后首页有提交按钮 , 另外感谢你的支持与付出

{C08488C0-7BB0-46B6-867C-6646454B0B05}.png

特别鸣谢排名不分先后

Name Blog
@桔子博客-站长 http://cxind.cn
@唐宋 http://www.tangsong.fun/
@司小虎 https://sxhblog.me/
@更多支持我的人 未找到

谢谢你们的陪伴,鼓励,支持与指导,谢谢你们

如果没有找到你的名字请联系博主添加

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 本站免费PHP api接口使用文档

评论 40

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #45

    My relatives all the time say that I am wasting my time here at net, but I know I
    am getting familiarity every day by reading such nice articles.

    tinyurl.com7个月前 (09-10)回复
  2. #44

    I’m extremely impressed along with your writing skills as well as with the format on your weblog.

    Is this a paid subject matter or did you customize it your self?
    Anyway keep up the excellent quality writing, it is uncommon to see a great
    weblog like this one today..

    tinyurl.com7个月前 (09-09)回复
  3. #43

    We are a bunch of volunteers and starting
    a brand new scheme in our community. Your site offered us with helpful info
    to work on. You’ve performed an impressive task and our entire group will be thankful to you.

  4. #42

    It’s not my first time to pay a visit this web site, i am browsing this website dailly and take
    pleasant facts from here every day.

    my blog … special

    special7个月前 (09-02)回复
  5. #41

    Greetings! I know this is kind of off topic but I was wondering which blog platform are you
    using for this site? I’m getting sick and tired of Wordpress because I’ve
    had problems with hackers and I’m looking at alternatives for
    another platform. I would be awesome if you could point me in the direction of a good platform.

    Here is my website: special

    special7个月前 (09-02)回复
  6. #40

    This is a topic that is near to my heart… Take care! Exactly where are your
    contact details though?

    tinyurl.com7个月前 (08-17)回复
  7. #39

    Hi there, i read your blog from time to time and i own a similar one and
    i was just wondering if you get a lot of spam feedback? If so how do you
    prevent it, any plugin or anything you can suggest?
    I get so much lately it’s driving me insane so any assistance is very much appreciated.

    tinyurl.com7个月前 (08-15)回复
  8. #38

    You really make it seem so easy with your presentation but I find this matter to be actually something which I think I
    would never understand. It seems too complex and very broad for me.
    I am looking forward for your next post, I’ll try to get the hang
    of it!

  9. #37

    Usually I do not read post on blogs, however I
    would like to say that this write-up very compelled me to take a look
    at and do it! Your writing taste has been surprised me.
    Thanks, very great post.

    Look into my page … coupon

    coupon8个月前 (08-12)回复
  10. #36

    Somebody necessarily assist to make severely posts I might state.
    That is the very first time I frequented your web page and up to now?
    I amazed with the analysis you made to make this actual publish extraordinary.
    Great task!

    http://tinyurl.com8个月前 (08-10)回复