korea-tourapi
4
总安装量
3
周安装量
#53337
全站排名
安装命令
npx skills add https://github.com/2sem/korea-tourapi-skill --skill korea-tourapi
Agent 安装分布
opencode
3
mcpjam
2
claude-code
2
junie
2
windsurf
2
zencoder
2
Skill 文档
Korea TourAPI Skill
Use this skill when implementing or debugging integrations with Korea Tourism Organization TourAPI 4.0 KorService2.
Source of Truth
- API family:
KorService2 - Base URL:
https://apis.data.go.kr/B551011/KorService2 - Manual version: TourAPI 4.0 Ver 4.3 (2025-05-12)
- Core endpoints covered:
areaCode2,categoryCode2,areaBasedList2,locationBasedList2searchKeyword2,searchFestival2,searchStay2detailCommon2,detailIntro2,detailInfo2,detailImage2areaBasedSyncList2,detailPetTour2,ldongCode2,lclsSystmCode2
When to Use
- Building new list/detail/taxonomy API calls.
- Migrating old TourAPI params to latest Ver 4.3 behavior.
- Troubleshooting request validation errors and no-data cases.
- Designing model mapping for
contentid,contenttypeid, coordinates, image fields. - Adding sync jobs from
areaBasedSyncList2.
Required Request Baseline
For every request, enforce these baseline params first:
serviceKeyMobileOS(IOS,AND,WEB,ETC)MobileApp(service name)_type=json(unless XML is explicitly required)
Then add endpoint-specific required params.
Operating Procedure
- Identify user intent: list, detail, codes, sync, pet travel.
- Select endpoint by intent (see
references/quick-reference.md). - Build request with required params and only compatible optional filters.
- Validate dependency params before call:
sigunguCoderequiresareaCodecat2requirescat1cat3requirescat1andcat2lDongSignguCdrequireslDongRegnCdlclsSystm2requireslclsSystm1lclsSystm3requireslclsSystm1andlclsSystm2
- For location queries, clamp
radiusto<= 20000. - Parse
response.headerfirst:- success expected:
resultCode == "0000" - else map to actionable error
- success expected:
- Parse
response.body.items.itemrobustly (single object or array). - Return normalized fields and pagination (
pageNo,numOfRows,totalCount). - If detail flow is needed, chain:
detailCommon2->detailIntro2->detailInfo2->detailImage2
- Respect licensing metadata (
cpyrhtDivCd) in downstream usage.
Content Type IDs (Kor)
- 12: Tour spot
- 14: Culture facility
- 15: Festival/performance/event
- 25: Travel course
- 28: Leports
- 32: Stay
- 38: Shopping
- 39: Food
Response-Safe Parsing Rules
- Parse numeric fields from strings (
contentid,mapx,mapy,dist) safely. - Treat missing optional values as null/empty, not errors.
- Keep raw source payload for debugging.
- Keep a strict distinction between:
- transport errors (HTTP/network)
- platform errors (
OpenAPI_ServiceResponse) - provider errors (
resultCodein response header)
Known 4.3 Notes
- New filters/fields include legal-dong and classification-system values.
- Some older flags were removed from older endpoint revisions.
detailCommon2is simplified compared with prior revisions.
Output Contract for Agent
When this skill is used, always output:
- Selected endpoint and reason.
- Final request URL (redact or mask
serviceKey). - Required/optional params split.
- Validation checks run.
- Pagination handling plan.
- Error handling mapping.
- Model mapping notes for app code.
Local References
references/quick-reference.mdreferences/wherewego-mapping.mddocs/FEATURE_PLAN.md