GET
图片壁纸
五子棋
图片版五子棋,有三三禁手,执黑先行
累计调用 8
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/GoBang
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 0 | string | 可选 | 路由参数 | create,end,reset,play,分别是:创建,结束,重置,玩。create时需要访问获取下发房间uid |
| format | string | 可选 | 与0一致 | create,end,reset,play,分别是:创建,结束,重置,玩 |
| player1 | string | 可选 | create时必填玩家1,默认执黑棋 | 2354452553 |
| player2 | string | 可选 | create时必填,玩家2 | 2354452553 |
| player | string | 可选 | play时必填,下棋人 | 2354452553 |
| uid | string | 必填 | 除了create不需要,其他都需要,下发的玩家房间id | 0 |
| pos | string | 可选 | play时下棋位置参数 | a1 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | create时返回JSON,此值为下发的uid |
| X-Game-Uid | string | 这是返回头部,下发的uid,同message |
| X-Game-Winner | string | 返回头部,胜利玩家 |
响应示例
200 OK
无
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/GoBang?0=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9%E3%80%82create%E6%97%B6%E9%9C%80%E8%A6%81%E8%AE%BF%E9%97%AE%E8%8E%B7%E5%8F%96%E4%B8%8B%E5%8F%91%E6%88%BF%E9%97%B4uid&format=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9&player1=2354452553&player2=2354452553&player=2354452553&pos=a1"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/GoBang?0=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9%E3%80%82create%E6%97%B6%E9%9C%80%E8%A6%81%E8%AE%BF%E9%97%AE%E8%8E%B7%E5%8F%96%E4%B8%8B%E5%8F%91%E6%88%BF%E9%97%B4uid&format=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9&player1=2354452553&player2=2354452553&player=2354452553&pos=a1");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/GoBang?0=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9%E3%80%82create%E6%97%B6%E9%9C%80%E8%A6%81%E8%AE%BF%E9%97%AE%E8%8E%B7%E5%8F%96%E4%B8%8B%E5%8F%91%E6%88%BF%E9%97%B4uid&format=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9&player1=2354452553&player2=2354452553&player=2354452553&pos=a1");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/GoBang?0=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9%E3%80%82create%E6%97%B6%E9%9C%80%E8%A6%81%E8%AE%BF%E9%97%AE%E8%8E%B7%E5%8F%96%E4%B8%8B%E5%8F%91%E6%88%BF%E9%97%B4uid&format=create%EF%BC%8Cend%EF%BC%8Creset%EF%BC%8Cplay%EF%BC%8C%E5%88%86%E5%88%AB%E6%98%AF%EF%BC%9A%E5%88%9B%E5%BB%BA%EF%BC%8C%E7%BB%93%E6%9D%9F%EF%BC%8C%E9%87%8D%E7%BD%AE%EF%BC%8C%E7%8E%A9&player1=2354452553&player2=2354452553&player=2354452553&pos=a1", timeout=10)
print(r.json())