# 笑话API接口

摘要

随机输出一段笑话

接口地址:

https://api.vvhan.com/api/text/joke

请求方式:

GET

返回格式:

TXT/JSON/JS

请求示例:

https://api.vvhan.com/api/text/joke

直接输出:

https://api.vvhan.com/api/text/joke

JSON输出:

https://api.vvhan.com/api/text/joke?type=json

JS输出:

https://api.vvhan.com/api/text/joke?type=js

请求参数:
名称必填说明

typeJSON输出:json,JS输出:js

返回状态:
名称必填说明

success成功:true,失败:false

message返回状态描述信息

返回示例:

{"success":true,"type":"笑话","data":{"id":64,"title":"沉默是金","content":"自习课班里特别乱,班长在黑板上写下了“沉默是金”四个大字。班里一逗比说:“沉默是金,都别跟我说话,我要攒钱。”"}}