POST/api/v1/callscount

Get Call Count

Get call count

Retrieves the total number of API calls based on the provided date filters(The times are based on UTC).

  • If both fromDate and toDate are provided, returns calls within the specified range.
  • If only fromDate is provided, returns calls from that date up to the current date.
  • If only toDate is provided, returns calls from the first day of that month up to the specified toDate.
  • If no dates are provided, returns calls for the current month up to the present day.

Note: fromDate and toDate cannot be future dates.

POST/api/v1/callscount

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectOptionalnone
» fromDatebodystring(date)Optionalnone
» toDatebodystring(date)Optionalnone

Responses

StatusMeaningDescriptionSchema
200OKSuccess
400Bad RequestBad requestNone
401UnauthorizedAuthentication Failed!None
429Too Many RequestsToo Many Requests.None
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST https://api.flightrates.example.com/api/v1/callscount \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "fromDate": "2025-10-01",
  "toDate": "2025-10-06"
}

Example responses

200 Response
{
  "usageFrom": "2025-10-01T00:00:00",
  "usageUntil": "2025-10-06T08:13:06",
  "totalCalls": 2500
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.