US flag signifying that this is a United States Federal Government website   Official website of the Department of Homeland Security

Homeland Security

MyTSA API Documentation

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. 

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. 

http://www.tsa.gov/data/apcp.xml

[This file contains all airport and checkpoint data]

http://www.tsa.gov/data/apcp.checksum.xml

[This is the tiny checksum file as the apcp.xml file is updated several times per year.]

Basics 

The TSA Pre✓™ Web Service API is called via:

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx

[valid parameters: ap, st, pc, al.]

Usage examples include:

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?ap=DCA

[returns JSON file for DCA airport/checkpoint/airlines]

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?ap=all

[returns all TSA Pre✓™ airports/checkpoint/airlines]

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA

[returns all airports in Virginia]

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA&pc=yes

[returns all TSA Pre✓™ airports in Virginia]

http://apps.tsa.dhs.gov/mytsawebservice/GetAirportCheckpoints.ashx?st=VA&al=US+Airways

[returns all TSA Pre✓™ airports in Virginia which US Airways participates]

http://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:

http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx

[valid parameters: ap, output]

Usage examples include:

http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx?ap=DCA

[returns XML of last 25 wait times for DCA airport]

http://apps.tsa.dhs.gov/MyTSAWebService/GetWaitTimes.ashx?ap=RDU&output=json

[returns JSON of last 25 wait times for RDU airport]

The TSA Sunrise & Sunset times API is called via:

http://apps.tsa.dhs.gov/MyTSAWebService/GetEventInfo.ashx

[valid parameters: eventtype, eventdate, airportcode, lat, lon, utc, dst, output]

Usage examples include:

http://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]

Last Published Date: April 13, 2016

Was this page helpful?

Back to Top