查询积分变动记录
curl --request POST \
--url https://dk.mountsea.ai/api-user/points/search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dateRange": {
"start": 1767801600000,
"end": 1773071999999
},
"page": 1,
"limit": 10,
"serviceId": "<string>"
}
'import requests
url = "https://dk.mountsea.ai/api-user/points/search"
payload = {
"dateRange": {
"start": 1767801600000,
"end": 1773071999999
},
"page": 1,
"limit": 10,
"serviceId": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dateRange: {start: 1767801600000, end: 1773071999999},
page: 1,
limit: 10,
serviceId: '<string>'
})
};
fetch('https://dk.mountsea.ai/api-user/points/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dk.mountsea.ai/api-user/points/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dateRange' => [
'start' => 1767801600000,
'end' => 1773071999999
],
'page' => 1,
'limit' => 10,
'serviceId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dk.mountsea.ai/api-user/points/search"
payload := strings.NewReader("{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dk.mountsea.ai/api-user/points/search")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dk.mountsea.ai/api-user/points/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body用量与积分
搜索积分变动历史
POST
/
api-user
/
points
/
search
查询积分变动记录
curl --request POST \
--url https://dk.mountsea.ai/api-user/points/search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"dateRange": {
"start": 1767801600000,
"end": 1773071999999
},
"page": 1,
"limit": 10,
"serviceId": "<string>"
}
'import requests
url = "https://dk.mountsea.ai/api-user/points/search"
payload = {
"dateRange": {
"start": 1767801600000,
"end": 1773071999999
},
"page": 1,
"limit": 10,
"serviceId": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dateRange: {start: 1767801600000, end: 1773071999999},
page: 1,
limit: 10,
serviceId: '<string>'
})
};
fetch('https://dk.mountsea.ai/api-user/points/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://dk.mountsea.ai/api-user/points/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'dateRange' => [
'start' => 1767801600000,
'end' => 1773071999999
],
'page' => 1,
'limit' => 10,
'serviceId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dk.mountsea.ai/api-user/points/search"
payload := strings.NewReader("{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dk.mountsea.ai/api-user/points/search")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dk.mountsea.ai/api-user/points/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dateRange\": {\n \"start\": 1767801600000,\n \"end\": 1773071999999\n },\n \"page\": 1,\n \"limit\": 10,\n \"serviceId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body响应示例
{
"items": [
{
"id": "e6b088e3-791c-4a1c-bb14-198f0867f368",
"serviceName": "chat",
"apiPath": "/v1/chat/completions",
"apiMethod": "POST",
"finalAmount": 10,
"beforeCredits": 9950,
"afterCredits": 9940,
"traceId": "1d110e91-9d69-4325-bd42-b55583ae6dc5",
"createdAt": "2025-09-11T02:05:05.225Z"
}
],
"meta": {
"totalItems": 128,
"itemCount": 10,
"itemsPerPage": 10,
"totalPages": 13,
"currentPage": 1
}
}
响应字段
items[] — 积分变动记录
| 字段 | 类型 | 描述 |
|---|---|---|
id | string | 记录 ID(UUID) |
serviceName | string | 服务名称(如 chat、gemini) |
apiPath | string | API 请求路径 |
apiMethod | string | HTTP 方法 |
finalAmount | number | 本次请求扣减的积分 |
beforeCredits | number | 扣减前积分余额 |
afterCredits | number | 扣减后积分余额 |
traceId | string | 请求追踪 ID |
createdAt | string | 创建时间(ISO 8601) |
meta — 分页信息
| 字段 | 类型 | 描述 |
|---|---|---|
totalItems | number | 总记录数 |
itemCount | number | 当前页记录数 |
itemsPerPage | number | 每页大小 |
totalPages | number | 总页数 |
currentPage | number | 当前页码 |
dateRange 参数是必填的。最大日期范围跨度为 90 天。时间戳单位为毫秒。beforeCredits 和 afterCredits 之间的差值等于 finalAmount。