UnoRouter Performance API
The Performance API from UnoRouter, for performance.
The Performance API from UnoRouter, for performance.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-performance-api"
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.
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: 3.2.0
info:
description: ' '
title: New Performance API
version: 0.0.1
tags:
- name: Performance
paths:
/api/performance/disk_cache:
delete:
operationId: clearDiskCache
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: Clear Disk Cache
tags:
- Performance
/api/performance/gc:
post:
operationId: forceGC
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: Force G C
tags:
- Performance
/api/performance/logs:
delete:
operationId: cleanupLogFiles
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.LogCleanupResult'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.LogCleanupResult'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Cleanup Log Files
tags:
- Performance
get:
operationId: getLogFiles
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.LogFilesResponse'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.LogFilesResponse'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Log Files
tags:
- Performance
/api/performance/reset_stats:
post:
operationId: resetPerformanceStats
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: Reset Performance Stats
tags:
- Performance
/api/performance/stats:
get:
operationId: getPerformanceStats
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/Response_dto.PerformanceStats'
application/xml:
schema:
$ref: '#/components/schemas/Response_dto.PerformanceStats'
description: OK
security:
- accessToken: []
newApiUser: []
- newApiUser: []
sessionAuth: []
summary: Get Performance Stats
tags:
- Performance
components:
schemas:
LogFilesResponse:
properties:
enabled:
type: boolean
file_count:
type: integer
files:
items:
$ref: '#/components/schemas/LogFileInfo'
type:
- array
- 'null'
log_dir:
type: string
newest_time:
format: date-time
nullable: true
type: string
oldest_time:
format: date-time
nullable: true
type: string
total_size:
format: int64
type: integer
required:
- enabled
- file_count
- files
- log_dir
- total_size
type: object
MessageResponse:
properties:
message:
type: string
success:
type: boolean
required:
- message
- success
type: object
Response_dto.LogCleanupResult:
description: Response_dto.LogCleanupResult schema
properties:
data:
$ref: '#/components/schemas/LogCleanupResult'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
LogFileInfo:
properties:
mod_time:
format: date-time
type: string
name:
type: string
size:
format: int64
type: integer
required:
- mod_time
- name
- size
type: object
DiskSpaceInfo:
properties:
free:
maximum: 18446744073709552000
minimum: 0
type: integer
total:
maximum: 18446744073709552000
minimum: 0
type: integer
used:
maximum: 18446744073709552000
minimum: 0
type: integer
used_percent:
format: double
type: number
required:
- free
- total
- used
- used_percent
type: object
Response_dto.PerformanceStats:
description: Response_dto.PerformanceStats schema
properties:
data:
$ref: '#/components/schemas/PerformanceStats'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
DiskCacheStats:
properties:
active_disk_files:
format: int64
type: integer
active_memory_buffers:
format: int64
type: integer
current_disk_usage_bytes:
format: int64
type: integer
current_memory_usage_bytes:
format: int64
type: integer
disk_cache_hits:
format: int64
type: integer
disk_cache_max_bytes:
format: int64
type: integer
disk_cache_threshold_bytes:
format: int64
type: integer
memory_cache_hits:
format: int64
type: integer
required:
- active_disk_files
- active_memory_buffers
- current_disk_usage_bytes
- current_memory_usage_bytes
- disk_cache_hits
- disk_cache_max_bytes
- disk_cache_threshold_bytes
- memory_cache_hits
type: object
DiskCacheInfo:
properties:
exists:
type: boolean
file_count:
type: integer
path:
type: string
total_size:
format: int64
type: integer
required:
- exists
- file_count
- path
- total_size
type: object
LogCleanupResult:
properties:
deleted_count:
type: integer
failed_files:
items:
type: string
type:
- array
- 'null'
freed_bytes:
format: int64
type: integer
required:
- deleted_count
- failed_files
- freed_bytes
type: object
Response_dto.LogFilesResponse:
description: Response_dto.LogFilesResponse schema
properties:
data:
$ref: '#/components/schemas/LogFilesResponse'
message:
type: string
success:
type: boolean
required:
- data
- message
- success
type: object
MemoryStats:
properties:
alloc:
maximum: 18446744073709552000
minimum: 0
type: integer
num_gc:
maximum: 4294967295
minimum: 0
type: integer
num_goroutine:
type: integer
sys:
maximum: 18446744073709552000
minimum: 0
type: integer
total_alloc:
maximum: 18446744073709552000
minimum: 0
type: integer
required:
- alloc
- num_gc
- num_goroutine
- sys
- total_alloc
type: object
PerformanceStats:
properties:
cache_stats:
$ref: '#/components/schemas/DiskCacheStats'
config:
$ref: '#/components/schemas/PerformanceConfig'
disk_cache_info:
$ref: '#/components/schemas/DiskCacheInfo'
disk_space_info:
$ref: '#/components/schemas/DiskSpaceInfo'
memory_stats:
$ref: '#/components/schemas/MemoryStats'
required:
- cache_stats
- config
- disk_cache_info
- disk_space_info
- memory_stats
type: object
PerformanceConfig:
properties:
disk_cache_enabled:
type: boolean
disk_cache_max_size_mb:
type: integer
disk_cache_path:
type: string
disk_cache_threshold_mb:
type: integer
is_running_in_container:
type: boolean
monitor_cpu_threshold:
type: integer
monitor_disk_threshold:
type: integer
monitor_enabled:
type: boolean
monitor_memory_threshold:
type: integer
required:
- disk_cache_enabled
- disk_cache_max_size_mb
- disk_cache_path
- disk_cache_threshold_mb
- is_running_in_container
- monitor_cpu_threshold
- monitor_disk_threshold
- monitor_enabled
- monitor_memory_threshold
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