RTS REST API
The RTS REST API allows you to obtain data pertaining to the service provided by RTS to the community. Both static and real-time information are provided through the API.
As the API is based on REST principles, using the API is very easy. Any browser can be used to view data, and most HTTP clients in most programming languages can be used to interact with the API. Responses are returned using JSON-P and CORS. Data can be returned as JSON or XML.
The static data interfaces allow you to pull and build static schedules based off the information entered into the schedule building interface.
The real-time data interfaces allow you pull real-time information about the trips and buses throughout the RTS service area. This allows you to see where our buses are (updated once per minute) along their trips, how far ahead or behind the buses may be, what stop they are arriving at next, etc.
View code examples on how to use the API.
API key codes are provided on an individual basis.
Important: RTS reserves the right to terminate your access if you engage in unacceptable activities or if your application degrades our ability to provide service information to our customers.
- Your API key code will be mailed to you.
RTS does not guarantee of the accuracy of the data provide through the API nor does RTS provide services to guide you through the development of your application. Minimal support is available for the following situations:
- Difficulties with an API key code
- Clarification on a code example or definition
- Answering questions about integration
- Sudden loss of functionality in your application
Send support requests to rbraxton@myRTS.com. Please include your API key code in the email.
RTS makes data available to the community through an application programming interface platform. The Authority provides the platform to give software developers the opportunity to make public transportation a convenient and integrated part of daily life.
RTS does not share sensitive security information. RTS may terminate availability of, support to, or existing access to the platform at any time without prior notice.
To access the API data, you must provide basic personal information. Your information is:
- Used to create a unique API key code
- Used when responding to support requests
- Stored in an internal secured database
Information stored on an RTS system or database may be subject to a request for records under the New York Freedom of Information Law (FOIL); in connection with a discovery request in a lawsuit; or in connection with another type of legal proceeding.
Certain activities, whether legal or illegal, may be harmful to RTS systems, violate RTS rules or subject you to a liability. RTS will immediately terminate API access and support for any user connected to such activities. These activities include, but are not limited to, the following:
- Malicious cycle pinging, calling or spamming the API platform.
- Engaging in automated uses of the API that are abusive or disruptive to the services.
- Impersonating another user or individual or misrepresenting your affiliation with an individual or entity.
- Distributing information that is false or inaccurate with the intent to deceive.
- Using the services in a manner that is inconsistent with applicable law.
- Using the services in a manner that jeopardize public safety and security.
- Infringing copyrights, trademarks, patents or other proprietary rights under applicable law.
RTS is neither liable for inaccuracies in API data nor for any effect that errors or inaccuracies may have on end users. RTS makes no guarantee of data availability or technical support to API users/developers.
Key Code Security
You are responsible for safeguarding your assigned API key code. Do not share it with others for development purposes or disclose it to a third party.