https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2
GET
JSON
正常启用
以下参数为接口所需调用信息
| 参数 | 是否必填 | 类型 | 说明 | 示例 |
|---|---|---|---|---|
| msg | 是 | 是 | 需要搜索的小说 | |
| limit | 否 | 否 | 返回数量,默认30 |
https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2
内容解析接口(item_id是搜索接口的first_chapter_item_id):
https://api-v2.cenguigui.cn/api/tomato/content.php?item_id=6672990084289004040
番茄文章文字解密接口:
https://api-v2.cenguigui.cn/api/tomato/api.php?url=https://fanqienovel.com/reader/7276663560427471412?enter_from=page
https://api-v2.cenguigui.cn/api/tomato/api.php?item_id=7276826981654921789
更多接口:
https://api-v2.cenguigui.cn/api/tomato/api/
{
"code": 0,
"message": "SUCCESS",
"data": [
{
"cell_id": 1001,
"show_type": 110,
"cell_name": "",
"cell_operation_type": 0,
"use_recommend": true,
"book_id": "7344163598555417624",
"search_result_id": "7344163598555417624",
"search_high_light": {
"abstract": {
"text": "“求求你,放过我,我怕疼~” “九儿乖,老公轻点,保证不疼。” “呜呜呜,老公骗人,九九再也不要消毒了……” 男人单膝跪地,虔诚的捧起少女右脚,低头轻吹少女被烫红的脚背。 谁能想到,寡情桀骜、手段狠戾的商界枭雄,会是个痴情种。 ------ 褚严修车祸昏迷后,被后妈塞个傻子新娘冲喜。 傻子新娘每晚把自己洗白白,爬床和褚严修贴贴。 连续被贴数日,装植物人的褚总怒掀被子。 掐细腰,锁红唇:“勾引人是要付出代价的!” …… 刚开始,褚严修身边人都认为,食色性也,男人皆逃不过一个色字。 后来,小兔子被养的越发娇气白嫩,众人才惊觉,褚严修是真的爱。 【抵债新娘✚狼式宠爱✚十级撩拨✚摁头亲✚双洁】 注:小傻子不是真傻子,脑子受过伤,失去部分记忆,两人之间有惊喜揭秘,且看且收藏(*  ̄3)(ε ̄ *)。",
"rich_text": "“求求你,放过我,我怕疼~”\n“九儿乖,老公轻点,保证不疼。”\n“呜呜呜,老公骗人,九九再也不要消毒了……”\n男人单膝跪地,虔诚的捧起少女右脚,低头轻吹少女被烫红的脚背。\n谁能想到,寡情桀骜、手段狠戾的商界枭雄,会是个痴情种。\n------\n褚严修车祸昏迷后,被后妈塞个傻子新娘冲喜。\n傻子新娘每晚把自己洗白白,爬床和褚严修贴贴。\n连续被贴数日,装植物人的褚总怒掀被子。\n掐细腰,锁红唇:“勾引人是要付出代价的!” \n……\n刚开始,褚严修身边人都认为,食色性也,男人皆逃不过一个色字。\n后来,小兔子被养的越发娇气白嫩,众人才惊觉,褚严修是真的爱。\n【抵债新娘✚狼式宠爱✚十级撩拨✚摁头亲✚双洁】\n注:小傻子不是真傻子,脑子受过伤,失去部分记忆,两人之间有惊喜揭秘,且看且收藏(*  ̄3)(ε ̄ *)。",
"high_light_position": [],
"sug_type": null
}
},
"book_data": [
此处省略。。。。
// JavaScript调用示例
fetch("https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error("Error:", error));
# Python调用示例
import requests
url = "https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2"
response = requests.get(url)
print(response.json())
// Java调用示例
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
public class ApiExample {
public static void main(String[] args) throws Exception {
HttpClient client = HttpClient.newBuilder()
.version(HttpClient.Version.HTTP_2)
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2"))
.build();
client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
.thenApply(HttpResponse::body)
.thenAccept(System.out::println)
.join();
}
}
<?php
// PHP调用示例
$url = "https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
?>
// C#调用示例
using System;
using System.Net.Http;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
using var client = new HttpClient();
var url = "https://api-v2.cenguigui.cn/api/tomato/?msg=霸道&limit=2";
var response = await client.GetAsync(url);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
// 响应结果将显示在这里