API 문서 통합 API v2.0
OpenAPI
Swagger에서 API 문서 보기Postman
Postman에 우리 API 정의 가져오기전체 이름으로 조회하기 - 이름과 성 분리
페이지에서 이름과 성을 하나의 필드로 사용 중이라면, 이 API를 사용해 각 부분을 추출해
Post
필요한 요청 수: 1
| URL |
https://gender-api.io/v2/gender
|
||||||||||||||||||||||||
| Headers |
Content-Type: application/json
Authorization: Bearer <너의 인증 토큰>
|
||||||||||||||||||||||||
| JSON Payload |
|
예시
전체 이름으로만 조회
{"full_name":"Theresa Miller"}
전체 이름과 국가 코드로 조회
{"full_name":"Theresa Miller","country":"US"}
전체 이름과 브라우저 로케일로 조회
{"full_name":"Thomas Johnson","locale":"en_US"}
전체 이름과 IP 주소를 사용해 지역 정보로 조회
{"full_name":"Markus Stefan NonExistingLastName","ip":"54.201.16.177"}
한 번의 요청으로 여러 이름 조회
[{"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 |
이 제품에는 MaxMind가 제작한 GeoLite2 데이터가 포함되어 있으며, 다음에서 이용할 수 있어: http://www.maxmind.com.