Work with this as data
Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-log-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
description: ' '
title: New Log API
version: 0.0.1
tags:
- name: Log
paths:
/api/log/:
delete:
operationId: deleteHistoryLogs
parameters:
- in: query
name: target_timestamp
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_int64'
application/xml:
schema:
$ref: '#/components/schemas/Response_int64'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Delete History Logs
tags:
- Log
get:
operationId: getAllLogs
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
- in: query
name: type
schema:
type: integer
- in: query
name: start_timestamp
schema:
type: integer
- in: query
name: end_timestamp
schema:
type: integer
- description: Filter by username
in: query
name: username
schema:
type: string
- description: Filter by the Discord ID bound to a user
in: query
name: discord_id
schema:
type: string
- description: Filter by token name
in: query
name: token_name
schema:
type: string
- description: Filter by model name
in: query
name: model_name
schema:
type: string
- in: query
name: channel
schema:
type: integer
- description: Filter by group
in: query
name: group
schema:
type: string
- description: Filter by request ID
in: query
name: request_id
schema:
type: string
- description: Filter by upstream request ID
in: query
name: upstream_request_id
schema:
type: string
- description: Filter by subscription plan title (substring)
in: query
name: subscription_plan
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.Log'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.Log'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get All Logs
tags:
- Log
/api/log/channel_affinity_usage_cache:
get:
operationId: getChannelAffinityUsageCacheStats
parameters:
- description: Filter by rule name
in: query
name: rule_name
schema:
type: string
- description: Filter by group
in: query
name: using_group
schema:
type: string
- description: Filter by key fingerprint
in: query
name: key_fp
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_service.ChannelAffinityUsageCacheStats'
application/xml:
schema:
$ref: '#/components/schemas/Response_service.ChannelAffinityUsageCacheStats'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Channel Affinity Usage Cache Stats
tags:
- Log
/api/log/export:
get:
operationId: exportAllLogs
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
application/xml:
schema:
$ref: '#/components/schemas/ApiResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Export All Logs
tags:
- Log
/api/log/search:
get:
operationId: searchAllLogs
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Search All Logs
tags:
- Log
/api/log/self:
get:
operationId: getUserLogs
parameters:
- description: Page number (1-based)
in: query
name: p
schema:
type: integer
- description: Items per page
in: query
name: page_size
schema:
type: integer
- in: query
name: type
schema:
type: integer
- in: query
name: start_timestamp
schema:
type: integer
- in: query
name: end_timestamp
schema:
type: integer
- description: Filter by token name
in: query
name: token_name
schema:
type: string
- description: Filter by model name
in: query
name: model_name
schema:
type: string
- description: Filter by group
in: query
name: group
schema:
type: string
- description: Filter by request ID
in: query
name: request_id
schema:
type: string
- description: Filter by upstream request ID
in: query
name: upstream_request_id
schema:
type: string
- description: Filter by subscription plan title (substring)
in: query
name: subscription_plan
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.Log'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PageData-model.Log'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get User Logs
tags:
- Log
/api/log/self/export:
get:
operationId: exportUserLogs
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
application/xml:
schema:
$ref: '#/components/schemas/ApiResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Export User Logs
tags:
- Log
/api/log/self/perf:
get:
operationId: getSelfPerfMetrics
parameters:
- description: Lookback window in hours (default 24, max 720)
in: query
name: hours
schema:
type: integer
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_perf_metrics.SummaryAllResult'
application/xml:
schema:
$ref: '#/components/schemas/Response_perf_metrics.SummaryAllResult'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Self Perf Metrics
tags:
- Log
/api/log/self/search:
get:
operationId: searchUserLogs
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/MessageResponse'
application/xml:
schema:
$ref: '#/components/schemas/MessageResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Search User Logs
tags:
- Log
/api/log/self/stat:
get:
operationId: getLogsSelfStat
parameters:
- in: query
name: type
schema:
type: integer
- in: query
name: start_timestamp
schema:
type: integer
- in: query
name: end_timestamp
schema:
type: integer
- description: Filter by token name
in: query
name: token_name
schema:
type: string
- description: Filter by model name
in: query
name: model_name
schema:
type: string
- in: query
name: channel
schema:
type: integer
- description: Filter by group
in: query
name: group
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.LogStatData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.LogStatData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Logs Self Stat
tags:
- Log
/api/log/stat:
get:
operationId: getLogsStat
parameters:
- in: query
name: type
schema:
type: integer
- in: query
name: start_timestamp
schema:
type: integer
- in: query
name: end_timestamp
schema:
type: integer
- description: Filter by token name
in: query
name: token_name
schema:
type: string
- description: Filter by username
in: query
name: username
schema:
type: string
- description: Filter by model name
in: query
name: model_name
schema:
type: string
- in: query
name: channel
schema:
type: integer
- description: Filter by group
in: query
name: group
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.LogStatData'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.LogStatData'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Logs Stat
tags:
- Log
/api/log/token:
get:
operationId: getLogByKey
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_Array-model.Log'
application/xml:
schema:
$ref: '#/components/schemas/Response_Array-model.Log'
description: OK
security:
- bearerAuth: []
summary: Get Log By Key
tags:
- Log
components:
schemas:
Response_dto.LogStatData:
description: Response_dto.LogStatData schema
properties:
data:
$ref: '#/components/schemas/LogStatData'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
Response_dto.PageData-model.Log:
description: Response_dto.PageData-model.Log schema
properties:
data:
properties:
items:
items:
$ref: '#/components/schemas/Log'
type:
- array
- 'null'
page:
type: integer
page_size:
type: integer
total:
type: integer
required:
- items
- page
- page_size
- total
type: object
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
ApiResponse:
properties:
data: {}
message:
type: string
object:
type: string
success:
type: boolean
required:
- message
- success
type: object
Response_perf_metrics.SummaryAllResult:
description: Response_perf_metrics.SummaryAllResult schema
properties:
data:
$ref: '#/components/schemas/SummaryAllResult'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
SuccessRatePoint:
properties:
success_rate:
format: double
type: number
ts:
format: int64
type: integer
required:
- success_rate
- ts
type: object
LogStatData:
properties:
quota:
format: int64
type: integer
rpm:
type: integer
tpm:
type: integer
required:
- quota
- rpm
- tpm
type: object
ModelSummary:
properties:
avg_latency_ms:
format: int64
type: integer
avg_tps:
format: double
type: number
avg_ttft_ms:
format: int64
type: integer
model_name:
type: string
recent_success_rates:
items:
format: double
type: number
type:
- array
- 'null'
recent_success_series:
items:
$ref: '#/components/schemas/SuccessRatePoint'
type:
- array
- 'null'
request_count:
format: int64
type: integer
success_rate:
format: double
type: number
required:
- avg_latency_ms
- avg_tps
- avg_ttft_ms
- model_name
- request_count
- success_rate
type: object
Response_int64:
description: Response_int64 schema
properties:
data:
format: int64
type: integer
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
MessageResponse:
properties:
message:
type: string
success:
type: boolean
required:
- message
- success
type: object
Log:
properties:
channel:
type: integer
channel_name:
type: string
completion_tokens:
type: integer
content:
type: string
created_at:
format: int64
type: integer
group:
type: string
id:
type: integer
ip:
type: string
is_stream:
type: boolean
model_name:
type: string
other:
type: string
prompt_tokens:
type: integer
quota:
type: integer
request_id:
type: string
token_id:
type: integer
token_name:
type: string
type:
type: integer
upstream_request_id:
type: string
use_time:
type: integer
user_id:
type: integer
username:
type: string
required:
- channel
- channel_name
- completion_tokens
- content
- created_at
- group
- id
- ip
- is_stream
- model_name
- other
- prompt_tokens
- quota
- token_id
- token_name
- type
- use_time
- user_id
- username
type: object
Summary:
properties:
avg_latency_ms:
format: int64
type: integer
avg_tps:
format: double
type: number
success_rate:
format: double
type: number
required:
- avg_latency_ms
- avg_tps
- success_rate
type: object
Response_service.ChannelAffinityUsageCacheStats:
description: Response_service.ChannelAffinityUsageCacheStats schema
properties:
data:
$ref: '#/components/schemas/ChannelAffinityUsageCacheStats'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
ChannelAffinityUsageCacheStats:
properties:
cached_token_rate_mode:
type: string
cached_tokens:
format: int64
type: integer
completion_tokens:
format: int64
type: integer
hit:
format: int64
type: integer
key_fp:
type: string
last_seen_at:
format: int64
type: integer
prompt_cache_hit_tokens:
format: int64
type: integer
prompt_tokens:
format: int64
type: integer
rule_name:
type: string
total:
format: int64
type: integer
total_tokens:
format: int64
type: integer
using_group:
type: string
window_seconds:
format: int64
type: integer
required:
- cached_token_rate_mode
- cached_tokens
- completion_tokens
- hit
- key_fp
- last_seen_at
- prompt_cache_hit_tokens
- prompt_tokens
- rule_name
- total
- total_tokens
- using_group
- window_seconds
type: object
SummaryAllResult:
properties:
models:
items:
$ref: '#/components/schemas/ModelSummary'
type:
- array
- 'null'
recent_success_series:
additionalProperties:
items:
$ref: '#/components/schemas/SuccessRatePoint'
type: array
type:
- object
- 'null'
summary:
$ref: '#/components/schemas/Summary'
window_end:
format: int64
type: integer
window_start:
format: int64
type: integer
required:
- models
- summary
- window_end
- window_start
type: object
Response_Array-model.Log:
description: Response_Array-model.Log schema
properties:
data:
items:
$ref: '#/components/schemas/Log'
type:
- array
- 'null'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
securitySchemes:
accessToken:
description: System access token for dashboard API routes. Must be paired with New-Api-User header.
in: header
name: Authorization
type: apiKey
anthropicApiKey:
description: Anthropic-style API key. Used by /v1/messages and /v1/models.
in: header
name: x-api-key
type: apiKey
bearerAuth:
description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
scheme: bearer
type: http
newApiUser:
description: User ID header. Required together with the access token or session cookie for dashboard API routes.
in: header
name: New-Api-User
type: apiKey
sessionAuth:
description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
in: cookie
name: session
type: apiKey