1. 日志
aokapi.com
  • 介绍
  • 快速开始
    • 注册账号
    • 登录账号
    • 购买额度
    • 创建 API 令牌
  • OPENAI
    • Codex 配置
  • Claude
    • Claude Code 配置
  • GEMINI
    • Gemini CLI 配置
  • 图片生成
    • GPT-image-2
      • 创建图像(文生图)使用文档
      • 创建图像(文生图)
    • NanoBanana-生图
      • Gemini原生格式
      • Gemini格式传图生图
      • OpenAI聊天格式
  • 管理接口
    • 鉴权体系说明(Auth)
    • 令牌管理
      • 获取所有令牌
    • 日志
      • 获取个人日志
        GET
  1. 日志

获取个人日志

GET
/api/log/self/
个人使用日志查询

请求参数

Query 参数

Header 参数

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location '/api/log/self/?p=1&page_size=100&type=0&start_timestamp=1779120000&end_timestamp=1781711999&token_name=sp_****&model_name=gpt-5.1&group=&request_id=' \
--header 'Authorization;' \
--header 'New-Api-User: 3'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
    "data": {
        "page": 1,
        "page_size": 100,
        "total": 257,
        "items": [
            {
                "id": 1,
                "user_id": 3,
                "created_at": 1781337437,
                "type": 5,
                "content": "status_code=503, No available accounts: no available accounts",
                "username": "dianwei.cui",
                "token_name": "ClaudeCode-MAX",
                "model_name": "claude-fable-5",
                "quota": 0,
                "prompt_tokens": 0,
                "completion_tokens": 0,
                "use_time": 2,
                "is_stream": true,
                "channel": 5,
                "channel_name": "",
                "token_id": 699,
                "group": "ClaudeCode-MAX",
                "ip": "",
                "request_id": "202606130757148086033998268d9d6zHNBY0ZJ",
                "other": "{\"channel_id\":5,\"channel_name\":\"uuapi-CC专用2\",\"channel_type\":14,\"error_code\":\"unknown_error\",\"error_type\":\"openai_error\",\"request_path\":\"/v1/messages\",\"status_code\":503}"
            },
            {
                "id": 2,
                "user_id": 3,
                "created_at": 1781337398,
                "type": 5,
                "content": "status_code=503, No available accounts: no available accounts",
                "username": "dianwei.cui",
                "token_name": "ClaudeCode-MAX",
                "model_name": "claude-fable-5",
                "quota": 0,
                "prompt_tokens": 0,
                "completion_tokens": 0,
                "use_time": 0,
                "is_stream": true,
                "channel": 5,
                "channel_name": "",
                "token_id": 699,
                "group": "ClaudeCode-MAX",
                "ip": "",
                "request_id": "202606130756378880369258268d9d6IMwZ6tgf",
                "other": "{\"channel_id\":5,\"channel_name\":\"uuapi-CC专用2\",\"channel_type\":14,\"error_code\":\"unknown_error\",\"error_type\":\"openai_error\",\"request_path\":\"/v1/messages\",\"status_code\":503}"
            },
            {
                "id": 3,
                "user_id": 3,
                "created_at": 1781337362,
                "type": 5,
                "content": "status_code=503, No available accounts: no available accounts",
                "username": "dianwei.cui",
                "token_name": "ClaudeCode-MAX",
                "model_name": "claude-fable-5",
                "quota": 0,
                "prompt_tokens": 0,
                "completion_tokens": 0,
                "use_time": 0,
                "is_stream": true,
                "channel": 5,
                "channel_name": "",
                "token_id": 699,
                "group": "ClaudeCode-MAX",
                "ip": "",
                "request_id": "20260613075602406335138268d9d6Pcg0dmSN",
                "other": "{\"channel_id\":5,\"channel_name\":\"uuapi-CC专用2\",\"channel_type\":14,\"error_code\":\"unknown_error\",\"error_type\":\"openai_error\",\"request_path\":\"/v1/messages\",\"status_code\":503}"
            },
            {
                "id": 4,
                "user_id": 3,
                "created_at": 1781337328,
                "type": 5,
                "content": "status_code=503, No available accounts: no available accounts",
                "username": "dianwei.cui",
                "token_name": "ClaudeCode-MAX",
                "model_name": "claude-fable-5",
                "quota": 0,
                "prompt_tokens": 0,
                "completion_tokens": 0,
                "use_time": 9,
                "is_stream": true,
                "channel": 5,
                "channel_name": "",
                "token_id": 699,
                "group": "ClaudeCode-MAX",
                "ip": "",
                "request_id": "202606130755194060599468268d9d6L5wfkq9q",
                "other": "{\"channel_id\":5,\"channel_name\":\"uuapi-CC专用2\",\"channel_type\":14,\"error_code\":\"unknown_error\",\"error_type\":\"openai_error\",\"request_path\":\"/v1/messages\",\"status_code\":503}"
            },
            {
                "id": 5,
                "user_id": 3,
                "created_at": 1781337283,
                "type": 5,
                "content": "status_code=503, No available accounts: no available accounts",
                "username": "dianwei.cui",
                "token_name": "ClaudeCode-MAX",
                "model_name": "claude-fable-5",
                "quota": 0,
                "prompt_tokens": 0,
                "completion_tokens": 0,
                "use_time": 0,
                "is_stream": true,
                "channel": 5,
                "channel_name": "",
                "token_id": 699,
                "group": "ClaudeCode-MAX",
                "ip": "",
                "request_id": "20260613075443564319248268d9d6Z7dfoE7u",
                "other": "{\"channel_id\":5,\"channel_name\":\"uuapi
修改于 2026-06-17 16:43:39
上一页
获取所有令牌
Built with