猜猜猜~,谜语来了,从简单描述到最后结果,看你能在3个回合内能否将答案给到我~
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| api | string | 是 | 操作类型,仅可为:start(开始游戏)、action(操作)、status(查询状态)、stop(结束当前) | start |
| user_id | string | 是 | 用户id,仅作为区分用户游戏数据,建议为设备标识等具有唯一性的值 | 1828222534 |
| action | string | 否 | 猜谜底操作,仅可为:guess(猜谜底)或为空 | guess |
| answer | string | 否 | 提交猜谜底答案,仅可为猜谜底或为空 | 燕子 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "api",
"type": "string",
"required": true,
"description": "操作类型,仅可为:start(开始游戏)、action(操作)、status(查询状态)、stop(结束当前)",
"example": "start"
},
{
"name": "user_id",
"type": "string",
"required": true,
"description": "用户id,仅作为区分用户游戏数据,建议为设备标识等具有唯一性的值",
"example": "1828222534"
},
{
"name": "action",
"type": "string",
"required": false,
"description": "猜谜底操作,仅可为:guess(猜谜底)或为空",
"example": "guess"
},
{
"name": "answer",
"type": "string",
"required": false,
"description": "提交猜谜底答案,仅可为猜谜底或为空",
"example": "燕子"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "猜谜语",
"description": "猜猜猜~,谜语来了,从简单描述到最后结果,看你能在3个回合内能否将答案给到我~",
"version": "1.0.0"
},
"paths": {
"/v1/guess_riddle.php": {
"get": {
"summary": "猜谜语",
"description": "猜猜猜~,谜语来了,从简单描述到最后结果,看你能在3个回合内能否将答案给到我~",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "api",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "start"
},
"description": "操作类型,仅可为:start(开始游戏)、action(操作)、status(查询状态)、stop(结束当前)"
},
{
"name": "user_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "1828222534"
},
"description": "用户id,仅作为区分用户游戏数据,建议为设备标识等具有唯一性的值"
},
{
"name": "action",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "guess"
},
"description": "猜谜底操作,仅可为:guess(猜谜底)或为空"
},
{
"name": "answer",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "燕子"
},
"description": "提交猜谜底答案,仅可为猜谜底或为空"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "猜谜语",
"description": "猜猜猜~,谜语来了,从简单描述到最后结果,看你能在3个回合内能否将答案给到我~",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "api",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "start"
},
"description": "操作类型,仅可为:start(开始游戏)、action(操作)、status(查询状态)、stop(结束当前)"
},
{
"name": "user_id",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "1828222534"
},
"description": "用户id,仅作为区分用户游戏数据,建议为设备标识等具有唯一性的值"
},
{
"name": "action",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "guess"
},
"description": "猜谜底操作,仅可为:guess(猜谜底)或为空"
},
{
"name": "answer",
"in": "query",
"required": false,
"schema": {
"type": "string",
"example": "燕子"
},
"description": "提交猜谜底答案,仅可为猜谜底或为空"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://xiaoapi.cn",
"description": "当前访问入口(https)"
}
]
}
{
"code": 0,
"user_id": "10001",
"game": "guess_riddle",
"message": "🧩 猜谜语(动物):\n身穿黑色缎袍,尾巴似剪刀,春天回来早,秋天往南跑。\n(提示:打一动物)",
"data": {
"question": "身穿黑色缎袍,尾巴似剪刀,春天回来早,秋天往南跑。",
"category": "动物"
}
}
暂无详细文档
暂无代码示例。管理员可在后台用 AI 生成或手动编写。
// 结果将在此处显示
生效日期:2026年7月22日
欢迎使用 xiaoapi.cn(以下简称"本平台")。在使用本平台提供的 API 服务(以下简称"本服务")前,请务必仔细阅读并充分理解本免责声明。您以任何方式调用、访问或使用本服务,即视为您已阅读、理解并同意接受本声明的全部内容。
本平台作为 API 技术服务的提供方,仅提供技术接口与数据分发服务。本声明的目的在于明确平台与用户之间的责任边界,督促用户合法、合规地使用本服务,防范违法违规行为的发生。
用户在使用本服务时,明确禁止从事以下行为:
在法律法规允许的最大范围内,本平台对以下情形不承担责任:
因用户违反本声明或相关法律法规,导致本平台及其关联方、合作方遭受任何损失(包括但不限于赔偿款、罚款、律师费、诉讼费等),用户同意向本平台及相关方承担全部赔偿责任。
本平台有权根据法律法规变化、业务调整或监管要求,随时修改本声明。修改后的声明将在本页面公布,自公布之日起生效。您继续使用本服务,即视为接受更新后的声明。
如您对本声明有任何疑问,或发现他人存在违规使用本服务的行为,欢迎通过本平台公示的联系方式与我们联系,我们将及时处理。