The MyTSA Web Service API supports several features, some of which include: TSA Security Checkpoint Wait Times, TSA Pre✓™locations, and Sunrise/Sunset times for all locations. In addition to the APIs there are some important XML files which have been pre-generated that contain schema information that is needed to fully utilize the APIs.
When using a mobile web service, all app database calls (reads & writes) are brokered via the web service. The mobile apps never have direct access to the database tier or access to the TSA Network.
https://www.tsa.gov/data/apcp.xml
[This file contains all airport and checkpoint data]
https://www.tsa.gov/data/apcp.checksum.xml
[This is the tiny checksum file as the apcp.xml file is updated several times per year.]
The TSA Pre✓™ Web Service API is called via:
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx
- [valid parameters: ap, st, pc, al.]
Usage examples include:
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?ap=DCA
- [returns JSON file for DCA airport/checkpoint/airlines]
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?ap=all
- [returns all TSA Pre✓™ airports/checkpoint/airlines]
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA
- [returns all airports in Virginia]
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA&pc=yes
- [returns all TSA Pre✓™ airports in Virginia]
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA&al=US+Airways
- [returns all TSA Pre✓™ airports in Virginia which US Airways participates]
https://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?ap=all&al=US+Airways
- [returns all TSA Pre✓™ airports in U.S. which US Airways participates]
The TSA Security Checkpoint Wait Times API is called via:
https://apps.tsa.dhs.gov/MyTSAWebService/GetConfirmedWaitTimes.ashx
- [valid parameters: ap, output]
Usage examples include:
https://apps.tsa.dhs.gov/MyTSAWebService/GetConfirmedWaitTimes.ashx?ap=DCA
- [returns XML of last 25 wait times for DCA airport]
https://apps.tsa.dhs.gov/MyTSAWebService/GetConfirmedWaitTimes.ashx?ap=RDU&output=json
- [returns JSON of last 25 wait times for RDU airport]
The TSA Sunrise & Sunset times API is called via:
https://apps.tsa.dhs.gov/MyTSAWebService/GetEventInfo.ashx
- [valid parameters: eventtype, eventdate, airportcode, lat, lon, utc, dst, output]
Usage examples include:
https://apps.tsa.dhs.gov/MyTSAWebService/GetEventInfo.ashx?eventtype=sunrise_sunset&eventdate=5/15/2013&airportcode=DCA
- [returns XML file of sunrise/sunset for DCA airport on specified date]
http://apps.tsa.dhs.gov/MyTSAWebService/GetEventInfo.ashx?eventtype=sunset&airportcode=DCA&output=json
- [returns JSON file of today’s sunset time for DCA airport]