OPENAPI Detail

XML JSON

Train_Schedule

This API allows you to query train schedules for Seoul Subway. It provides train operation time information by station, including upbound/downbound and inner/outer loop distinctions, and includes items such as temporary schedule status, train numbers, departure/arrival times, and transfer availability. This service can be utilized for checking schedules based on departure and arrival stations and linking with transportation information services, and provides frequently updated information through REST API. The data is updated as needed.

※ Application for use is only available on the PC version.

Train_Schedule Information such as classification and provision of file data information system
Classified Transportation and logistics - railroad Provided By
Department Department No
API Type REST Data Format JSON+XML
Usage 63 Keyword Seoul subway,timetable,Subway up and down,subway express,Subway transfer
Registered 2025-06-10 Edited 2025-07-15
Deliberation Type dev : allow / run : allow
Payment free
Scope of License
References

Function

  • Application for Use Development level : allowed / Operation level : allowed
  • Available traffic 100000 / Operational account can increase traffic by applying for use case registration
  • Requested Link http://apis.data.go.kr/B553766/schedule/getTrainSch
  • Service URL http://apis.data.go.kr/B553766/schedule

Request Parameter

Request Parameter

Category(Korean) Category(English) Size Division Sample Data Description
serviceKey Essential - Authentication key received from the public data portal
pageNo Optional 1 Page number (default: 1)
numOfRows Optional 10 Number of page results (default: 10)
dataType Optional JSON Result type (JSON/XML, default:XML)
selectFields Optional Search by selecting the column names you want to receive in response (multiple selections with delimiter ',') - Example: etrnYn,lnkgTrainno
tmprTmtblYn Essential N Temporary schedule (Y/N)
upbdnbSe Essential 상행 Upbound/downbound/internal/external)
wkndSe Essential 평일 Weekend classification (weekday/weekend/holiday/always)
lineNm Essential 1호선 Subway Line Search Terms (Search Criteria: Included)
stnNm Optional 서울역 Subway station name search term (search criteria: included)
stnCd Optional 0150 Subway station code search term (search criteria: match)
brlnNm Optional Subway branch name (Search criteria: included)
dptreStnNm Optional Subway departure station name (Search criteria: included)
dptreStnCd Optional Subway departure station code (search criteria: match)
arvlStnNm Optional Subway arrival station name (Search criteria: included)
arvlStnCd Optional Subway arrival station code (search criteria: match)
searchDt Optional Search term to return only schedules with valid start date and time (date format: YYYY-MM-DDThh:mm:ss)
trainno Optional Subway train number (Search criteria: Match)

Response Element

Response Element

Category(Korean) Category(English) Size Division Sample Data Description
header Essential header
body Essential body

Sample Code

Please check the sample code on your PC.