GET
实用工具
洛克王国图鉴
洛克王国:世界 的精灵图鉴技能图鉴等
累计调用 10
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/Rocom
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 0 | string | 可选 | 路由参数,具体使用方式请看下方返回示例 | 无 |
| keyword | string | 必填 | 搜索内容可以是id,名字等 | 迪莫 |
| q | string | 可选 | keyword别称 | 迪莫 |
| search | string | 可选 | keyword别称 | 迪莫 |
| element | string | 可选 | 属性 | 光 |
| breedable | string | 可选 | 可生蛋 | 1 |
| season | string | 可选 | 赛季 | S2 |
| page | number | 可选 | 页 | 1 |
| limit | number | 可选 | 长度 | 30 |
| size | number | 可选 | 孵蛋预测的大小 | 0 |
| weight | number | 可选 | 孵蛋预测的重量 | 0 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | string | 返回数据 |
| data.page | string | 页码 |
| data.limit | string | 长度 |
| data.total | string | 总量 |
响应示例
200 OK
<?php
/**
* ========================================
* 洛克王国图鉴 API 接口文档
* ========================================
*
* 基础URL: http://api.oiapi.net/api/rocom
*
* 响应格式:
* { "code": 1, "msg": "success", "data": { ... } }
* code=1 成功, code=-1 错误, code=-10 数据不存在
*
* 通用参数:
* page - 页码,默认1
* limit - 每页数量,默认20
* element - 元素筛选,支持中英文(光/light, 火/fire, 水/water 等)
* season - 赛季筛选(S1, S2)
*
* 元素对照:
* 光:light 冰:ice 地:ground 幻:illusion 幽:ghost
* 恶:dark 普通:normal 机械:steel 武:fighting 毒:poison
* 水:water 火:fire 电:electric 翼:flying 草:grass
* 萌:fairy 虫:bug 龙:dragon
*/
// ========================================
// 1. 精灵搜索
// ========================================
// 搜索精灵,同时返回匹配的技能和被动
GET /api/rocom/monsters/迪莫 // 按名称搜索
GET /api/rocom/monsters/monster-xxx // 按ID精确搜索
GET /api/rocom/monsters/001 // 按编号搜索
GET /api/rocom/monsters?element=光 // 按元素筛选
GET /api/rocom/monsters?element=fire // 元素支持英文
GET /api/rocom/monsters?egg_group=植物 // 按蛋组筛选
GET /api/rocom/monsters?breedable=1 // 只查可生蛋精灵
GET /api/rocom/monsters?page=1&limit=20 // 分页
// ========================================
//
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/Rocom?0=%E6%97%A0&keyword=%E8%BF%AA%E8%8E%AB&q=%E8%BF%AA%E8%8E%AB&search=%E8%BF%AA%E8%8E%AB&element=%E5%85%89&breedable=1&season=S2&page=1&limit=30"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/Rocom?0=%E6%97%A0&keyword=%E8%BF%AA%E8%8E%AB&q=%E8%BF%AA%E8%8E%AB&search=%E8%BF%AA%E8%8E%AB&element=%E5%85%89&breedable=1&season=S2&page=1&limit=30");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/Rocom?0=%E6%97%A0&keyword=%E8%BF%AA%E8%8E%AB&q=%E8%BF%AA%E8%8E%AB&search=%E8%BF%AA%E8%8E%AB&element=%E5%85%89&breedable=1&season=S2&page=1&limit=30");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/Rocom?0=%E6%97%A0&keyword=%E8%BF%AA%E8%8E%AB&q=%E8%BF%AA%E8%8E%AB&search=%E8%BF%AA%E8%8E%AB&element=%E5%85%89&breedable=1&season=S2&page=1&limit=30", timeout=10)
print(r.json())