통계 가져오기
이 호출로 너의 계정에 대한 다양한 통계를 확인할 수 있어:
GET https://gender-api.com/v2/statistic
| Headers |
Content-Type: application/json
Authorization: Bearer <your authorization token>
|
응답
{
"is_limit_reached": false,
"remaining_credits": 24999,
"details": {
"credits_used": 0,
"duration": "83ms"
},
"usage_last_month": {
"date": "2018-03",
"credits_used": 25
}
}
응답 필드
| 필드 | 유형 | 설명 |
|---|---|---|
is_limit_reached |
bool | 더 이상 남은 요청이 없다면 true를 반환해 |
remaining_credits |
int | 남은 요청 수 |
details.credits_used |
int | 이 요청으로 사용된 요청 수 |
details.duration |
string | 서버가 요청을 처리하는 데 걸린 시간 |
usage_last_month.date |
string | 지난달 날짜 |
usage_last_month.credits_used |
int | 지난 한 달 동안 사용한 요청 수 |