先参考这个文章完成部署 SearXNG 手把手教你安装部署AI 的免费搜索引擎

查看返回
bash
{
"query": "今天周几",
"number_of_results": 0,
"results": [
{
"title": "今天是第几周,星期几,今天是2025年的第几周-万年历",
"url": "https://wannianli.tianqi.com/today/zhou/",
"content": "3天前 - 万年历为您提供2025年今天是星期几,第几周,可以查询农历、新历日期,包括今日节日、节气等信息。",
"engine": "360search",
"template": "default.html",
"parsed_url": [
"https",
"wannianli.tianqi.com",
"/today/zhou/",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"360search"
],
"positions": [
1
],
"score": 1.0,
"category": "general",
"publishedDate": null
},
{
"title": "今天是第几周星期几、日历第几周对照表-天天黄历",
"url": "https://m.tthuangli.com/jinrihuangli/week/&wd=&eqid=ac6472b400420492000000046477d6b6",
"content": "今天是今年的 第349天 ,12月的 第15天今天是今年的 第249个 工作日,星期一, ...",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"https",
"m.tthuangli.com",
"/jinrihuangli/week/&wd=&eqid=ac6472b400420492000000046477d6b6",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
1
],
"score": 1.0,
"category": "general",
"publishedDate": null
},
{
"title": "今日是星期几,今日是周几-老黄历-通晓查询",
"url": "https://mhuangli.txcx.com/jintian-xingqiji.html",
"content": "2025年11月26日 - 老黄历为您提供今日是星期几,今日星期几,今日是本月星期几,今日是本年星期几,今日为星期几,今日是星期几查询,今日是本月星期几查询,今日是本年星期几...",
"engine": "360search",
"template": "default.html",
"parsed_url": [
"https",
"mhuangli.txcx.com",
"/jintian-xingqiji.html",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"360search"
],
"positions": [
2
],
"score": 0.5,
"category": "general",
"publishedDate": null
},
{
"title": "今天是星期几 今天是今年第几周星期几_星期几查询",
"url": "http://m.xiezuoyi.com/179000/",
"content": "今日是 星期一 今日是2025年的 第51周,12月的 第3周 今日是2025年的 第349天,距离全年结束还有 17天 当前节气:大雪 当前季节:冬季 2025年12月有几个星期零几天 2025年12月有4个星期零3天 ...",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"http",
"m.xiezuoyi.com",
"/179000/",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
3
],
"score": 0.3333333333333333,
"category": "general",
"publishedDate": null
},
{
"title": "今天是第几周、周数计算器",
"url": "https://z.time163.com/",
"content": "在线周数计算器,可查看今天是今年的第几周、当月的第几周,支持指定日期查询。",
"publishedDate": null,
"thumbnail": null,
"engine": "quark",
"template": "default.html",
"parsed_url": [
"https",
"z.time163.com",
"/",
"",
"",
""
],
"img_src": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
4
],
"score": 0.25,
"category": "general"
},
{
"title": "今天是星期几 今天是今年第几周星期几-星期几查询",
"url": "http://m.ttfaxing.com/jishi/new/xqj.html",
"content": "今日是 星期二 今日是2025年的 第51周,12月的 第3周 今日是2025年的 第350天,距离全年结束还有 16天 当前节气:大雪 当前季节:冬季 2025年12月有几个星期零几天 2025年12月有4个星期零3天 ...",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"http",
"m.ttfaxing.com",
"/jishi/new/xqj.html",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
5
],
"score": 0.2,
"category": "general",
"publishedDate": null
},
{
"title": "今天是星期几 今天是今年第几周星期几_星期几查询",
"url": "http://m.haoshilao.com/suanming/xinrili/xqj.htm",
"content": "今日是2025年的 第51周 , 12月的 第3周今日是2025年的 第350天 ,距离全年结束还有 16天当前节气: 大雪 当前季节: 冬季2025年12月有几个星期零几天...",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"http",
"m.haoshilao.com",
"/suanming/xinrili/xqj.htm",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
6
],
"score": 0.16666666666666666,
"category": "general",
"publishedDate": null
},
{
"title": "今天是第几天&第几周-Day Number Today",
"url": "https://daynumber.now/zh",
"content": "今天是2025年12月14日星期日,年度第348天(全年365天)。还剩17天可以规划、追踪和完成今年重要的事情。当前是 ISO 第 50 周。使用下方链接跳转到日历和计算工具。日历图片加载中. 日...",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"https",
"daynumber.now",
"/zh",
"",
"",
""
],
"img_src": "",
"thumbnail": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
7
],
"score": 0.14285714285714285,
"category": "general",
"publishedDate": null
},
{
"title": "今天是什么日子_今天几号_今天是第几周_今天是农历几月几日星期几_日期查询网",
"url": "http://m.estong.com/",
"content": "今天是什么日子_今天几号_今天是第几周_今天是农历几月几日星期几_日期查询网今天是:2025-12-17今天是2025年的第51周今天是12月的第 3 周今天是第4季度的第 12 周2025年12月1...",
"publishedDate": null,
"thumbnail": null,
"engine": "quark",
"template": "default.html",
"parsed_url": [
"http",
"m.estong.com",
"/",
"",
"",
""
],
"img_src": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
8
],
"score": 0.125,
"category": "general"
},
{
"title": "今天周几 | 刘佳梁",
"url": "https://m.kugou.com/kgmixsong/brycrfc6.html?fromkuake",
"content": "",
"thumbnail": "https://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cDovL2ltZ2Uua3Vnb3UuY29tL3N0ZG11c2ljLzQ4MC8yMDI1MDEwNi8yMDI1MDEwNjE3MzEwMDgzOTI0Ny5qcGc%3D&sign=yx%3Acc90oPoZgSZ_KDDuiTbHxegLijQ%3D&tv=0_0",
"engine": "quark",
"template": "default.html",
"parsed_url": [
"https",
"m.kugou.com",
"/kgmixsong/brycrfc6.html",
"",
"fromkuake",
""
],
"img_src": "",
"priority": "",
"engines": [
"quark"
],
"positions": [
2
],
"score": 0.5,
"category": "general",
"publishedDate": null
}
],
"answers": [],
"corrections": [],
"infoboxes": [],
"suggestions": [],
"unresponsive_engines": [
[
"baidu",
"Suspended: CAPTCHA"
]
]
}
编写返回类
java
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
@Data
public class AiSearXNGWebSearchResponse {
/**
* 搜索词(带引号,与请求一致)
*/
private String query;
/**
* 结果数量(注意:示例中返回0,但实际有数据,可能是服务端字段定义问题)
*/
private Integer number_of_results;
/**
* 搜索结果列表
*/
private List<WebPage> results;
/**
* 其他字段(根据返回JSON补充,无数据时可为null)
*/
private List<Object> answers;
private List<Object> corrections;
private List<Object> infoboxes;
private List<Object> suggestions;
@JsonProperty("unresponsive_engines")
private List<List<String>> unresponsive_engines;
/**
* 网页对象(完全匹配返回结果的结构)
*/
@Data
public static class WebPage {
/**
* 结果标题
*/
private String title;
/**
* 结果链接
*/
private String url;
/**
* 内容简短描述(对应返回JSON的content字段)
*/
private String content;
/**
* 搜索引擎(如sogou)
*/
private String engine;
/**
* 模板名称
*/
private String template;
/**
* 解析后的URL分段 [协议, 域名, 路径, ?, 查询参数, #]
*/
private List<String> parsed_url;
/**
* 图片地址
*/
private String img_src;
/**
* 缩略图地址
*/
private String thumbnail;
/**
* 优先级
*/
private String priority;
/**
* 引擎列表
*/
private List<String> engines;
/**
* 结果位置
*/
private List<Integer> positions;
/**
* 结果得分
*/
private Double score;
/**
* 结果分类
*/
private String category;
/**
* 发布日期
*/
private String publishedDate;
}
}