查询积分变动记录
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_bodyUsage & Credits
Search Credits Change History
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_bodyResponse Example
{
"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
}
}
Response Fields
items[] — Credits Change Records
| Field | Type | Description |
|---|---|---|
id | string | Record ID (UUID) |
serviceName | string | Service name (e.g. chat, gemini) |
apiPath | string | API request path |
apiMethod | string | HTTP method |
finalAmount | number | Credits deducted for this request |
beforeCredits | number | Credits balance before deduction |
afterCredits | number | Credits balance after deduction |
traceId | string | Request trace ID |
createdAt | string | Created time (ISO 8601) |
meta — Pagination Info
| Field | Type | Description |
|---|---|---|
totalItems | number | Total number of records |
itemCount | number | Number of records on current page |
itemsPerPage | number | Page size |
totalPages | number | Total number of pages |
currentPage | number | Current page number |
The
dateRange parameter is required. The maximum date range span is 90 days. Timestamps are in milliseconds.The difference between
beforeCredits and afterCredits equals finalAmount.⌘I