GET
文本工具
ROT13 编解码
字母位移 13 位,编码解码是同一个操作。
累计调用 11
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/rot13
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| text | string | 必填 | 要处理的文本 | 测试文本 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | int | 状态码 |
| data.output | string | 处理结果 |
响应示例
200 OK
{"code":200,"msg":"success","data":{"input":"测试文本","output":"测试文本"}}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/rot13?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/rot13?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/rot13?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/rot13?text=%E6%B5%8B%E8%AF%95%E6%96%87%E6%9C%AC", timeout=10)
print(r.json())