Counter
info
This is a service to count the number of requests to Lumyri's service.
All APIs endpoints
Get statistics of requests
Parameter
- from_time: optional
- default: from date start of the month
- to_time: optional
- default: to today
- detail_by:optional
- option: [date, month],
- default: month
- app_ids: optional
- description: a list of application_id to get counter request value
- default: null
- api_keys: optional
- description: a list of publish_key_id to get counter request value
- default: null
- is_get_money: optional
- description: if true return the counter request and its costs per request
- default: false
request
curl --location --request GET '${endpoint}/counter/statistics?from_time=2023-09-01&to_time=2023-11-01&detail_by=date&is_get_money=true' \
--header 'Authorization: Bearer $ACCESS_TOKEN'
response
{
"data": [
{
"count_month": "02-2023",
"count_year": "2023",
"total": "1234"
},
{
"count_month": "01-2023",
"count_year": "2023",
"total": "5678"
}
],
"money": {
"total_money": "174.08",
"currency": "USD"
},
"total_request": 6912
}