API 문서 통합 API v2.0
OpenAPI
Swagger에서 API 문서 보기Postman
Postman에 우리 API 정의 가져오기이메일 주소로 조회하기
이메일 주소가 포함된 이메일 주소로도 성별을 조회할 수 있어
Post
필요한 요청 수: 1
| URL |
https://gender-api.io/v2/gender
|
||||||||||||||||||||||||
| Headers |
Content-Type: application/json
Authorization: Bearer <너의 인증 토큰>
|
||||||||||||||||||||||||
| JSON Payload |
|
예시
이메일 주소만으로 조회하기
{"email":"theresa.miller14@gmail.com"}
이메일 주소와 국가 코드를 이용해 조회하기
{"email":"thomas.clarks@hotmail.com","country":"US"}
이메일 주소와 브라우저 로케일로 조회하기
{"email":"Thomas.j32@live.com","locale":"en_US"}
이메일 주소와 IP 주소를 사용해 위치 기반으로 조회하기
{"email":"thomasfromnewyork@gmail.com","ip":"54.201.16.177"}
한 번의 요청으로 여러 이름 조회
[{"email":"thomas.clarks@hotmail.com","country":"US"},{"email":"theresa.miller14@gmail.com"}]
응답
{
"input": {
"email": "theresa.miller14@gmail.com"
},
"details": {
"credits_used": 1,
"duration": "12ms",
"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.email_sanitized | int | 정규화기를 적용한 후의 이름 |
| details.duration | string | 서버가 요청을 처리하는 데 걸린 시간 |
| result_found | bool | 주어진 이름에 대해 성별 정보를 조회하는 데 성공했다면 true |
| string | 성별 판별에 사용한 이메일 주소 | |
| probability | float | 이 값(0과 1 사이)은 우리 데이터베이스 신뢰도를 나타내. 값이 1이면, 네 성별 요청 결과가 100% 정확하다는 뜻이야. |
| gender | string | 가능한 값: male, female, unknown |
이 제품에는 MaxMind가 제작한 GeoLite2 데이터가 포함되어 있으며, 다음에서 이용할 수 있어: http://www.maxmind.com.