Back to API parent page

Method: route-ids-for-agency

Retrieve the list of all route ids for a particular agency.

Sample Response

  <data class="listWithReferences">

Request Parameters

  • id - the id of the agency, encoded directly in the url:
    •[ID GOES HERE].xml?key=TEST


Returns a list of all route ids for routes served by the specified agency. Note that <route/> elements for the referenced routes will NOT be included in the <references/> section, since there are potentially a large number of routes for an agency.