Retrieve most used API endpoints
Use this API to retrieve usage statistics for the most frequently called API endpoints in a Reltio environment. The results include request volume, error count, average latency, and success rate for each endpoint.
HTTP method and endpoint
POST /statistics-reporting/{tenantId}/API/getMostUsedApis
Replace {tenantId} with the ID of the target tenant.
Request headers
| Header | Value | Required |
|---|---|---|
Content-Type | application/json | Yes |
Authorization | Bearer {access_token} | Yes |
Request body
| Parameter | Type | Required | Description | Accepted values / Default |
|---|---|---|---|---|
from (1) | Long | Yes | Start time in epoch milliseconds | — |
to (1) | Long | Yes | End time in epoch milliseconds | — |
env | String | Yes | Target environment | Example: prod, qa, devDefault: none |
queryTypes | Array | No | Filters by query type | Read, Write, Search, Merge, GraphsDefault: all |
httpMethods | Array | No | Filters by HTTP methods | Example: POST, GETDefault: all methods |
apiEndPoints | Array | No | Filters by API paths | Example: /api/{tenantId}/entitiesDefault: all |
users | Array | No | Filters by user email addresses | Example: user1@example.comDefault: all users |
Note:
| ||||
Example request
curl -X POST https://{baseUrl}/statistics-reporting/{tenantId}/API/getMostUsedApis \
-H "Authorization: Bearer YOUR_BEARER_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"from": 1721012400000,
"to": 1721016000000,
"env": "prod",
"queryTypes": ["Read"],
"httpMethods": ["GET"],
"apiEndPoints": ["/api/v2/entities"],
"users": ["user1@example.com"]
}'
Response fields
| Field | Type | Description |
|---|---|---|
api | String | Complete API endpoint path with HTTP method that was called |
requestCount | Integer | Total number of requests made to this API endpoint |
avgLatency | Float | Average response time in milliseconds for requests to this endpoint |
errorCount | Integer | Number of failed requests that returned error status codes |
successRate | Float | Percentage of successful requests (calculated as successful/total × 100) |
Example response
[
{
"api": "GET /api/v2/entities",
"requestCount": 45678,
"avgLatency": 165.32,
"errorCount": 234,
"successRate": 99.48
},
{
"api": "POST /api/v2/entities",
"requestCount": 34521,
"avgLatency": 356.18,
"errorCount": 426,
"successRate": 98.76
},
{
"api": "GET /api/v2/crosswalks",
"requestCount": 23145,
"avgLatency": 124.45,
"errorCount": 85,
"successRate": 99.63
}
]