🦀 ClawHub
KTO TourAPI CLI
by @chloepark85
Korean tourism content (관광지·문화시설·축제공연·여행코스·레포츠·숙박·쇼핑·음식점) via 한국관광공사 TourAPI 4.0 (apis.data.go.kr/B551011/KorService2). Eight subcommands wrap areaCode2, cat...
💡 Examples
Browse 관광지 in 강릉
bash scripts/area.sh --area-code 32 --sigungu-code 1 --content-type-id 12 --num 10
Find 음식점 within 500 m of 경복궁 (lng 126.9770, lat 37.5797)
bash scripts/nearby.sh --lng 126.9770 --lat 37.5797 --radius 500 --content-type-id 39
Festival list for May 2026 in Jeju
bash scripts/festival.sh --start 20260501 --end 20260531 --area-code 39
Keyword search for "한옥" stays
bash scripts/search.sh --keyword 한옥 --content-type-id 32 --num 30
Full record (with images) for 경복궁 (contentId 264432)
bash scripts/detail.sh --content-id 264432 --content-type-id 14 --include-images
Ten-day Korea festival calendar for content automation
START=$(date -u +%Y%m%d)
END=$(date -u -v+10d +%Y%m%d 2>/dev/null || date -u -d "+10 days" +%Y%m%d)
bash scripts/festival.sh --start "$START" --end "$END" --num 100 \
| jq -r '[.title, .eventstartdate, .eventenddate, .addr1] | @tsv'
⚙️ Configuration
1. Register at
export TOURAPI_SERVICE_KEY='your_decoded_key_here'
4. Optional overrides:
export TOURAPI_BASE='https://apis.data.go.kr/B551011/KorService2'
export TOURAPI_MOBILE_OS='ETC' # ETC|AND|IOS|WIN|WEB
export TOURAPI_MOBILE_APP='your-app-name' # any short identifier
5. Dependencies: bash, curl, jq (default on macOS / standard Linux).TERMINAL
clawhub install kto-tourapi-cli