This document is generated by Gname.com.
https://tools.gname.com/v1/querymultipart/form-data.| Field | Parameter | Type | Required | Description |
|---|---|---|---|---|
| APPID | appid | String | Yes | API application ID. See Common Parameters. |
| Timestamp | timestamp | Integer | Yes | Current Unix timestamp in seconds. The difference from server time must not exceed 300 seconds. |
| Signature | sign | String | Yes | Request signature. See Signature Method. |
| Query Type | code | String | Yes | Always pass lishi. |
| Domain | ym | String | Yes | Domain to query, such as baidu.com, without a protocol, port, or path. |
appid, timestamp, code, ym, and any additional fields actually sent must be included in the signature calculation. Exclude sign itself.| Field | Parameter | Type | Description |
|---|---|---|---|
| Status Code | code | Integer | Request processing status. 1 indicates success; other values indicate failure. |
| Message | msg | String | Message describing the request processing result. |
| Response Data | data | Object | On success, contains query information, points charged, and the website history result. The fields below are not guaranteed on failure. |
data.| Field | Parameter | Type | Description |
|---|---|---|---|
| APPID | appid | String | API application ID used for this request. |
| Query Type | code | String | Query type for this request. The value is lishi. |
| Domain | ym | String | Domain queried in this request. |
| Points Charged | cost_points | Integer | Query package points actually charged for this query, based on the current price of the query type. |
| Query Record ID | rw_id | String | Unique ID for this query record, used for tracing and reconciliation. |
| Query Result | result | Object | Website History Lookup result. |
data.result.| Field | Parameter | Type | Description |
|---|---|---|---|
| Request Status | err_code | String / Integer | Request status. 200 indicates a successful request. |
| Request Message | err_msg | String | Request result message, such as ok. |
| Website History Response | data | Object | Contains the website history query status and details. |
| Result Updated At | gxsj | String | Time when this query result was updated, in YYYY-MM-DD HH:mm:ss format. |
data.result.data.| Field | Parameter | Type | Description |
|---|---|---|---|
| Website History Query Status | code | String / Integer | Website history query status. In the example, 1 indicates query success. |
| Website History Query Message | msg | String | Query message, such as ok2 in the example. Do not determine query success from this text alone. |
| Website History Details | data | Object | Detailed website history information for the domain. |
data.result.data.data.| Field | Parameter | Type | Description |
|---|---|---|---|
| Website Title | bt | String | Website title in the historical records, such as 百度一下,你就知道 (Baidu: search and you will know). |
| Score | pf | String | Website history score, returned as a string, such as 7990. |
| Website Age | nl | String | Website age in years, returned as a string, such as 27. |
| Language | yy | String | Website language in the historical records, such as 中文 (Chinese). |
| Historical Record Count | jls | String | Total historical record count, returned as a string. |
| Earliest Record Time | sj_min | String | Time of the earliest historical record, in YYYY-MM-DD HH:mm:ss format. |
| Latest Record Time | sj_max | String | Time of the latest historical record, in YYYY-MM-DD HH:mm:ss format. |
| Historical Data Updated At | gxsj | String | Time when the historical data was updated, in YYYY-MM-DD HH:mm:ss format. Separate from data.result.gxsj. |
| Chart Data | tu | Object | Contains the earliest and latest record times and monthly historical record counts for each year. |
| History Status Flag | zt | String | Returned history status flag, such as 1 in the example. Separate from the API status code, code. |
| Website Domain | wz | String | Website domain associated with the historical records, such as baidu.com. |
| Historical Record ID | id | String | Historical record identifier. Separate from rw_id, the ID of this query record. |
data.result.data.data.tu.| Field | Parameter | Type | Description |
|---|---|---|---|
| Latest Record Timestamp | last_ts | String | Latest record time in YYYYMMDDHHmmss format, such as 20260826073223. This is not a Unix timestamp in seconds. |
| Earliest Record Timestamp | first_ts | String | Earliest record time in YYYYMMDDHHmmss format, such as 20000606160410. This is not a Unix timestamp in seconds. |
| Annual Statistics | years | Object | Object keyed by four-digit years. Each value is an array of 12 numeric strings, ordered January through December. For example, years["2026"][0] is the record count for January 2026. |
{
"code": 1,
"msg": "查询成功",
"data": {
"appid": "2026102222460250146194",
"code": "lishi",
"ym": "baidu.com",
"cost_points": 2,
"rw_id": "20261028160340_c136af85ac04e1bf18fa11d523d03064",
"result": {
"err_code": "200",
"err_msg": "ok",
"data": {
"code": "1",
"msg": "ok2",
"data": {
"nl": "27",
"gxsj": "2026-08-26 21:05:12",
"jls": "4227164",
"sj_min": "2000-06-06 16:04:10",
"sj_max": "2026-08-26 07:32:23",
"tu": {
"last_ts": "20260826073223",
"first_ts": "20000606160410",
"years": {
"2000": [
"0",
"0",
"0",
"0",
"0",
"1",
"0",
"1",
"0",
"2",
"0",
"1"
],
"2001": [
"0",
"2",
"1",
"2",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0"
],
"2002": [
"0",
"0",
"1",
"2",
"8",
"1",
"2",
"2",
"10",
"0",
"12",
"0"
],
"2003": [
"2",
"5",
"6",
"6",
"3",
"5",
"3",
"3",
"3",
"6",
"4",
"6"
],
"2004": [
"1",
"3",
"4",
"4",
"7",
"31",
"31",
"26",
"37",
"19",
"13",
"34"
],
"2005": [
"40",
"40",
"23",
"30",
"40",
"42",
"44",
"54",
"44",
"60",
"163",
"141"
],
"2006": [
"212",
"107",
"135",
"180",
"142",
"111",
"45",
"44",
"1",
"4",
"6",
"31"
],
"2007": [
"39",
"30",
"33",
"31",
"43",
"18",
"23",
"43",
"46",
"23",
"0",
"28"
],
"2008": [
"30",
"26",
"29",
"30",
"29",
"29",
"27",
"22",
"32",
"27",
"7",
"27"
],
"2009": [
"31",
"27",
"41",
"40",
"34",
"34",
"34",
"27",
"27",
"34",
"32",
"46"
],
"2010": [
"44",
"22",
"17",
"14",
"19",
"12",
"13",
"20",
"21",
"19",
"21",
"19"
],
"2011": [
"41",
"65",
"22",
"23",
"25",
"40",
"41",
"46",
"64",
"106",
"128",
"157"
],
"2012": [
"268",
"282",
"438",
"179",
"173",
"242",
"174",
"129",
"16",
"20",
"23",
"17"
],
"2013": [
"253",
"260",
"562",
"2087",
"2460",
"2230",
"2158",
"1623",
"85",
"57",
"263",
"659"
],
"2014": [
"716",
"476",
"426",
"17",
"78",
"33",
"56",
"43",
"58",
"45",
"27",
"258"
],
"2015": [
"32",
"122",
"110",
"75",
"37",
"37",
"84",
"1295",
"110",
"152",
"126",
"13857"
],
"2016": [
"344344",
"162756",
"31849",
"30457",
"43693",
"10078",
"12368",
"1109",
"327",
"191",
"259",
"1109"
],
"2017": [
"1051",
"1753",
"8476",
"42789",
"4114",
"2221",
"1468",
"271",
"6117",
"1529",
"4787",
"23152"
],
"2018": [
"14593",
"4273",
"393020",
"119921",
"2211",
"2398",
"4254",
"8369",
"3486",
"1117",
"15245",
"8483"
],
"2019": [
"19407",
"8920",
"311750",
"89212",
"358711",
"343496",
"507241",
"898291",
"22164",
"7131",
"2816",
"2943"
],
"2020": [
"4320",
"1280",
"2028",
"3027",
"3215",
"1943",
"3346",
"2584",
"1494",
"8877",
"10849",
"795"
],
"2021": [
"6344",
"735",
"795",
"822",
"722",
"693",
"611",
"1931",
"1401",
"1034",
"7527",
"20960"
],
"2022": [
"3430",
"1676",
"15505",
"2942",
"9857",
"1844",
"1693",
"1566",
"1365",
"1108",
"1031",
"1960"
],
"2023": [
"1610",
"2476",
"2987",
"2077",
"1381",
"1271",
"2556",
"1912",
"2042",
"898",
"1584",
"2114"
],
"2024": [
"6228",
"4149",
"10131",
"6499",
"8647",
"5144",
"7070",
"15606",
"2714",
"418",
"4879",
"1057"
],
"2025": [
"491",
"1140",
"492",
"2889",
"589",
"544",
"11260",
"703",
"384",
"2824",
"35599",
"8070"
],
"2026": [
"9079",
"1457",
"394",
"375",
"268",
"337",
"305",
"429",
"0",
"0",
"0",
"0"
]
}
},
"yy": "中文",
"bt": "百度一下,你就知道",
"zt": "1",
"wz": "baidu.com",
"id": "51885",
"pf": "7990"
}
},
"gxsj": "2026-10-28 16:03:40"
}
}
}