Metro

Transport for Los Angeles, US

Data about positions of Metro vehicles in real time and travel their routes

Logistics & shipping#transportation

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Data about positions of Metro vehicles in real time and travel their routes

Endpoints 31

Real-Time data

  • GETGet Trip Detail By Route Code/:agency_id/trip_detail/route_code/:route_code
  • GETGet Trip Detail By Vehicle/:agency_id/trip_detail/vehicle/:vehicle_id
  • GETDummy Websocket Endpoint/ws/:agency_id/:endpoint/:route_codesDummy HTTP endpoint for WebSocket documentation. This endpoint is used for documentation purposes only. It mirrors the WebSocket endpoint that accepts…

Canceled Service Data

  • GETGet Canceled Trip Summary/canceled_service_summary
  • GETGet Canceled Trip/canceled_service/line/:line
  • GETGet Canceled Trip/canceled_service/all

Static data

  • GETPopulate Route Stops/:agency_id/route_stops/:route_code
  • GETRoute Details Endpoint/:agency_id/route_details/:route_code?direction_id=0&day_type=Weekday&time=string
  • GETGet Shape Info/:agency_id/shape_info/:shape_id?time=stringGet shape info by shape_id and time.
  • GETGet Calendar Dates From Db/calendar_dates
  • GETGet Stop Times By Route Code And Agency/:agency_id/stop_times/route_code/:route_code
  • GETGet Stop Times By Trip Id And Agency/:agency_id/stop_times/trip_id/:trip_id
  • GETGet Stops/:agency_id/stops/:stop_id
  • GETGet Bus Trips/:agency_id/trips/:trip_id
  • GETGet Shapes/:agency_id/shapes/:shape_id
  • GETGet Trip Shapes/:agency_id/trip_shapes/:shape_id
  • GETGet Calendar/:agency_id/calendar/:service_id
  • GETGet Routes/:agency_id/routes/:route_id
  • GETGet Route Overview/:agency_id/route_overviewGet route overview data for all routes.
  • GETGet Route Overview By Route Code/:agency_id/route_overview/:route_codeGet route overview data by route code.
  • GETGet Agency/:agency_id/agency/
  • GETGet Destination By Trip Stop/:agency_id/destination/:trip_id/:stop_id
  • GETGet All Routes/routes

Other data

  • GETGet Gopass Schools/get_gopass_schools

User Methods

  • GETGet Time/time
  • GETIndex/
  • GETLogin/login
  • GETVerify Email Route/verify_email/:email_verification_token
  • POSTLogin For Access Token/token
  • POSTCreate User/users/
  • GETRead User/users/:username

API details

Authentication
OAuth 2.0 (password flow)
Operations
31 operations on 31 pathsGET 29POST 2
Main resources
Static data 17User Methods 7Canceled Service Data 3Real-Time data 3Other data 1
Response formats
application/json text/html
Description format
OpenAPI 3.1.0, API version 0.1.0

How to test the Transport for Los Angeles, US in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Transport for Los Angeles, US collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (password flow). Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Get Trip Detail By Route Code” (GET /:agency_id/trip_detail/route_code/:route_code), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Transport for Los Angeles, US?

Data about positions of Metro vehicles in real time and travel their routes It is listed under Logistics & shipping and has 31 endpoints.

Who publishes the Transport for Los Angeles, US?

It is listed from Metro's public API description (an OpenAPI document), not published by Metro on Swastik Codes. Anyone who controls metro.net can claim the profile by adding a DNS TXT record.

How do I authenticate with the Transport for Los Angeles, US?

With OAuth 2.0 (password flow).

How many endpoints does the Transport for Los Angeles, US have?

31 operations on 31 paths (29 GET, 2 POST). The largest groups are Static data, User Methods, Canceled Service Data, Real-Time data.

Is forking the Transport for Los Angeles, US free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.