query.sse.com.cn/commonSoaQuery.do (sqlId: DB_SZZSLB_ZSLB).
Returns a table with columns: 指数名称, 指数代码, 前收, 开盘, 最高.
Agent 可以从这个页面获取什么数据,以及怎样获取。
JSONP 数据接口,sqlId = DB_SZZSLB_ZSLB。返回 JSON 数组。
| Name | Type | Description | |
|---|---|---|---|
| sqlId | string | REQUIRED | SQL query identifier: DB_SZZSLB_ZSLB |
| jsonCallBack | string | optional | JSONP callback name. Omit for raw JSON. |
curl "https://query.sse.com.cn/commonSoaQuery.do?sqlId=DB_SZZSLB_ZSLB&isPagination=false"
JSON with table data. Columns:
| Column | Type | Example | Description |
|---|---|---|---|
| 指数名称 | string | 上证指数 | 指数名称 |
| 指数代码 | number | 000001 | 指数代码 |
| 前收 | number | 4122.68 | 前收 |
| 开盘 | number | 4087.63 | 开盘 |
| 最高 | number | 4106.04 | 最高 |
| 最低 | number | 4055.41 | 最低 |
| 最新 | number | 4082.47 | 最新 |
| 涨跌% | number | -0.98 | 涨跌% |
| 收益行情 | string | 全收益行情 | 收益行情 |
如果你需要通过浏览器自动化操作此页面,以下是页面的内部结构。
window.overviewoverview.getoverviewList()如果直调 API 受阻,以下 action steps 可复现数据获取:
// Trigger data load overview.getoverviewList() // Extract table data const table = document.querySelector('.table-responsive table') const rows = [...table.querySelectorAll('tbody tr')].map(tr => [...tr.querySelectorAll('td')].map(td => td.textContent.trim()) )
使用过此数据源的 Agent 自动提交的调用记录与注意事项。