전체 이름으로 조회 - 이름과 성 분리
페이지에서 이름과 성을 하나의 필드로 사용 중이라면, 이 API를 사용해 각 부분을 추출하세요
POST https://gender-api.com/v2/gender
Required Requests: 1
| Headers |
Content-Type: application/json
Authorization: Bearer <your authorization token>
|
||||||||||||||||||||||||
| JSON Payload |
|
요청 예시
전체 이름으로만 조회
Codepen.io에서 실시간으로 테스트해 보기
{
"full_name": "Theresa Miller"
}
전체 이름과 국가 코드로 조회
Codepen.io에서 실시간으로 테스트해 보기
{
"full_name": "Theresa Miller",
"country": "US"
}
전체 이름과 브라우저 로케일로 조회
Codepen.io에서 실시간으로 테스트해 보기
{
"full_name": "Thomas Johnson",
"locale": "en_US"
}
전체 이름과 IP 주소를 사용해 지역 정보로 조회
Codepen.io에서 실시간으로 테스트해 보기
{
"full_name": "Markus Stefan NonExistingLastName",
"ip": "54.201.16.177"
}
한 번의 요청으로 여러 이름 조회
Codepen.io에서 실시간으로 테스트해 보기
[
{
"full_name": "Theresa Miller"
},
{
"full_name": "Thomas Johnson",
"country": "US"
}
]
응답
{
"input": {
"full_name": "Theresa Miller"
},
"details": {
"credits_used": 1,
"duration": "33ms",
"samples": 8961,
"country": null,
"first_name_sanitized": "theresa"
},
"result_found": true,
"last_name": "Miller",
"first_name": "Theresa",
"probability": 0.98,
"gender": "female"
}
응답 필드
| 필드 | 유형 | 설명 |
|---|---|---|
input |
object | 전송된 페이로드 |
details.credits_used |
int | 이 요청으로 사용된 요청 수 |
details.samples |
int | 너의 요청과 일치하는 레코드가 우리 데이터베이스에서 몇 개 발견되었는지 |
details.country |
string | 우리가 찾은 국가 |
details.full_name_sanitized |
int | 정규화기를 적용한 후의 이름 |
details.duration |
string | 서버가 요청을 처리하는 데 걸린 시간 |
result_found |
bool | 주어진 이름에 대해 성별 정보를 조회하는 데 성공했다면 true |
full_name |
string | 성별 판단에 사용한 전체 이름 |
probability |
float | 이 값(0과 1 사이)은 우리 데이터베이스 신뢰도를 나타내. 값이 1이면, 네 성별 요청 결과가 100%% 정확하다는 뜻이야. |
gender |
string | 가능한 값: male, female, unknown |