1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
|
<?php return [
'version' => '1.0',
'info' => [
'style' => 'ROA',
'product' => 'IQS',
'version' => '2024-11-11',
],
'directories' => [
'UnifiedSearch',
[
'id' => 206773,
'title' => '其他',
'type' => 'directory',
'children' => [
'GenericSearch',
'AiSearch',
'GenericAdvancedSearch',
'GlobalSearch',
],
],
[
'id' => 0,
'title' => '其它',
'type' => 'directory',
'children' => [
'GetIqsUsage',
'MultimodalSearch',
'ReadPageBasic',
'ReadPageScrape',
],
],
],
'components' => [
'schemas' => [
'AISearchQuery' => [
'title' => '搜索查询条件',
'type' => 'object',
'properties' => [
'searchEngine' => [
'title' => '搜索引擎',
'type' => 'string',
'required' => false,
'enum' => [
'quark',
'bing',
'baidu',
'google',
],
],
'searchPlan' => [
'title' => '套餐计划',
'type' => 'string',
'required' => false,
'enum' => [
'basic',
'advanced',
],
],
'query' => [
'title' => '待查询问题',
'type' => 'string',
'required' => false,
],
'cardQuery' => [
'title' => '卡片类型',
'type' => 'string',
'required' => false,
'enum' => [
'active',
'off',
],
],
'page' => [
'title' => '页码',
'type' => 'integer',
'format' => 'int32',
'required' => false,
],
'sessionId' => [
'title' => '会话id',
'type' => 'string',
'required' => false,
],
'card' => [
'title' => '是否开启卡片搜索',
'type' => 'string',
'required' => false,
],
'timeRange' => [
'title' => '网页发布时间范围',
'type' => 'string',
'required' => false,
'enum' => [
'OneDay',
'OneWeek',
'OneMonth',
'OneYear',
'NoLimit',
],
],
],
],
'GenericSearchResult' => [
'title' => '搜索结果',
'type' => 'object',
'properties' => [
'pageItems' => [
'title' => '网页内容列表',
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/ScorePageItem',
],
],
'requestId' => [
'title' => 'requestId',
'type' => 'string',
'example' => '123456',
],
'weiboItems' => [
'title' => '微博列表',
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/WeiboItem',
],
],
'searchInformation' => [
'title' => '搜索信息',
'$ref' => '#/components/schemas/SearchInformation',
],
'sceneItems' => [
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/SceneItem',
],
],
'queryContext' => [
'title' => '查询上下文信息',
'$ref' => '#/components/schemas/QueryContext',
],
],
],
'GetIqsUsageResult' => [
'type' => 'object',
'properties' => [
'records' => [
'type' => 'array',
'items' => [
'type' => 'object',
'properties' => [
'date' => [
'type' => 'string',
],
'billingQps' => [
'type' => 'integer',
'format' => 'int32',
],
'totalCalls' => [
'type' => 'integer',
'format' => 'int32',
],
'valueAddedSummary' => [
'type' => 'integer',
'format' => 'int32',
],
'failedCalls' => [
'type' => 'integer',
'format' => 'int32',
],
'valueAddedAdvanced' => [
'type' => 'integer',
'format' => 'int32',
],
'subAccountId' => [
'type' => 'string',
],
'engineType' => [
'type' => 'string',
],
'ladderType' => [
'type' => 'string',
],
'api' => [
'type' => 'string',
],
'successCalls' => [
'type' => 'integer',
'format' => 'int32',
],
'mainAccountId' => [
'type' => 'string',
],
],
],
],
],
],
'GlobalPageItem' => [
'title' => '搜索结果内容项',
'description' => '搜索网页结果',
'type' => 'object',
'properties' => [
'snippet' => [
'title' => '搜索结果的description截取(文本格式)',
'description' => '搜索结果的description截取(文本格式)',
'type' => 'string',
'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...',
],
'link' => [
'title' => '搜索结果指向的完整网址',
'description' => '搜索结果指向的完整网址',
'type' => 'string',
'required' => true,
'example' => 'https://baijiahao.baidu.com/s?id=1787881554557805096',
],
'title' => [
'title' => '搜索结果标题(纯文本)',
'description' => '搜索结果标题(纯文本)',
'type' => 'string',
'required' => true,
'example' => '小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格',
],
],
],
'GlobalQueryContext' => [
'description' => '查询上下文信息',
'type' => 'object',
'properties' => [
'originalQuery' => [
'title' => '初始查询条件',
'description' => '初始查询条件',
'type' => 'object',
'properties' => [
'query' => [
'description' => '查询关键字',
'type' => 'string',
'example' => '特朗普关税最新消息',
],
'page' => [
'description' => '页码',
'type' => 'string',
'example' => '1',
],
'timeRange' => [
'description' => '时间范围',
'type' => 'string',
'example' => 'NoLimit',
],
],
],
],
],
'GlobalSceneItem' => [
'description' => '场景化垂类 API召回',
'type' => 'object',
'properties' => [
'detail' => [
'description' => 'JSON结构的明细信息',
'type' => 'string',
'example' => '{'."\n"
.'"snippet": "截至2025年3月7日,SpaceX星舰已经发射了8次,并取得4次成功及4次失败。",'."\n"
.'"snippetHighlighted": ["8次"],'."\n"
.'"title": "星舰发射任务列表"'."\n"
.'}',
],
'type' => [
'description' => '垂类数据的类型',
'type' => 'string',
'example' => 'answerBox',
],
],
],
'GlobalSearchInformation' => [
'title' => '搜索执行信息',
'description' => '搜索执行信息',
'type' => 'object',
'properties' => [
'total' => [
'title' => '总数',
'description' => '总数',
'type' => 'integer',
'format' => 'int64',
'example' => '10339',
],
'searchTime' => [
'title' => '搜索时间(ms)',
'description' => '搜索时间(ms)',
'type' => 'integer',
'format' => 'int64',
'example' => '1200',
],
],
],
'GlobalSearchResult' => [
'title' => '搜索结果',
'description' => '搜索结果',
'type' => 'object',
'properties' => [
'requestId' => [
'title' => 'requestId',
'description' => 'requestId',
'type' => 'string',
'example' => '123456',
],
'queryContext' => [
'description' => '查询上下文',
'$ref' => '#/components/schemas/GlobalQueryContext',
],
'pageItems' => [
'title' => '网页内容列表',
'description' => '网页内容列表',
'type' => 'array',
'items' => [
'description' => '召回网页内容',
'$ref' => '#/components/schemas/GlobalPageItem',
],
],
'sceneItems' => [
'description' => '场景化垂类API召回',
'type' => 'array',
'items' => [
'description' => '场景化垂类API结构体',
'$ref' => '#/components/schemas/GlobalSceneItem',
],
],
'searchInformation' => [
'description' => '搜索信息',
'$ref' => '#/components/schemas/GlobalSearchInformation',
],
],
],
'IncludeImage' => [
'title' => '图片信息',
'description' => '搜索结果网址中的图片,最多三张',
'type' => 'object',
'properties' => [
'imageLink' => [
'title' => '图片链接',
'type' => 'string',
'required' => false,
'example' => 'http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg',
],
'width' => [
'title' => '图片宽度(像素)',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '700',
],
'height' => [
'title' => '图片高度(像素)',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '324',
],
],
'example' => 'https://pics1.baidu.com/feed/a50f4bfbfbedab64b41c99a3014dc9ce78311ef4@f_auto?token=c559d5772cb91aae52ed5a8272c4525e&f=jpeg',
],
'LocationInfo' => [
'type' => 'object',
'properties' => [
'ip' => [
'type' => 'string',
],
'city' => [
'type' => 'string',
],
],
],
'MultimodalOriginalQuery' => [
'type' => 'object',
'properties' => [
'query' => [
'type' => 'string',
],
],
],
'MultimodalQueryContext' => [
'description' => '原始查询内容',
'type' => 'object',
'properties' => [
'originalQuery' => [
'description' => '阿里巴巴',
'$ref' => '#/components/schemas/MultimodalOriginalQuery',
],
],
],
'MultimodalSearchBody' => [
'description' => '搜索条件',
'type' => 'object',
'properties' => [
'query' => [
'description' => '查询内容',
'type' => 'string',
'example' => '阿里巴巴',
],
'advancedParams' => [
'description' => '附加查询项,比如屏蔽站点',
'type' => 'object',
'example' => '{'."\n"
.' "excludeSites": "www.360doc.com,weibo.com"'."\n"
.' }',
],
],
],
'MultimodalSearchOutput' => [
'description' => '查询结果',
'type' => 'object',
'properties' => [
'requestId' => [
'description' => '请求id',
'type' => 'string',
'example' => 'sdfsd234-2vxcg345-345vc',
],
'queryContext' => [
'description' => '查询上下文信息',
'$ref' => '#/components/schemas/MultimodalQueryContext',
],
'searchInformation' => [
'description' => '搜索基本信息',
'$ref' => '#/components/schemas/SearchInformation',
],
'imageItems' => [
'description' => '图像列表',
'type' => 'array',
'items' => [
'description' => '图像信息',
'$ref' => '#/components/schemas/UnifiedImageItem',
],
],
],
],
'QueryContext' => [
'type' => 'object',
'properties' => [
'originalQuery' => [
'title' => '初始查询条件',
'type' => 'object',
'properties' => [
'query' => [
'type' => 'string',
],
'timeRange' => [
'type' => 'string',
],
'industry' => [
'type' => 'string',
],
'page' => [
'type' => 'string',
],
],
],
'rewrite' => [
'type' => 'object',
'properties' => [
'enabled' => [
'title' => '改写是否开启',
'type' => 'boolean',
],
'timeRange' => [
'title' => '改写后的timeRange,空标识无改写或者改写结果与原始结果一致',
'type' => 'string',
],
],
],
],
],
'ReadPageBody' => [
'description' => 'post body(json 格式)',
'type' => 'object',
'properties' => [
'url' => [
'description' => '解析的目标地址,必须以 http:// 或 https:// 开头',
'type' => 'string',
'required' => true,
'example' => 'https://help.aliyun.com/document_detail/2837301.html?spm=a2c4g.11186623.help-menu-2837261.d_0_0_0.59ed3e95CppOt2&scm=20140722.H_2837301._.OR_help-T_cn~zh-V_1',
],
'timeout' => [
'description' => '全链路处理超时时间,单位:ms'."\n"
."\n"
.'可选值:[0, 180000]'."\n"
."\n"
.'默认值:60000',
'type' => 'integer',
'format' => 'int32',
'example' => '60000',
],
'pageTimeout' => [
'description' => 'url 读取超时时间,pageTimeout 应小于 timeout 时长'."\n"
."\n"
.'默认值:10000',
'type' => 'integer',
'format' => 'int32',
'example' => '10000',
],
'formats' => [
'description' => '解析结果格式'."\n"
.'- rawHtml:目标站点的 html'."\n"
.'- html: 根据 readabilityMode 处理后的页面内容'."\n"
.'- markdown:根据 html 转换成的 markdown 内容'."\n"
.'- text:html 中的文本内容',
'type' => 'array',
'items' => [
'description' => '默认值:[\'html\', \'markdown\', \'text\']',
'type' => 'string',
'example' => '[\'html\', \'markdown\', \'text\']',
],
],
'location' => [
'description' => '无需传入',
'type' => 'string',
'example' => 'null',
],
'maxAge' => [
'description' => '最大缓存时间,单位(秒),默认值:1296000。'."\n"
."\n"
.'- 若缓存时间小于 maxAge,则返回缓存内容;'."\n"
."\n"
.'- 若 maxAge 等于 0,则不使用缓存。',
'type' => 'integer',
'format' => 'int32',
'example' => '1296000',
],
'readability' => [
'description' => '解析结果可读性配置',
'type' => 'object',
'properties' => [
'readabilityMode' => [
'description' => '- none:不删除信息,默认为 none'."\n"
."\n"
.'- normal: 基于自研算法,剔除目标页面无关信息(页头/页脚,导航等)'."\n"
."\n"
.'- article: 基于自研算法,获取站点主要正文内容(适用于博客、新闻站点,不适用于目录页、导航页)',
'type' => 'string',
'enumValueTitles' => [
'normal' => 'normal',
'none' => 'none',
'article' => 'article',
],
'example' => 'none',
],
'excludeAllImages' => [
'description' => '是否剔除所有图片'."\n"
."\n"
.'默认值:false',
'type' => 'boolean',
'example' => 'false',
],
'excludeAllLinks' => [
'description' => '是否剔除所有链接'."\n"
."\n"
.'默认值:false',
'type' => 'boolean',
'example' => 'false',
],
'excludedTags' => [
'description' => '指定排除的标签',
'type' => 'array',
'items' => [
'description' => '[]',
'type' => 'string',
'example' => '[\'form\', \'header\', \'footer\', \'nav\']',
],
],
],
],
],
],
'ReadPageItem' => [
'description' => 'post body (json 格式)',
'type' => 'object',
'properties' => [
'statusCode' => [
'description' => '1. 若目标站点请求成功,返回目标 url 的 HttpCode。'."\n"
."\n"
.'2. 若目标站点请求失败,返回 IQS 定制错误码:'."\n"
."\n"
.' 2.1 4030:目标站点安全限制(robots.txt、安全策略等)'."\n"
.' '."\n"
.' 2.2 4080:请求超时'."\n"
.' '."\n"
.' 2.3 4290:触发站点限流策略'."\n"
.' '."\n"
.' 2.4 5010:未知异常',
'type' => 'integer',
'format' => 'int32',
'example' => '200',
],
'errorMessage' => [
'description' => '目标 url 相关的错误',
'type' => 'string',
'example' => 'null',
],
'rawHtml' => [
'description' => '目标 url 的原始 html',
'type' => 'string',
'example' => '<!doctype html><html lang=\\"en\\"><head><title>Example Domain</title><meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1\\"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.<p><a href=\\"https://iana.org/domains/example\\">Learn more</a></div></body></html>\\n',
],
'html' => [
'description' => '目标 url 的可读 html',
'type' => 'string',
'example' => '<html>\\n<head><title>Example Domain</title></head>\\n<body><div>\\n<h1>Example Domain</h1>\\n<p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p>\\n<p><a href=\\"https://iana.org/domains/example\\">Learn more</a></p>\\n</div></body>\\n</html>',
],
'text' => [
'description' => '目标 url 的文本内容',
'type' => 'string',
'example' => '# Example Domain\\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\\nLearn more\\n',
],
'markdown' => [
'description' => '目标 url 的 markdown 内容',
'type' => 'string',
'example' => '# Example Domain\\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\\n[Learn more](https://iana.org/domains/example)\\n',
],
'screenshot' => [
'type' => 'string',
],
],
],
'ReadPageScrapeBody' => [
'description' => 'post body(json 格式)',
'type' => 'object',
'properties' => [
'url' => [
'description' => '解析的目标地址,必须以 http:// 或 https:// 开头',
'type' => 'string',
'required' => true,
'example' => 'https://www.example.com',
],
'timeout' => [
'description' => '全链路处理超时时间,单位:ms'."\n"
."\n"
.'可选值:[0, 180000]'."\n"
."\n"
.'默认值:60000',
'type' => 'integer',
'format' => 'int32',
'example' => '60000',
],
'pageTimeout' => [
'description' => '等待目标站点资源完全加载的超时时间,pageTimeout 应小于 timeout 时长'."\n"
."\n"
.'默认值:15000',
'type' => 'integer',
'format' => 'int32',
'example' => '15000',
],
'location' => [
'description' => '无需传入',
'type' => 'string',
'example' => 'null',
],
'maxAge' => [
'description' => '最大缓存时间,单位(秒),默认值:1296000。'."\n"
.'1. 若缓存时间小于 maxAge,则返回缓存内容;'."\n"
.'2. 若 maxAge 等于 0,则不使用缓存。',
'type' => 'integer',
'format' => 'int32',
'example' => '1296000',
],
'readability' => [
'description' => '解析结果可读性配置',
'type' => 'object',
'properties' => [
'readabilityMode' => [
'description' => 'none:不删除信息,默认为 none'."\n"
."\n"
.'normal: 基于自研算法,剔除目标页面无关信息(页头/页脚,导航等)'."\n"
."\n"
.'article: 基于自研算法,获取站点主要正文内容(适用于博客、新闻站点,不适用于目录页、导航页)',
'type' => 'string',
'example' => 'none',
],
'excludeAllImages' => [
'description' => '是否剔除所有图片'."\n"
."\n"
.'默认值:false',
'type' => 'boolean',
'example' => 'false',
],
'excludeAllLinks' => [
'description' => '是否剔除所有链接'."\n"
."\n"
.'默认值:false',
'type' => 'boolean',
'example' => 'false',
],
'excludedTags' => [
'description' => '指定排除的标签',
'type' => 'array',
'items' => [
'description' => '[]',
'type' => 'string',
'example' => '[\'form\', \'header\', \'footer\', \'nav\']'."\n",
],
],
],
],
'formats' => [
'description' => '解析结果格式'."\n"
."\n"
.'- rawHtml:目标站点的 html'."\n"
.'- html: 根据 readabilityMode 处理后的页面内容'."\n"
.'- markdown:根据 html 转换成的 markdown 内容'."\n"
.'- text:html 中的文本内容'."\n"
.'- screenshot: 目标站点截图',
'type' => 'array',
'items' => [
'description' => '默认值:["html", "markdown", "screenshot"]',
'type' => 'string',
'example' => '["html", "markdown", "screenshot"]'."\n"
."\n",
],
],
],
],
'RequestContents' => [
'description' => '搜索请求返回字段定义',
'type' => 'object',
'properties' => [
'mainText' => [
'title' => '是否返回正文, 默认:false',
'description' => '是否返回正文, 默认:false',
'type' => 'boolean',
],
'markdownText' => [
'title' => '是否返回markdown, 默认:false',
'description' => '是否返回markdown, 默认:false',
'type' => 'boolean',
],
'summary' => [
'title' => '是否返回增强summary, 默认:false, summary会单独收费',
'description' => '是否返回增强summary, 默认:false, summary会单独收费',
'type' => 'boolean',
],
'rerankScore' => [
'title' => '是否开启Rerank,并返回RerankScore, 默认:true',
'description' => '是否开启Rerank,并返回RerankScore, 默认:true',
'type' => 'boolean',
],
'richMainBody' => [
'type' => 'boolean',
],
],
],
'SceneItem' => [
'type' => 'object',
'properties' => [
'detail' => [
'type' => 'string',
],
'type' => [
'type' => 'string',
],
],
],
'ScorePageItem' => [
'title' => '搜索结果内容项',
'description' => '搜索网页结果',
'type' => 'object',
'properties' => [
'publishTime' => [
'title' => '发布时间',
'type' => 'integer',
'format' => 'int64',
'required' => true,
'example' => '1704426524000',
],
'score' => [
'title' => '分数',
'type' => 'number',
'format' => 'double',
'required' => false,
'example' => '0.234325235',
],
'images' => [
'title' => '图片信息',
'type' => 'array',
'items' => [
'required' => false,
'$ref' => '#/components/schemas/IncludeImage',
],
'required' => false,
],
'htmlTitle' => [
'title' => '搜索结果标题(HTML格式)',
'type' => 'string',
'required' => true,
'example' => '<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号',
],
'displayLink' => [
'title' => '此搜索结果网址的缩略版本',
'type' => 'string',
'required' => true,
'example' => 'baijiahao.baidu.com',
],
'mime' => [
'title' => '搜索结果的MIME类型',
'type' => 'string',
'required' => false,
'example' => 'text/html',
],
'pageMap' => [
'title' => '补充页面信息',
'type' => 'object',
'required' => false,
'additionalProperties' => [
'title' => '补充页面信息',
'type' => 'string',
'required' => false,
],
],
'cardType' => [
'title' => '搜索结果模板,不同模板返回的字段不同',
'type' => 'string',
'required' => true,
'example' => 'structure_web_info',
],
'link' => [
'title' => '搜索结果指向的完整网址',
'type' => 'string',
'required' => true,
'example' => 'https://baijiahao.baidu.com/s?id=1787881554557805096',
],
'mainText' => [
'title' => '搜索结果的全文本,部分场景存在',
'type' => 'string',
'required' => false,
'example' => '昨天 , 小米 汽车 没有 发布 , 但 相关 的 信息 透露 的 差 不 多 了 。 '."\n"
.' 在 发布 会 现场 , 雷军 直接 称 小米 S U 7 对 标 特斯拉 保时捷 , 有 100 项 行业 领先 , 可见 “ 遥遥 领先 ” 已经 不再 是 华为 专利 了 ? '."\n"
.' '."\n"
.' 而 在 介绍 技术 时 , 雷军 也 从 电机 、 电池 、 大 压铸 、 自动 驾驶 、 智能 座舱 等 五 大 方面 展开 , 充分 展示 了 小米 汽车 的 技术 以及 技术 储备 , 能 堆 的 料 , 全都 堆 上去 了 … … '."\n"
.' 大家 比较 感 兴趣 的 性能 方面 , 2 . 78 s 的 0 - 100 km / h 加速 , 265 km / h 的 最高 时速 ',
],
'htmlSnippet' => [
'title' => '搜索结果的description截取(HTML格式)',
'type' => 'string',
'required' => true,
'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...',
],
'title' => [
'title' => '搜索结果标题(纯文本)',
'type' => 'string',
'required' => true,
'example' => '小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格',
],
'hostname' => [
'title' => '站点名称',
'type' => 'string',
'example' => '新华网',
],
'hostLogo' => [
'title' => '站点的logo',
'type' => 'string',
'example' => 'https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400',
],
'siteLabel' => [
'title' => '站点标签:目前支持两种,'."\n"
.'* 权威媒体'."\n"
.' * 党政机关',
'type' => 'string',
'example' => '权威媒体',
],
'markdownText' => [
'type' => 'string',
],
'snippet' => [
'title' => '搜索结果的description截取(文本格式)',
'type' => 'string',
'example' => '100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...',
],
'summary' => [
'type' => 'string',
],
'hostAuthorityScore' => [
'type' => 'number',
'format' => 'double',
],
'richMainBody' => [
'type' => 'string',
],
'websiteAuthorityScore' => [
'type' => 'integer',
'format' => 'int32',
],
'correlationTag' => [
'type' => 'integer',
'format' => 'int32',
],
],
],
'SearchCredits' => [
'description' => '基础搜索服务计量',
'type' => 'object',
'properties' => [
'genericTextSearch' => [
'title' => '基础版文本搜索次数',
'description' => '基础版文本搜索次数',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'liteAdvancedTextSearch' => [
'title' => 'LiteAdvanced搜索次数',
'description' => 'LiteAdvanced搜索次数',
'type' => 'integer',
'format' => 'int32',
],
],
],
'SearchInformation' => [
'title' => '搜索执行信息',
'description' => '搜索执行信息',
'type' => 'object',
'properties' => [
'total' => [
'title' => '总数',
'description' => '总数',
'type' => 'integer',
'format' => 'int64',
'example' => '13',
],
'searchTime' => [
'title' => '搜索时间(ms)',
'description' => '搜索时间(ms)',
'type' => 'integer',
'format' => 'int64',
'example' => '700',
],
],
],
'UnifiedCostCredits' => [
'description' => '搜索请求计量信息',
'type' => 'object',
'properties' => [
'search' => [
'description' => '基本搜索服务计量',
'$ref' => '#/components/schemas/SearchCredits',
],
'valueAdded' => [
'description' => '增值包服务计量',
'$ref' => '#/components/schemas/ValueAddedCredits',
],
],
],
'UnifiedImageItem' => [
'description' => '图片信息',
'type' => 'object',
'properties' => [
'publishedTime' => [
'description' => '网页发布时间,ISO时间格式',
'type' => 'string',
'example' => '2022-07-05T00:54:42+08:00',
],
'title' => [
'description' => '图片标题',
'type' => 'string',
'example' => '阿里巴巴现在以主业上为主,以电商为主,以能够盈利的业务为主',
],
'imageUrl' => [
'description' => '图片地址',
'type' => 'string',
'example' => 'http://pic.rmb.bdstatic.com/bjh/bb87f566c0c/241218/f7936f25837b20211e5ef88d7980c143.jpeg',
],
'hostPageUrl' => [
'description' => '图片所属网页地址',
'type' => 'string',
'example' => 'http://mbd.baidu.com/newspage/data/dtlandingsuper?nid=dt_4541580238898912926',
],
'height' => [
'description' => '高度',
'type' => 'integer',
'format' => 'int32',
'example' => '1330',
],
'width' => [
'description' => '图片宽度',
'type' => 'integer',
'format' => 'int32',
'example' => '1000',
],
],
],
'UnifiedOriginalQuery' => [
'description' => '原始请求',
'type' => 'object',
'properties' => [
'query' => [
'description' => '请求Query',
'type' => 'string',
'example' => '杭州美食',
],
'timeRange' => [
'description' => '发布时间范围',
'type' => 'string',
'example' => 'NoLimit',
],
],
],
'UnifiedPageItem' => [
'title' => '搜索结果标题(纯文本)',
'description' => '搜索网页结果',
'type' => 'object',
'properties' => [
'title' => [
'title' => '搜索结果指向的完整网址',
'description' => '搜索结果指向的完整网址',
'type' => 'string',
'example' => '上海车展大佬齐聚 问界成为话题中心',
],
'link' => [
'title' => '搜索结果指向的完整网址',
'description' => '搜索结果指向的完整网址',
'type' => 'string',
'example' => 'https://hea.china.com/articles/20250427/202504271666343.html',
],
'snippet' => [
'title' => '文本摘要',
'description' => '文本摘要',
'type' => 'string',
'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。 ...',
],
'publishedTime' => [
'title' => '网页发布时间,ISO时间格式',
'description' => '网页发布时间,ISO时间格式',
'type' => 'string',
'example' => '2025-04-27T20:36:04+08:00',
],
'mainText' => [
'title' => '搜索网页的全文',
'description' => '搜索网页的全文',
'type' => 'string',
'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。\\n“问界M9、M8正重构 中国 豪华汽车市场格局。”张兴海说, (此处省略....)。\\n责任编辑:kj005\\n 文章投诉热线:157 3889 8464 投诉邮箱:7983347 [email protected]\\n关键词:',
],
'markdownText' => [
'title' => 'markdown内容',
'description' => 'markdown内容',
'type' => 'string',
'example' => '# 上海车展大佬齐聚 问界成为话题中心**来源**:财讯网 '."\n"
.'**时间**:2025-04-27 20:36:04 '."\n"
.'2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。'."\n"
.'余承东表示,问界M9、M8、M7和M5,都深受消费者喜爱!问界M9连续3个月中国纯电车型保值率第一!纯电、增程车型包揽新能源大型SUV保值率前两名!'."\n"
.'“自己是问界M9的用户'."\n"
.'*责任编辑:kj005*文章投诉热线: 157 3889 8464 '."\n"
.'投诉邮箱: [email protected] ',
],
'images' => [
'title' => '搜索结果网址中的图片,最多三张',
'description' => '搜索结果网址中的图片,最多三张',
'type' => 'array',
'items' => [
'description' => '图片地址',
'type' => 'string',
'example' => '["http://objectnsg.oss-cn-beijing.aliyuncs.com/yhdoc/202504/27/202504272025531927023138.png"]',
],
],
'hostname' => [
'title' => '站点名称',
'description' => '站点名称',
'type' => 'string',
'example' => '中华网',
],
'hostLogo' => [
'title' => '站点Logo',
'description' => '站点Logo',
'type' => 'string',
'example' => 'https://www.china.com/zh_cn/img1905/2023/logo.png',
],
'summary' => [
'title' => '增强摘要,400字+',
'description' => '增强摘要,400字+',
'type' => 'string',
'example' => '2025上海车展期间,最火爆的无疑是问界品牌,成为众多大佬的话题中心。赛力斯集团董事长(创始人)张兴海、华为常务董事、终端BG董事长余承东、著名演员陈道明、宁德时代董事长曾毓群都分享了对问界的使用体验。“自己是问界M9的用户,用车感受非常好。”陈道明表示,体验后才敢现场给大家推荐。未来,希望能实现问界M9的特别定制,让外观、内饰、座椅布局等,更符合自己的使用需求。据悉,2025款问界M9上市25天就交付超1万,已连续11个月蝉联50万元级豪车车销冠;问界M8上市4天,大定就突破了五万 台 ,深受市场任何和用户喜爱...“问界M9、M8正重构 中国 豪华汽车市场格局。”张兴海说, 近 期曾极限试驾问界M8,从重庆出发,历时55小时、行驶超3500公里抵达冈仁波齐。整个行程中,车辆的安全 性 和体验感都表现出色。',
],
'rerankScore' => [
'title' => 'rerank分数',
'description' => 'rerank分数',
'type' => 'number',
'format' => 'double',
'example' => '0.7786493301391602',
],
'hostAuthorityScore' => [
'type' => 'number',
'format' => 'double',
],
'richMainBody' => [
'type' => 'string',
],
'websiteAuthorityScore' => [
'type' => 'integer',
'format' => 'int32',
],
'correlationTag' => [
'type' => 'integer',
'format' => 'int32',
],
],
],
'UnifiedQueryContext' => [
'description' => '搜索上下文',
'type' => 'object',
'properties' => [
'engineType' => [
'title' => '使用的搜索引擎',
'description' => '使用的搜索引擎',
'type' => 'string',
'example' => 'Generic',
],
'originalQuery' => [
'title' => '初始请求',
'description' => '初始请求',
'$ref' => '#/components/schemas/UnifiedOriginalQuery',
],
'rewrite' => [
'title' => '改写后的结果',
'description' => '改写后的结果',
'$ref' => '#/components/schemas/UnifiedRewrite',
],
],
],
'UnifiedRewrite' => [
'description' => '改写后请求',
'type' => 'object',
'properties' => [
'enabled' => [
'title' => '改写是否开启',
'description' => '改写是否开启',
'type' => 'boolean',
'example' => 'true',
],
'timeRange' => [
'title' => '改写后的timeRange',
'description' => '改写后的timeRange',
'type' => 'string',
'example' => 'OneYear',
],
],
],
'UnifiedSceneItem' => [
'description' => '垂直场景结果',
'type' => 'object',
'properties' => [
'detail' => [
'title' => 'Json结构的结果',
'description' => 'Json结构的结果',
'type' => 'string',
'example' => '{\\"title\\": \\"伦敦时间\\", \\"targetTimeZone\\": \\"Europe/London\\", \\"targetTimeMillisecond\\": \\"1745820817178\\", \\"targetTime\\": \\"2025-04-28 14:13:37\\", \\"beijingTimeZone\\": \\"PRC\\", \\"beijingTimeMillisecond\\": \\"1745846017178\\"}',
],
'type' => [
'title' => '类型',
'description' => '类型',
'type' => 'string',
'example' => 'time',
],
],
],
'UnifiedSearchInformation' => [
'description' => '搜索基本信息',
'type' => 'object',
'properties' => [
'searchTime' => [
'title' => '搜索耗时,ms',
'description' => '搜索耗时,ms',
'type' => 'integer',
'format' => 'int64',
'example' => '1028',
],
],
],
'UnifiedSearchInput' => [
'type' => 'object',
'properties' => [
'contents' => [
'$ref' => '#/components/schemas/RequestContents',
],
'query' => [
'title' => '查询内容,长度限制:1-100',
'type' => 'string',
],
'engineType' => [
'title' => '引擎类型:默认:Generic;可选值:Generic/GenericAdvanced, GenericAdvanced会单独计费返回更多条记录',
'type' => 'string',
'enum' => [
'Generic',
'GenericAdvanced',
'LiteAdvanced',
],
],
'category' => [
'type' => 'string',
],
'timeRange' => [
'title' => '内容发布时间范围',
'type' => 'string',
'enum' => [
'OneDay',
'OneWeek',
'OneMonth',
'OneYear',
'NoLimit',
],
],
'location' => [
'type' => 'string',
],
'locationInfo' => [
'$ref' => '#/components/schemas/LocationInfo',
],
'advancedParams' => [
'title' => '高级搜索参数',
'type' => 'object',
],
],
],
'UnifiedSearchOutput' => [
'title' => 'requestId,用于问题排查',
'type' => 'object',
'properties' => [
'requestId' => [
'title' => '网页结果',
'type' => 'string',
],
'queryContext' => [
'title' => '搜索上下文信息',
'$ref' => '#/components/schemas/UnifiedQueryContext',
],
'pageItems' => [
'title' => '网页搜索结果',
'type' => 'array',
'items' => [
'$ref' => '#/components/schemas/UnifiedPageItem',
],
],
'sceneItems' => [
'title' => '垂直API场景化结果',
'type' => 'array',
'items' => [
'title' => '',
'$ref' => '#/components/schemas/UnifiedSceneItem',
],
],
'costCredits' => [
'title' => '消耗的次数信息',
'$ref' => '#/components/schemas/UnifiedCostCredits',
],
'searchInformation' => [
'title' => '搜索基本信息',
'$ref' => '#/components/schemas/UnifiedSearchInformation',
],
],
],
'ValueAddedCredits' => [
'description' => '增值包计量信息',
'type' => 'object',
'properties' => [
'summary' => [
'title' => '增值包-增强摘要',
'description' => '增值包-增强摘要',
'type' => 'integer',
'format' => 'int32',
'example' => '1',
],
'advanced' => [
'title' => '增值包-增强版搜索',
'description' => '增值包-增强版搜索',
'type' => 'integer',
'format' => 'int32',
'example' => '0',
],
],
],
'WeiboItem' => [
'title' => '微博信息',
'description' => '搜索Weibo结果, 开启卡片搜索后第一页返回',
'type' => 'object',
'properties' => [
'images' => [
'title' => '图片信息',
'type' => 'array',
'items' => [
'title' => '微博的附带图片',
'type' => 'string',
'required' => false,
'example' => 'http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=',
],
'required' => false,
],
'publishDisplayTime' => [
'title' => '发布时间',
'type' => 'string',
'required' => true,
'example' => '1小时前',
],
'cardType' => [
'title' => '搜索结果模板,微博场景固定为:weibo_strong',
'type' => 'string',
'required' => true,
'example' => 'weibo_strong',
],
'homepageLink' => [
'title' => '用户的微博主页',
'type' => 'string',
'required' => false,
'example' => 'https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075',
],
'link' => [
'title' => '搜索结果微博地址',
'type' => 'string',
'required' => true,
'example' => 'https://m.weibo.cn/detail/5024099350350075?wm=90194_90009',
],
'htmlSnippet' => [
'title' => '微博内容',
'type' => 'string',
'required' => true,
'example' => '【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接',
],
'username' => [
'title' => '微博用户名',
'type' => 'string',
'required' => false,
'example' => '白鹿科技',
],
],
],
],
],
'apis' => [
'UnifiedSearch' => [
'summary' => '通晓统一搜索API,简单快捷的接入全网通用搜索能力。',
'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/search/unified',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpF36Z7L',
'FEATUREalibababcpLJW8HN',
'FEATUREalibababcpPYBUBJ',
'FEATUREalibababcpRLTK4J',
'FEATUREalibababcpVV9OXO',
'FEATUREalibababcpSJV4QL',
'FEATUREalibababcpTYS4DT',
'FEATUREalibababcpCIGQ7X',
'FEATUREalibababcpJ4YYLV',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => [
'description' => '搜索请求参数',
'required' => false,
'$ref' => '#/components/schemas/UnifiedSearchInput',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '搜索返回参数',
'$ref' => '#/components/schemas/UnifiedSearchOutput',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"queryContext\\": {\\n \\"engineType\\": \\"\\",\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n },\\n \\"pageItems\\": [\\n {\\n \\"title\\": \\"\\",\\n \\"link\\": \\"\\",\\n \\"snippet\\": \\"\\",\\n \\"publishedTime\\": \\"2025-04-07T10:15:30.123+08:00\\",\\n \\"mainText\\": \\"\\",\\n \\"markdownText\\": \\"\\",\\n \\"images\\": [\\n \\"\\"\\n ],\\n \\"hostname\\": \\"\\",\\n \\"hostLogo\\": \\"\\",\\n \\"summary\\": \\"\\",\\n \\"rerankScore\\": 0,\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"costCredits\\": {\\n \\"search\\": {\\n \\"genericTextSearch\\": 0,\\n \\"liteAdvancedTextSearch\\": 0\\n },\\n \\"valueAdded\\": {\\n \\"summary\\": 0,\\n \\"advanced\\": 0\\n }\\n },\\n \\"searchInformation\\": {\\n \\"searchTime\\": 0\\n }\\n}","type":"json"}]',
'title' => '通晓统一搜索API',
],
'GenericSearch' => [
'summary' => '通用搜索。',
'path' => '/linked-retrieval/linked-retrieval-entry/v2/linkedRetrieval/commands/genericSearch',
'methods' => [
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpPYBUBJ',
'FEATUREalibababcpSJV4QL',
'FEATUREalibababcpTYS4DT',
'FEATUREalibababcpCIGQ7X',
'FEATUREalibababcpJ4YYLV',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'query',
'in' => 'query',
'schema' => [
'title' => '待查询问题',
'description' => '搜索关键字',
'type' => 'string',
'required' => true,
'example' => '苹果手机',
],
],
[
'name' => 'timeRange',
'in' => 'query',
'schema' => [
'title' => '网页发布时间范围',
'description' => '时间范围',
'type' => 'string',
'required' => false,
'enumValueTitles' => [
'OneWeek' => '最近一周',
'OneYear' => '最近一年',
'NoLimit' => '不限制',
'OneDay' => '最近一天',
'OneMonth' => '最近一个月',
],
'example' => 'OneWeek',
],
],
[
'name' => 'sessionId',
'in' => 'query',
'allowEmptyValue' => true,
'schema' => [
'title' => '多轮交互的sessionId',
'description' => '多轮交互的sessionId',
'type' => 'string',
'required' => false,
],
],
[
'name' => 'industry',
'in' => 'query',
'schema' => [
'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'type' => 'string',
'required' => false,
],
],
[
'name' => 'page',
'in' => 'query',
'allowEmptyValue' => false,
'schema' => [
'title' => '页码:从1开始',
'description' => '页码:从1开始',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
'default' => '1',
],
],
[
'name' => 'returnMainText',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
[
'name' => 'returnMarkdownText',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
[
'name' => 'returnSummary',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
[
'name' => 'enableRerank',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
[
'name' => 'returnRichMainBody',
'in' => 'query',
'schema' => [
'type' => 'boolean',
'required' => false,
],
],
[
'name' => 'advancedParams',
'in' => 'query',
'style' => 'json',
'schema' => [
'type' => 'object',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回的搜索结果',
'$ref' => '#/components/schemas/GenericSearchResult',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageItems\\": [\\n {\\n \\"publishTime\\": 1704426524000,\\n \\"score\\": 0.234325235,\\n \\"images\\": [\\n {\\n \\"imageLink\\": \\"http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg\\",\\n \\"width\\": 700,\\n \\"height\\": 324\\n }\\n ],\\n \\"htmlTitle\\": \\"<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号\\",\\n \\"displayLink\\": \\"baijiahao.baidu.com\\",\\n \\"mime\\": \\"text/html\\",\\n \\"pageMap\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"cardType\\": \\"structure_web_info\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"mainText\\": \\"昨天\\\\t,\\\\t小米\\\\t汽车\\\\t没有\\\\t发布\\\\t,\\\\t但\\\\t相关\\\\t的\\\\t信息\\\\t透露\\\\t的\\\\t差\\\\t不\\\\t多\\\\t了\\\\t。\\\\t\\\\t\\\\n\\\\t\\\\t在\\\\t发布\\\\t会\\\\t现场\\\\t,\\\\t雷军\\\\t直接\\\\t称\\\\t小米\\\\tS\\\\tU\\\\t7\\\\t对\\\\t标\\\\t特斯拉\\\\t保时捷\\\\t,\\\\t有\\\\t100\\\\t项\\\\t行业\\\\t领先\\\\t,\\\\t可见\\\\t“\\\\t遥遥\\\\t领先\\\\t”\\\\t已经\\\\t不再\\\\t是\\\\t华为\\\\t专利\\\\t了\\\\t?\\\\t\\\\t\\\\n\\\\t\\\\n\\\\t\\\\t而\\\\t在\\\\t介绍\\\\t技术\\\\t时\\\\t,\\\\t雷军\\\\t也\\\\t从\\\\t电机\\\\t、\\\\t电池\\\\t、\\\\t大\\\\t压铸\\\\t、\\\\t自动\\\\t驾驶\\\\t、\\\\t智能\\\\t座舱\\\\t等\\\\t五\\\\t大\\\\t方面\\\\t展开\\\\t,\\\\t充分\\\\t展示\\\\t了\\\\t小米\\\\t汽车\\\\t的\\\\t技术\\\\t以及\\\\t技术\\\\t储备\\\\t,\\\\t\\\\t \\\\t\\\\t能\\\\t堆\\\\t的\\\\t料\\\\t,\\\\t全都\\\\t堆\\\\t上去\\\\t了\\\\t…\\\\t…\\\\t\\\\t\\\\n\\\\t\\\\t大家\\\\t比较\\\\t感\\\\t兴趣\\\\t的\\\\t性能\\\\t方面\\\\t,\\\\t2\\\\t.\\\\t78\\\\ts\\\\t的\\\\t0\\\\t-\\\\t100\\\\tkm\\\\t/\\\\th\\\\t加速\\\\t,\\\\t265\\\\tkm\\\\t/\\\\th\\\\t的\\\\t最高\\\\t时速\\\\t\\",\\n \\"htmlSnippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\",\\n \\"hostname\\": \\"新华网\\",\\n \\"hostLogo\\": \\"https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400\\",\\n \\"siteLabel\\": \\"权威媒体\\",\\n \\"markdownText\\": \\"\\",\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"summary\\": \\"\\",\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"requestId\\": \\"123456\\",\\n \\"weiboItems\\": [\\n {\\n \\"images\\": [\\n \\"http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=\\"\\n ],\\n \\"publishDisplayTime\\": \\"1小时前\\",\\n \\"cardType\\": \\"weibo_strong\\",\\n \\"homepageLink\\": \\"https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075\\",\\n \\"link\\": \\"https://m.weibo.cn/detail/5024099350350075?wm=90194_90009\\",\\n \\"htmlSnippet\\": \\"【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接\\",\\n \\"username\\": \\"白鹿科技\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
'title' => '通用搜索',
],
'AiSearch' => [
'summary' => '本文介绍通过阿里云OpenAPI SDK调用通用搜索多阶段流式接口V3的方法以及参数说明',
'path' => '/linked-retrieval/linked-retrieval-entry/v3/linkedRetrieval/commands/aiSearch',
'methods' => [
'get',
],
'schemes' => [
'https',
'sse',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpG3IIA0',
'FEATUREalibababcpPYBUBJ',
'FEATUREalibababcpRLTK4J',
'FEATUREalibababcpSJV4QL',
'FEATUREalibababcpTYS4DT',
'FEATUREalibababcpCIGQ7X',
'FEATUREalibababcpJ4YYLV',
],
],
'parameters' => [
[
'name' => 'query',
'in' => 'query',
'schema' => [
'title' => '待查询问题',
'description' => '待查询问题',
'type' => 'string',
'required' => true,
'example' => '苹果手机',
],
],
[
'name' => 'sessionId',
'in' => 'query',
'schema' => [
'title' => '网页发布时间查询范围',
'description' => '网页发布时间查询范围',
'type' => 'string',
'required' => false,
'example' => '17dc8bcd-f34a-46d1-a7a3-0fa3d1ce3824',
],
],
[
'name' => 'timeRange',
'in' => 'query',
'schema' => [
'title' => '多轮交互的sessionId',
'description' => '多轮交互的sessionId',
'type' => 'string',
'required' => false,
'example' => 'OneWeek',
],
],
[
'name' => 'industry',
'in' => 'query',
'schema' => [
'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'type' => 'string',
'required' => false,
'example' => 'finance',
],
],
[
'name' => 'page',
'in' => 'query',
'schema' => [
'title' => '页码:从1开始',
'description' => '页码:从1开始',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '{\'total_count\': 6851, \'page_number\': 54, \'page_size\': 100}',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => '流式返回的事件',
'type' => 'object',
'properties' => [
'header' => [
'description' => '返回结果的header',
'type' => 'object',
'properties' => [
'eventId' => [
'description' => '此次EventID',
'type' => 'string',
'example' => '988021f0-951a-43d0-ba4d-785359e7e7be',
],
'event' => [
'description' => 'event名称',
'type' => 'string',
'example' => 'on_common_search_end',
],
'responseTime' => [
'description' => '耗时(ms)',
'type' => 'integer',
'format' => 'int64',
'example' => '1293',
],
'queryContext' => [
'title' => '查询上下文',
'description' => '查询上下文',
'type' => 'object',
'properties' => [
'originalQuery' => [
'title' => '原始查询',
'description' => '原始查询',
'type' => 'object',
'properties' => [
'query' => [
'title' => '查询条件',
'description' => '查询条件',
'type' => 'string',
],
'timeRange' => [
'title' => '时间范围',
'description' => '时间范围',
'type' => 'string',
],
'industry' => [
'title' => '行业',
'description' => '行业',
'type' => 'string',
],
'page' => [
'title' => '页码',
'description' => '页码',
'type' => 'integer',
'format' => 'int32',
],
],
],
'rewrite' => [
'title' => '改写后查询',
'description' => '改写后查询',
'type' => 'object',
'properties' => [
'enabled' => [
'title' => '改写是否开启',
'description' => '改写是否开启',
'type' => 'boolean',
],
'timeRange' => [
'title' => '改写后的TimeRange',
'description' => '改写后的TimeRange',
'type' => 'string',
],
],
],
],
],
],
],
'payload' => [
'description' => '返回结果的payload,json结构,不同event结构不同',
'type' => 'string',
'example' => '{"header":{"eventId":"6f617de0-204f-406f-a9be-34779c06d498","event":"on_common_search_start","responseTime":120},"payload":"","requestId":"715d01a0-de7e-42c3-abca-b901fcd79b39"}',
],
'requestId' => [
'description' => 'Id of the request',
'type' => 'string',
'example' => 'ECB2144C-E277-5434-80E6-12D26678D364',
],
],
],
],
403 => [
'schema' => [
'type' => 'object',
'properties' => [
'AccessDeniedDetail' => [
'type' => 'object',
'properties' => [
'AuthAction' => [
'type' => 'string',
],
'AuthPrincipalDisplayName' => [
'type' => 'string',
],
'AuthPrincipalOwnerId' => [
'type' => 'string',
],
'AuthPrincipalType' => [
'type' => 'string',
],
'EncodedDiagnosticMessage' => [
'type' => 'string',
],
'NoPermissionType' => [
'type' => 'string',
],
'PolicyType' => [
'type' => 'string',
],
],
],
'code' => [
'type' => 'string',
],
'errorCode' => [
'type' => 'string',
],
'errorMessage' => [
'type' => 'string',
],
'httpCode' => [
'type' => 'integer',
'format' => 'int32',
],
'httpStatusCode' => [
'type' => 'integer',
'format' => 'int32',
],
'message' => [
'type' => 'string',
],
'success' => [
'type' => 'boolean',
],
],
],
],
],
'errorCodes' => [
403 => [
[
'errorCode' => 'Forbidden',
'errorMessage' => 'Please activate AI search service.',
],
[
'errorCode' => 'TestUserPeriodExpired',
'errorMessage' => 'The test period has expired.',
],
],
429 => [
[
'errorCode' => 'ThrottlingUser',
'errorMessage' => 'Request was denied due to user flow control.',
],
[
'errorCode' => 'TestUserQueryPerDayExceeded',
'errorMessage' => 'The query per day exceed the limit.',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"header\\": {\\n \\"eventId\\": \\"988021f0-951a-43d0-ba4d-785359e7e7be\\",\\n \\"event\\": \\"on_common_search_end\\",\\n \\"responseTime\\": 1293,\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": 0\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n },\\n \\"payload\\": \\"{\\\\\\"header\\\\\\":{\\\\\\"eventId\\\\\\":\\\\\\"6f617de0-204f-406f-a9be-34779c06d498\\\\\\",\\\\\\"event\\\\\\":\\\\\\"on_common_search_start\\\\\\",\\\\\\"responseTime\\\\\\":120},\\\\\\"payload\\\\\\":\\\\\\"\\\\\\",\\\\\\"requestId\\\\\\":\\\\\\"715d01a0-de7e-42c3-abca-b901fcd79b39\\\\\\"}\\",\\n \\"requestId\\": \\"ECB2144C-E277-5434-80E6-12D26678D364\\"\\n}","type":"json"}]',
'title' => '多阶段流式API',
'description' => '提供common_search,post_retrieval两个阶段流式结果供客户按需使用。'."\n"
.'通用搜索结果(common_search):搜索的原始结果。覆盖网页标题、动态摘要、正文、来源网站、发布时间等关键字段。检索后处理(post_retrieval):通过使用rerank模型对上一阶段common_search结果进行重排序与过滤。检索结果相关性(Context Relevancy)的mAP指标提升约5%,时延增加约110ms。',
],
'GenericAdvancedSearch' => [
'summary' => '本文介绍通过阿里云OpenAPI SDK调用通用增强搜索接口(GenericAdvancedSearch)的方法以及参数说明。GenericAdvancedSearch相较于GenericSearch提供了更好的权威站点的召回,召回数量最大可以达到40条,可以提供更好的权威性与多样性数据。增强版接口返回参数字段与格式与GenericAdvancedSearch一致。',
'path' => '/linked-retrieval/linked-retrieval-entry/v2/linkedRetrieval/commands/genericAdvancedSearch',
'methods' => [
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpPYBUBJ',
'FEATUREalibababcpSJV4QL',
'FEATUREalibababcpTYS4DT',
'FEATUREalibababcpCIGQ7X',
'FEATUREalibababcpJ4YYLV',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'query',
'in' => 'query',
'schema' => [
'title' => '待查询问题',
'description' => '待查询问题',
'type' => 'string',
'required' => true,
'example' => '苹果手机',
],
],
[
'name' => 'timeRange',
'in' => 'query',
'schema' => [
'title' => '网页发布时间查询范围',
'description' => '网页发布时间查询范围',
'type' => 'string',
'required' => false,
'example' => 'OneWeek',
],
],
[
'name' => 'sessionId',
'in' => 'query',
'schema' => [
'title' => '多轮交互的sessionId',
'description' => '多轮交互的sessionId',
'type' => 'string',
'required' => false,
'example' => 'job-4065bee3-e7aa-49fc-aad2-a8e3a7fd6acd',
],
],
[
'name' => 'industry',
'in' => 'query',
'schema' => [
'title' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'description' => '行业,指定后只召回行业限定的站点内容,多个行业使用逗号分隔;',
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '请求体参数。',
'$ref' => '#/components/schemas/GenericSearchResult',
],
],
],
'errorCodes' => [
400 => [
[
'errorCode' => 'IdempotentParameterMismatch',
'errorMessage' => 'The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical.',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"pageItems\\": [\\n {\\n \\"publishTime\\": 1704426524000,\\n \\"score\\": 0.234325235,\\n \\"images\\": [\\n {\\n \\"imageLink\\": \\"http://k.sinaimg.cn/n/sinakd20121/594/w2048h946/20240328/74cf-32c0d62e843df76567d760b4459d57c1.jpg/w700d1q75cms.jpg\\",\\n \\"width\\": 700,\\n \\"height\\": 324\\n }\\n ],\\n \\"htmlTitle\\": \\"<em>小米</em>SU7售价22.99万元起 高管亲自辟谣:发布前不会有<em>价格</em>-百家号\\",\\n \\"displayLink\\": \\"baijiahao.baidu.com\\",\\n \\"mime\\": \\"text/html\\",\\n \\"pageMap\\": {\\n \\"key\\": \\"\\"\\n },\\n \\"cardType\\": \\"structure_web_info\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"mainText\\": \\"昨天\\\\t,\\\\t小米\\\\t汽车\\\\t没有\\\\t发布\\\\t,\\\\t但\\\\t相关\\\\t的\\\\t信息\\\\t透露\\\\t的\\\\t差\\\\t不\\\\t多\\\\t了\\\\t。\\\\t\\\\t\\\\n\\\\t\\\\t在\\\\t发布\\\\t会\\\\t现场\\\\t,\\\\t雷军\\\\t直接\\\\t称\\\\t小米\\\\tS\\\\tU\\\\t7\\\\t对\\\\t标\\\\t特斯拉\\\\t保时捷\\\\t,\\\\t有\\\\t100\\\\t项\\\\t行业\\\\t领先\\\\t,\\\\t可见\\\\t“\\\\t遥遥\\\\t领先\\\\t”\\\\t已经\\\\t不再\\\\t是\\\\t华为\\\\t专利\\\\t了\\\\t?\\\\t\\\\t\\\\n\\\\t\\\\n\\\\t\\\\t而\\\\t在\\\\t介绍\\\\t技术\\\\t时\\\\t,\\\\t雷军\\\\t也\\\\t从\\\\t电机\\\\t、\\\\t电池\\\\t、\\\\t大\\\\t压铸\\\\t、\\\\t自动\\\\t驾驶\\\\t、\\\\t智能\\\\t座舱\\\\t等\\\\t五\\\\t大\\\\t方面\\\\t展开\\\\t,\\\\t充分\\\\t展示\\\\t了\\\\t小米\\\\t汽车\\\\t的\\\\t技术\\\\t以及\\\\t技术\\\\t储备\\\\t,\\\\t\\\\t \\\\t\\\\t能\\\\t堆\\\\t的\\\\t料\\\\t,\\\\t全都\\\\t堆\\\\t上去\\\\t了\\\\t…\\\\t…\\\\t\\\\t\\\\n\\\\t\\\\t大家\\\\t比较\\\\t感\\\\t兴趣\\\\t的\\\\t性能\\\\t方面\\\\t,\\\\t2\\\\t.\\\\t78\\\\ts\\\\t的\\\\t0\\\\t-\\\\t100\\\\tkm\\\\t/\\\\th\\\\t加速\\\\t,\\\\t265\\\\tkm\\\\t/\\\\th\\\\t的\\\\t最高\\\\t时速\\\\t\\",\\n \\"htmlSnippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,<em>小米SU7</em>确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\",\\n \\"hostname\\": \\"新华网\\",\\n \\"hostLogo\\": \\"https://s2.zimgs.cn/ims?kt=url&at=smstruct&key=aHR0cHM6Ly9ndy5hbGljZG4uY29tL0wxLzcyMy8xNTY1MjU2NjAwLzJhL2YwL2I0LzJhZjBiNDQxMGI5YmVlMDVjOGVlNGJmODk3MTNkNTFjLnBuZw==&sign=yx:CUlNNQVJQjFrk3Kxt2F3KWhTOFU=&tv=400_400\\",\\n \\"siteLabel\\": \\"权威媒体\\",\\n \\"markdownText\\": \\"\\",\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"summary\\": \\"\\",\\n \\"hostAuthorityScore\\": 0,\\n \\"richMainBody\\": \\"\\",\\n \\"websiteAuthorityScore\\": 0,\\n \\"correlationTag\\": 0\\n }\\n ],\\n \\"requestId\\": \\"123456\\",\\n \\"weiboItems\\": [\\n {\\n \\"images\\": [\\n \\"http://s2.zimgs.cn/ims?at=sc&kt=url&key=aHR0cHM6Ly93eDIuc2luYWltZy5jbi9vcmozNjAvMDA3Umc1eHVseTFob3RsenJ5YjVkajMwaWgwYTY0M2UuanBn&sign=yx:PfSsUObz9lhnCl5gf5vY-GeYrm0=&tv=0_0&p=\\"\\n ],\\n \\"publishDisplayTime\\": \\"1小时前\\",\\n \\"cardType\\": \\"weibo_strong\\",\\n \\"homepageLink\\": \\"https://m.weibo.cn/u/7761793874?luicode=20000061&lfid=5024099350350075\\",\\n \\"link\\": \\"https://m.weibo.cn/detail/5024099350350075?wm=90194_90009\\",\\n \\"htmlSnippet\\": \\"【小调查:你会买<em>小米SU7</em>吗?】#小米SU7路测覆盖300多城市#4月17日,@小米汽车 发文称SU7道路测试覆盖全国300多个城市,涵盖极寒,极热天气,总里程数高达540万公里,目前仍在进行中。 网页链接\\",\\n \\"username\\": \\"白鹿科技\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"timeRange\\": \\"\\",\\n \\"industry\\": \\"\\",\\n \\"page\\": \\"\\"\\n },\\n \\"rewrite\\": {\\n \\"enabled\\": true,\\n \\"timeRange\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
'title' => '增强版搜索API',
'description' => 'GenericAdvancedSearch目前处于测试阶段,后续会上线新的规格供购买使用',
],
'GlobalSearch' => [
'summary' => '通晓搜索-出海版(全球信息搜索)',
'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/search/global',
'methods' => [
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpPYBUBJ',
'FEATUREalibababcpJ4YYLV',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'query',
'in' => 'query',
'schema' => [
'title' => '搜索查询内容',
'description' => '搜索查询内容',
'type' => 'string',
'required' => true,
'example' => '特朗普最新关税消息',
],
],
[
'name' => 'timeRange',
'in' => 'query',
'schema' => [
'title' => '网页发布时间范围',
'description' => '网页发布时间范围',
'type' => 'string',
'required' => false,
'example' => 'OneWeek',
],
],
[
'name' => 'page',
'in' => 'query',
'schema' => [
'title' => '页码:从1开始',
'description' => '页码:从1开始',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '1',
],
],
[
'name' => 'pageSize',
'in' => 'query',
'schema' => [
'title' => '每页条数',
'description' => '每页条数',
'type' => 'integer',
'format' => 'int32',
'required' => false,
'example' => '10',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '指定重启参数信息。',
'$ref' => '#/components/schemas/GlobalSearchResult',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"123456\\",\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\",\\n \\"page\\": \\"\\",\\n \\"timeRange\\": \\"\\"\\n }\\n },\\n \\"pageItems\\": [\\n {\\n \\"snippet\\": \\"100km/h-0制动能力上,仅有33.3m,不黑不吹,单看这个,小米SU7确实表现不错。而续航方面,101kWh电池容量,实现CLTC续航800km,还有现5分钟补能220km,15分钟补能510km的800V高压平台。而在...\\",\\n \\"link\\": \\"https://baijiahao.baidu.com/s?id=1787881554557805096\\",\\n \\"title\\": \\"小米SU7售价22.99万元起 高管亲自辟谣:发布前不会有价格\\"\\n }\\n ],\\n \\"sceneItems\\": [\\n {\\n \\"detail\\": \\"\\",\\n \\"type\\": \\"\\"\\n }\\n ],\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n }\\n}","type":"json"}]',
'title' => '出海版搜索(待发布)',
'description' => '本文介绍通过出海版搜索-GlobalSearch的使用方法以及参数说明',
],
'GetIqsUsage' => [
'summary' => '信息查询服务接口日维度使用量查询',
'path' => '/linked-retrieval/linked-retrieval-admin/v1/iqs/usage',
'methods' => [
'get',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREalibababcpVV9OXO',
],
],
'parameters' => [
[
'name' => 'startDate',
'in' => 'query',
'schema' => [
'description' => '开始日期。',
'type' => 'string',
'required' => false,
'example' => '20241011',
],
],
[
'name' => 'endDate',
'in' => 'query',
'schema' => [
'description' => '结束日期。',
'type' => 'string',
'required' => false,
'example' => '20241017',
],
],
[
'name' => 'callerId',
'in' => 'query',
'schema' => [
'type' => 'string',
'required' => false,
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '返回结果结构体',
'$ref' => '#/components/schemas/GetIqsUsageResult',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"records\\": [\\n {\\n \\"date\\": \\"\\",\\n \\"billingQps\\": 0,\\n \\"totalCalls\\": 0,\\n \\"valueAddedSummary\\": 0,\\n \\"failedCalls\\": 0,\\n \\"valueAddedAdvanced\\": 0,\\n \\"subAccountId\\": \\"\\",\\n \\"engineType\\": \\"\\",\\n \\"ladderType\\": \\"\\",\\n \\"api\\": \\"\\",\\n \\"successCalls\\": 0,\\n \\"mainAccountId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
'title' => '日调用量查询接口',
],
'MultimodalSearch' => [
'summary' => '多模态搜索',
'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/multimodal/unified',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => [
'description' => '查询参数以及屏蔽站点参数',
'required' => false,
'$ref' => '#/components/schemas/MultimodalSearchBody',
],
],
],
'responses' => [
200 => [
'schema' => [
'description' => '图片返回信息',
'$ref' => '#/components/schemas/MultimodalSearchOutput',
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"queryContext\\": {\\n \\"originalQuery\\": {\\n \\"query\\": \\"\\"\\n }\\n },\\n \\"searchInformation\\": {\\n \\"total\\": 0,\\n \\"searchTime\\": 0\\n },\\n \\"imageItems\\": [\\n {\\n \\"publishedTime\\": \\"\\",\\n \\"title\\": \\"\\",\\n \\"imageUrl\\": \\"\\",\\n \\"hostPageUrl\\": \\"\\",\\n \\"height\\": 0,\\n \\"width\\": 0\\n }\\n ]\\n}","type":"json"}]',
'title' => '多模态搜索',
],
'ReadPageBasic' => [
'summary' => '快速获取 HTML 并解析静态网页内容。',
'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/readpage/basic',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpG3IIA0',
'FEATUREalibababcpPDPN5D',
'FEATUREalibababcp7B4LYV',
],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => [
'description' => 'post body',
'required' => false,
'$ref' => '#/components/schemas/ReadPageBody',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'requestId' => [
'description' => '请求RequestId, 排查问题时可以提供此信息',
'type' => 'string',
],
'errorCode' => [
'description' => '错误码',
'type' => 'string',
],
'errorMessage' => [
'description' => '错误信息',
'type' => 'string',
],
'data' => [
'description' => '目标 url 解析结果',
'$ref' => '#/components/schemas/ReadPageItem',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"\\",\\n \\"errorCode\\": \\"\\",\\n \\"errorMessage\\": \\"\\",\\n \\"data\\": {\\n \\"statusCode\\": 0,\\n \\"errorMessage\\": \\"\\",\\n \\"rawHtml\\": \\"\\",\\n \\"html\\": \\"\\",\\n \\"text\\": \\"\\",\\n \\"markdown\\": \\"\\",\\n \\"screenshot\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => '静态页面解析',
'description' => '1. 当目标地址的 HTTP 响应码(httpcode)< 500 时,计为一次有效请求。'."\n"
."\n"
.'2. 若目标地址的响应头中的内容类型(Content-Type)为 application/pdf,系统将自动触发 PDF 解析(pdf 处理大小不超过 20MB),此操作将额外计为一次有效请求。'."\n"
."\n"
.'3. 体验说明:体验期间接口限制 5qps;体验额度为 1000次/30天;',
],
'ReadPageScrape' => [
'summary' => '1. 通过浏览器沙箱环境读取 HTML 并解析网页内容。'."\n"
.'2. 接口将在目标页面资源完全加载后开始解析(可通过 pageTimeout 参数调整最大等待时长),接口整体耗时将显著受目标站点资源加载情况的影响。',
'path' => '/linked-retrieval/linked-retrieval-entry/v1/iqs/readpage/scrape',
'methods' => [
'post',
],
'schemes' => [
'https',
],
'security' => [
[
'AK' => [],
],
],
'consumes' => [
'application/json',
],
'produces' => [
'application/json',
],
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeNodes' => [
'FEATUREalibababcpLY9PPK',
'FEATUREalibababcpG3IIA0',
],
'autoTest' => true,
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'body',
'in' => 'body',
'schema' => [
'description' => 'post body',
'required' => false,
'$ref' => '#/components/schemas/ReadPageScrapeBody',
],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
'requestId' => [
'title' => 'Id of the request',
'description' => '请求RequestId, 排查问题时可以提供此信息',
'type' => 'string',
'example' => '7cd43c86-731a-4d4c-8385-d070cfc509a4'."\n",
],
'errorCode' => [
'description' => '错误码',
'type' => 'string',
'example' => 'null',
],
'errorMessage' => [
'description' => '错误信息',
'type' => 'string',
'example' => 'null',
],
'data' => [
'description' => '目标 url 解析结果',
'$ref' => '#/components/schemas/ReadPageItem',
],
],
],
],
],
'staticInfo' => [
'returnType' => 'synchronous',
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"requestId\\": \\"7cd43c86-731a-4d4c-8385-d070cfc509a4\\\\n\\",\\n \\"errorCode\\": \\"null\\",\\n \\"errorMessage\\": \\"null\\",\\n \\"data\\": {\\n \\"statusCode\\": 0,\\n \\"errorMessage\\": \\"\\",\\n \\"rawHtml\\": \\"\\",\\n \\"html\\": \\"\\",\\n \\"text\\": \\"\\",\\n \\"markdown\\": \\"\\",\\n \\"screenshot\\": \\"\\"\\n }\\n}","type":"json"}]',
'title' => 'web页面解析',
'description' => '1. 当目标地址的 HTTP 响应码(httpcode)< 500 时,计为一次有效请求。'."\n"
."\n"
.'2. 若目标地址的响应头中的内容类型(Content-Type)为 application/pdf,系统将自动触发 PDF 解析(pdf 处理大小不超过 20MB),此操作将额外计为一次有效请求。'."\n"
."\n"
.'3. 体验说明:体验期间接口限制 5qps;体验额度为 1000次/30天;',
],
],
'endpoints' => [
[
'regionId' => 'cn-zhangjiakou',
'endpoint' => 'iqs.cn-zhangjiakou.aliyuncs.com',
],
],
];
|