공통 정보 조회 API (상세정보)

기능:타입별공통 정보기본정보,약도이미지,대표이미지,분류정보,지역정보,주소정보,좌표정보,개요정보,길안내정보,이미지정보,연계관광정보목록을 조회하는 기능

Method: GET

EndPoint :https://apis.data.go.kr/B551011/KorService1/detailCommon1

ex)https://apis.data.go.kr/B551011/KorService1/detailCommon1?MobileOS=ETC&MobileApp=LoadPick&_type=json&contentId=128778&defaultYN=Y&firstImageYN=Y&areacodeYN=Y&catcodeYN=Y&addrinfoYN=Y&mapinfoYN=Y&overviewYN=Y&serviceKey=2Zxdt4ofweKcrY57P5vo2Un7lB7fCVETE%2FSNLGawxnhw%2Bbyn3NBD%2Fo5EIhXO4FloSdlus7QIWdBPQ2dQ8AT9UA%3D%3D

필수 파라미터 :serviceKey, MobileOS, MobileApp, contentId

선택 파라미터 : contentTypeId, defaultYN, firstImageYN, areacodeYN, catcodeYN, addrinfoYN, mapinfoYN, overviewYN, numOfRows, pageNo

응답 타입 : json

선택 파라미터가 모두 N일 경우

{
  "response": {
    "header": {
      "resultCode": "0000",
      "resultMsg": "OK"
    },
    "body": {
      "items": {
        "item": [
          {
            "contentid": "128778",
            "contenttypeid": "12"
          }
        ]
      },
      "numOfRows": 1,
      "pageNo": 1,
      "totalCount": 1
    }
  }
}

defaultYN만 Y 일 경우

{
  "response": {
    "header": {
      "resultCode": "0000",
      "resultMsg": "OK"
    },
    "body": {
      "items": {
        "item": [
          {
            "contentid": "128778",
            "contenttypeid": "12",
            **"title": "강원 경찰충혼탑",
            "createdtime": "20060209090000",
            "modifiedtime": "20250319152657",
            "tel": "",
            "telname": "",
            "homepage": "<a href=\\"<https://www.ex-police.or.kr/data/heros.php?ptype=view&idx=22890&page=5&code=heros\\>" target=\\"_blank\\" title=\\"새창: 대한민국재향경우회 홈페이지로 이동\\"><http://www.ex-police.or.kr></a>",
            "booktour": "0"**
          }
        ]
      },
      "numOfRows": 1,
      "pageNo": 1,
      "totalCount": 1
    }
  }
}

firstImageYN만 Y일 경우

{
  "response": {
    "header": {
      "resultCode": "0000",
      "resultMsg": "OK"
    },
    "body": {
      "items": {
        "item": [
          {
            "contentid": "128778",
            "contenttypeid": "12",
            "firstimage": "<http://tong.visitkorea.or.kr/cms/resource/36/3381636_image2_1.JPG>",
            "firstimage2": "<http://tong.visitkorea.or.kr/cms/resource/36/3381636_image3_1.JPG>",
            "cpyrhtDivCd": "Type3"
          }
        ]
      },
      "numOfRows": 1,
      "pageNo": 1,
      "totalCount": 1
    }
  }
}

areacodeYN만 Y일 경우

{
  "response": {
    "header": {
      "resultCode": "0000",
      "resultMsg": "OK"
    },
    "body": {
      "items": {
        "item": [
          {
            "contentid": "128778",
            "contenttypeid": "12",
            "areacode": "32",
            "sigungucode": "13"
          }
        ]
      },
      "numOfRows": 1,
      "pageNo": 1,
      "totalCount": 1
    }
  }
}