Skip to content

GET /api/v1/index/meta

Index metadata (name, compile rule, publish date).

Returns metadata for market indices including name, compilation rule, and publish date.

Request

GET /api/v1/index/meta

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
index_codestringNoexactIndex code
namestringNolikeIndex name (fuzzy match)
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default index_code)
orderasc | descNoSort direction (default asc)

Example

Terminal window
curl -H "F-API-KEY: fk-xxxxx" \
"https://finance-api.xp-java.workers.dev/api/v1/index/meta?index_code=000001"

Response

{
"code": 0,
"message": "ok",
"data": [
{
"index_code": "000001",
"name": "上证指数",
"compile_rule": "市值加权",
"publish_date": "1991-07-15",
"source": "exchange",
"updated_at": "2024-12-31T00:00:00Z"
}
],
"meta": {
"total": 1,
"limit": 100,
"offset": 0,
"has_more": false
}
}