{"openapi":"3.0.3","info":{"title":"APICK 주소 검색·정규화","version":"1.0.0","description":"도로명·지번 주소를 검색해 표준 주소, 필지번호, 지역코드, 좌표로 정리합니다. 주소 입력 화면의 검색 결과를 표준화할 때 씁니다."},"servers":[{"url":"https://apick.app"}],"paths":{"/rest/geo_address_search":{"post":{"summary":"주소 검색·정규화","description":"도로명·지번 주소를 검색해 표준 주소, 필지번호, 지역코드, 좌표로 정리합니다. 주소 입력 화면의 검색 결과를 표준화할 때 씁니다.","security":[{"bearerAuth":[]}],"parameters":[],"responses":{"200":{"description":"서비스별 성공·처리 상태 응답","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"query":{"type":"string","description":"공백을 정리한 검색어입니다."},"category":{"type":"string","description":"적용한 검색 범위입니다."},"page":{"type":"object","properties":{"current":{"type":"integer","description":"현재 페이지입니다."},"size":{"type":"integer","description":"페이지당 결과 수입니다."},"total":{"type":"integer","description":"전체 결과 수입니다. 알 수 없으면 null입니다.","nullable":true}}},"count":{"type":"integer","description":"이번 응답의 결과 수입니다."},"items":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","description":"이번 응답 안에서의 순서(0부터)입니다."},"pnu":{"type":"string","description":"필지번호 19자리입니다. 없으면 빈 문자열입니다."},"roadAddress":{"type":"string","description":"도로명 주소입니다."},"parcelAddress":{"type":"string","description":"지번 주소입니다."},"jibun":{"type":"string","description":"지번 주소의 마지막 번지입니다. 예: 858"},"buildingName":{"type":"string","description":"건물명입니다. 없으면 빈 문자열입니다."},"zipcode":{"type":"string","description":"우편번호입니다."},"category":{"type":"string","description":"이 결과의 주소 유형(road·parcel)입니다."},"point":{"type":"object","properties":{"x":{"type":"number","description":"경도입니다."},"y":{"type":"number","description":"위도입니다."},"crs":{"type":"string"}}},"codes":{"type":"object","properties":{"pnu":{"type":"string","description":"필지번호 19자리입니다."},"bjdongCode":{"type":"string","description":"법정동코드 10자리입니다."},"lawdCd":{"type":"string","description":"시군구 단위 지역코드 5자리입니다."}}}}}}}},"api":{"type":"object","properties":{"cost":{"type":"integer","description":"차감된 포인트입니다. 실패한 응답은 0입니다."},"success":{"type":"boolean"},"ms":{"type":"integer","description":"처리 시간(밀리초)입니다."}}}}}}}},"default":{"description":"HTTP 상태 및 서비스 오류코드 확인","content":{"application/json":{"schema":{"type":"object"}}}}},"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","properties":{"query":{"type":"string","description":"검색어 (예: 테헤란로 152) 문자열로 보내며, 빼거나 빈 값으로 보내면 요청이 거부됩니다. (string)","example":"강남대로 396"},"category":{"type":"string","description":"검색 범위 (기본 auto) 문자열로 보내며, 생략하면 서버 기본값이 적용되거나 해당 조건이 해제됩니다. 가능한 값은 3가지입니다. auto = 서버·모델이 상황에 맞춰 자동으로 정하는 값입니다. 별도 지정이 필요 없습니다. road = 도로명 주소를 기준으로 조회하는 값입니다. parcel = 지번 주소를 기준으로 조회하는 값입니다. (string)","enum":["auto","road","parcel"],"example":"road"},"page":{"type":"string","description":"페이지 번호 (기본 1) 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (integer)"},"size":{"type":"string","description":"페이지당 결과 수 (기본 10, 최대 20) 숫자로 보내며, 허용 범위를 벗어나면 요청이 거부됩니다. (integer)","example":"5"}},"required":["query"]}}}}}}},"x-code-tables":[{"title":"category 허용값","columns":["값","의미"],"rows":[["auto","도로명·지번 결과를 합칩니다. 같은 필지는 한 번만 담습니다 (기본값)."],["road","도로명 주소 결과만 받습니다."],["parcel","지번 주소 결과만 받습니다."]]},{"title":"오류와 복구","columns":["상황","HTTP","data.error","해결"],"rows":[["검색어 누락","400","검색어가 필요합니다.","query를 보냅니다."],["검색어 길이 초과","400","검색어가 너무 깁니다.","표의 최대 길이 안으로 줄입니다."],["category 값 오류","400","category는 auto·road·parcel 중 하나입니다.","auto·road·parcel 중 하나로 보내거나 생략합니다."],["처리 시간 초과","408","처리 시간이 초과됐습니다. 범위를 줄여 다시 시도해 주세요.","목록 건수·반경·분류 수를 줄여 다시 요청합니다."],["일시적 조회 실패","424","공간정보를 일시적으로 가져오지 못했습니다. 잠시 후 다시 시도해 주세요.","잠시 후 같은 요청을 다시 보냅니다."]]}],"x-service-errors":[],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}}}}