Metro Transit NexTrip API
The NexTrip API from Metro Transit — 8 operation(s) for nextrip.
The NexTrip API from Metro Transit — 8 operation(s) for nextrip.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/metro-transit-nextrip-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Service Alerts Nex Trip API
description: API for retrieving Transit Service Alerts
version: '1'
servers:
- url: https://svc.metrotransit.org/nextripv2
description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: NexTrip
paths:
/nextrip/{route_id}/{direction_id}/{place_code}:
get:
tags:
- NexTrip
parameters:
- name: route_id
in: path
required: true
schema:
type: string
- name: direction_id
in: path
required: true
schema:
type: integer
format: int32
- name: place_code
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/NexTripResult'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/{stop_id}:
get:
tags:
- NexTrip
parameters:
- name: stop_id
in: path
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/NexTripResult'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/agencies:
get:
tags:
- NexTrip
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Agency'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/directions/{route_id}:
get:
tags:
- NexTrip
parameters:
- name: route_id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Direction'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/routes:
get:
tags:
- NexTrip
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Route'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/stopid/{street}:
get:
tags:
- NexTrip
parameters:
- name: street
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
additionalProperties:
type: string
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/stops/{route_id}/{direction_id}:
get:
tags:
- NexTrip
parameters:
- name: route_id
in: path
required: true
schema:
type: string
- name: direction_id
in: path
required: true
schema:
type: integer
format: int32
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Place'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
/nextrip/vehicles/{route_id}:
get:
tags:
- NexTrip
parameters:
- name: route_id
in: path
required: true
schema:
type: string
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Vehicle'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
'500':
description: Internal Server Error
components:
schemas:
NexTripResult:
type: object
properties:
stops:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Stop'
alerts:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/AlertMessage'
departures:
type:
- array
- 'null'
items:
$ref: '#/components/schemas/Departure'
additionalProperties: false
Route:
type: object
properties:
route_id:
type:
- string
- 'null'
agency_id:
type: integer
format: int32
route_label:
type:
- string
- 'null'
additionalProperties: false
Direction:
type: object
properties:
direction_id:
type: integer
format: int32
direction_name:
type:
- string
- 'null'
additionalProperties: false
Place:
type: object
properties:
place_code:
type:
- string
- 'null'
description:
type:
- string
- 'null'
additionalProperties: false
Vehicle:
type: object
properties:
trip_id:
type:
- string
- 'null'
direction_id:
type: integer
format: int32
direction:
type:
- string
- 'null'
location_time:
type: integer
format: int64
route_id:
type:
- string
- 'null'
terminal:
type:
- string
- 'null'
latitude:
type: number
format: float
longitude:
type: number
format: float
bearing:
type: number
format: float
odometer:
type: number
format: double
speed:
type: number
format: float
additionalProperties: false
AlertMessage:
type: object
properties:
stop_closed:
type: boolean
alert_text:
type:
- string
- 'null'
additionalProperties: false
Departure:
type: object
properties:
actual:
type: boolean
trip_id:
type:
- string
- 'null'
stop_id:
type: integer
format: int32
departure_text:
type:
- string
- 'null'
departure_time:
type: integer
format: int64
description:
type:
- string
- 'null'
gate:
type:
- string
- 'null'
route_id:
type:
- string
- 'null'
route_short_name:
type:
- string
- 'null'
direction_id:
type: integer
format: int32
direction_text:
type:
- string
- 'null'
terminal:
type:
- string
- 'null'
agency_id:
type: integer
format: int32
schedule_relationship:
type:
- string
- 'null'
additionalProperties: false
ProblemDetails:
type: object
properties:
type:
type:
- string
- 'null'
title:
type:
- string
- 'null'
status:
type:
- integer
- 'null'
format: int32
detail:
type:
- string
- 'null'
instance:
type:
- string
- 'null'
additionalProperties: {}
Agency:
type: object
properties:
agency_id:
type: integer
format: int32
agency_name:
type:
- string
- 'null'
additionalProperties: false
Stop:
type: object
properties:
stop_id:
type: integer
format: int32
latitude:
type: number
format: double
longitude:
type: number
format: double
description:
type:
- string
- 'null'
additionalProperties: false