> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bayareatransit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Scheduled Departures at a Stop

> SIRI StopTimetable for scheduled arrivals and departures within a time window. Current request parameter casing follows the public transit page; PDF details are in section 2.9.



## OpenAPI

````yaml /openapi/511-transit-openapi.json get /transit/stoptimetable
openapi: 3.1.0
info:
  title: 511.org Transit API Reference
  version: docs-snapshot-2026-03-25
  description: >-
    Official-style API reference for the public 511.org transit surface.


    Primary source documents for this reference snapshot:


    - [Transit spec PDF](/511/source/511-transit-spec.pdf)

    - [Overview spec PDF](/511/source/511-overview-spec.pdf)

    - [Data agreement PDF](/511/source/511-data-agreement.pdf)

    - [Pathways PDF](/511/source/511-pathways-stations.pdf)


    Implementation notes:


    - The public transit page and the transit PDF disagree on some
    query-parameter casing.

    - This reference uses the public page casing where the public API currently
    depends on it and calls out mismatches in endpoint descriptions.

    - The transit page currently documents a default limit of 60 requests per
    3600 seconds.
servers:
  - url: https://api.511.org
    description: Official 511.org API origin
security:
  - apiKeyQuery: []
tags:
  - name: Static NeTEx
    description: >-
      Static schedule and network structure endpoints backed by NeTEx content in
      a SIRI `ServiceDelivery` envelope.


      Covers transit spec sections 2.1 through 2.7 plus the Shapes endpoint
      described later in section 2.20.
  - name: Realtime SIRI
    description: >-
      Stop- and vehicle-level monitoring endpoints described in the transit PDF
      as SIRI services.


      This family covers StopTimetable, StopMonitoring, and VehicleMonitoring.
      The transit PDF also documents discontinued or future-looking SIRI
      services around announcements and timetable updates, which are not modeled
      as stable operations here.
  - name: GTFS & Bulk Feeds
    description: >-
      Bulk static GTFS and GTFS-Realtime feed download endpoints.


      The transit PDF also documents GTFS+ support files and historic regional
      feed behavior. Those details are supporting operational notes rather than
      request-by-request API fields.
paths:
  /transit/stoptimetable:
    get:
      tags:
        - Realtime SIRI
      summary: Scheduled Departures at a Stop
      description: >-
        SIRI StopTimetable for scheduled arrivals and departures within a time
        window. Current request parameter casing follows the public transit
        page; PDF details are in section 2.9.
      parameters:
        - in: query
          name: format
          required: false
          description: Desired response format. JSON is the default when omitted.
          schema:
            type: string
            enum:
              - json
              - xml
            default: json
        - in: query
          name: operatorref
          required: true
          description: >-
            Current transit page casing for the operator reference. The PDF
            section 2.9 shows 'OperatorRef'.
          schema:
            type: string
        - in: query
          name: monitoringref
          required: true
          description: >-
            Current transit page casing for the stop reference. The PDF section
            2.9 shows 'MonitoringRef'.
          schema:
            type: string
        - in: query
          name: lineref
          required: false
          description: >-
            Current transit page casing for the line reference. The PDF section
            2.9 shows 'LineRef'.
          schema:
            type: string
        - in: query
          name: starttime
          required: false
          description: >-
            Optional departure-window start time in ISO-8601 format. The current
            transit page uses lowercase; the PDF section 2.9 uses StartTime.
          schema:
            type: string
            format: date-time
        - in: query
          name: endtime
          required: false
          description: >-
            Optional departure-window end time in ISO-8601 format. The current
            transit page uses lowercase; the PDF section 2.9 uses EndTime.
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: Scheduled stop visits in SIRI JSON or XML.
          content:
            application/json:
              schema:
                type: object
              example:
                Siri:
                  ServiceDelivery:
                    StopTimetableDelivery:
                      MonitoredStopVisit:
                        - MonitoringRef: '18079'
                          MonitoredVehicleJourney:
                            LineRef: '49'
                            DirectionRef: outbound
                            MonitoredCall:
                              ExpectedArrivalTime: '2026-03-25T12:04:00-07:00'
            application/xml:
              schema:
                type: string
              example: >-
                See the local transit spec PDF appendix example for Appendix
                A.1.9 / B.1.9.
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    Unauthorized:
      description: Invalid API key.
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
    InternalServerError:
      description: 511.org internal processing error.
      content:
        application/json:
          schema:
            type: object
            properties:
              message:
                type: string
  securitySchemes:
    apiKeyQuery:
      type: apiKey
      in: query
      name: api_key
      description: 511.org token query parameter.

````