This web service responds with the number of API calls logged in a selected period.
API calls count
- All API calls shown in the API calls evolution and API calls details pages count towards customers' billable quota (for customers with a billing plan based on API calls).
- The Fluid Topics analytics do not log API calls blocked by the Fluid Topics web application firewall.
- API calls leading to a 4xx or 5xx client error are dismissed.
- API calls from public crawlers and generic AI bots are dismissed.
It is necessary to provide an Ft-Calling-App value when using Fluid Topics web services. See Fluid Topics calling app.
| Method | Endpoint |
|---|---|
POST |
|
Request example
The following example shows a JSON request body for this web service:
{
"startDate": "2025-05-01",
"endDate": "2025-07-01",
"groupByPeriod": "month",
"groupBy": "callingApp",
"filters": {
"callingApps": [
"custom-crawler",
"aiserver"
]
}
}
| Field | Type | Required? | Description |
|---|---|---|---|
startDate |
String | Yes | The inclusive start date of the period. Its format can be YYYY-MM-DD, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS. For more information about date and time formats, see Timestamps. The value must be within the analytics data retention period. |
endDate |
String | Yes | The exclusive end date of the period. Must be later than the startDate. Its format can be YYYY-MM-DD, YYYY-MM-DDTHH:MM or YYYY-MM-DDTHH:MM:SS. For more information about date and time formats, see Timestamps. The value must be within the analytics data retention period. |
groupByPeriod |
String | Yes | The period by which to group the API calls. Valid values are month, week and day. |
groupBy |
String | No | A grouping for the API calls. Accepted value is callingApp. |
filters |
String | No | Applicable filters. If no filter is specified, the top 20 calling apps are returned by the web service. |
callingApps |
Array | No | Accepts one or more calling apps. If none is provided, the top 20 calling apps are returned by the web service. |
Response body
The following example shows a JSON response body for this web service:
{
"startDate": "2025-05-01",
"endDate": "2025-07-01",
"groupByPeriod": "month",
"groupBy": "callingApp",
"filters": {
"callingApps": [
"custom-crawler",
"aiserver"
]
},
"results": [
{
"groupValue": "custom-crawler",
"periods": [
{
"periodStartDate": "2025-05-01",
"periodEndDate": "2025-06-01",
"callCount": 782
},
{
"periodStartDate": "2025-06-01",
"periodEndDate": "2025-07-01",
"callCount": 800
}
]
},
{
"groupValue": "aiserver",
"periods": [
{
"periodStartDate": "2025-05-01",
"periodEndDate": "2025-06-01",
"callCount": 0
},
{
"periodStartDate": "2025-06-01",
"periodEndDate": "2025-07-01",
"callCount": 0
}
]
}
]
}
| Field | Type | Description |
|---|---|---|
startDate |
String | The inclusive start date of the total period as defined in the request body. |
endDate |
String | The exclusive end date of the total period as defined in the request body. |
results |
Array | An array containing the results. |
periods |
Array | An array containing the various periods. |
periodStartDate |
String | The inclusive start date of the period by which results are grouped. |
periodEndDate |
String | The exclusive end date of the period by which results are grouped. |
callCount |
Number | The number of calls sent by the calling apps during the period by which results are grouped. |
| Return code | Description |
|---|---|
200 OK |
Returns results |