curl --request GET 'https://core.getfaceage.com/api/v1/business/usage/{business_id}?from=2024-01-01&to=2024-01-30' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer your_secret_key'
{
"status": true,
"data": {
"used": [
{ "date": "2024-01-01", "count": 1 },
{ "date": "2024-01-02", "count": 1 },
{ "date": "2024-01-03", "count": 11 },
{ "date": "2024-01-04", "count": 0 },
{ "date": "2024-01-05", "count": 1 }
]
}
}
{
"status": false,
"message": "business id is not valid"
}
{
"message": "Unauthenticated."
}
Business management
Get usage
Get daily usage counts for a business to build charts and reports.
GET
/
business
/
usage
/
{business_id}
curl --request GET 'https://core.getfaceage.com/api/v1/business/usage/{business_id}?from=2024-01-01&to=2024-01-30' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer your_secret_key'
{
"status": true,
"data": {
"used": [
{ "date": "2024-01-01", "count": 1 },
{ "date": "2024-01-02", "count": 1 },
{ "date": "2024-01-03", "count": 11 },
{ "date": "2024-01-04", "count": 0 },
{ "date": "2024-01-05", "count": 1 }
]
}
}
{
"status": false,
"message": "business id is not valid"
}
{
"message": "Unauthenticated."
}
Returns the number of analyses per day for a date range. Use it to build usage charts and reports.
Path parameters
integer
required
ID of the business.
Query parameters
string
Start date of the range,
YYYY-MM-DD. Records on or after this date are included.string
End date of the range,
YYYY-MM-DD. Records on or before this date are included.Response
boolean
true when the request succeeds.curl --request GET 'https://core.getfaceage.com/api/v1/business/usage/{business_id}?from=2024-01-01&to=2024-01-30' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer your_secret_key'
{
"status": true,
"data": {
"used": [
{ "date": "2024-01-01", "count": 1 },
{ "date": "2024-01-02", "count": 1 },
{ "date": "2024-01-03", "count": 11 },
{ "date": "2024-01-04", "count": 0 },
{ "date": "2024-01-05", "count": 1 }
]
}
}
{
"status": false,
"message": "business id is not valid"
}
{
"message": "Unauthenticated."
}