Analytics
Fetch analytics data
post/analytics
Request
- Base URLhttps://api.us-east-1.langdb.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Project-Idstring required
LangDB project ID
Request body
Example request
{
"start_time_us": 1693062345678,
"end_time_us": 1693082345678
}Response
Successful response
Example response
{
"timeseries": [
{
"hour": "2025-02-20 18:00:00",
"total_cost": 12.34,
"total_requests": 1000,
"avg_duration": 250.5,
"duration": 245.7,
"duration_p99": 750.2,
"duration_p95": 500.1,
"duration_p90": 400.8,
"duration_p50": 200.3,
"tpot": 0.85,
"tpot_p99": 1.5,
"tpot_p95": 1.2,
"tpot_p90": 1,
"tpot_p50": 0.75
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.