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

# /omio/journeys/search

> List departures for an Omio route (mode, origin and destination city). Provide a date (YYYY-MM-DD) to search that specific travel day, or omit it to list the nearest travel day. Returns ranked journeys with departure and arrival stations (name, country, coordinates), scheduled and estimated departure/arrival times, duration, price, operating carrier, stop count and the individual legs (connections) with transport ids and live-update status. Origin and destination are city slugs as used in Omio route URLs (resolve them via the positions search). For price trends across future dates use the prices endpoint.

**Price:** 20 credits

**⚠️ Common errors:** 412: No journeys found for the given route



## OpenAPI

````yaml /openapi/travel-hospitality.json post /api/omio/journeys/search
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/omio/journeys/search:
    post:
      tags:
        - /omio
      summary: /omio/journeys/search
      description: >-
        List departures for an Omio route (mode, origin and destination city).
        Provide a date (YYYY-MM-DD) to search that specific travel day, or omit
        it to list the nearest travel day. Returns ranked journeys with
        departure and arrival stations (name, country, coordinates), scheduled
        and estimated departure/arrival times, duration, price, operating
        carrier, stop count and the individual legs (connections) with transport
        ids and live-update status. Origin and destination are city slugs as
        used in Omio route URLs (resolve them via the positions search). For
        price trends across future dates use the prices endpoint.


        **Price:** 20 credits


        **⚠️ Common errors:** 412: No journeys found for the given route
      operationId: __api_omio_journeys_search_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OmioJourneysSearchPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OmioJourney'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    OmioJourneysSearchPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        mode:
          $ref: '#/components/schemas/OmioMode'
        origin:
          type: string
          minLength: 1
        destination:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        date:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - mode
        - origin
        - destination
        - count
    OmioJourney:
      properties:
        '@type':
          type: string
          default: OmioJourney
        id:
          anyOf:
            - type: string
            - type: 'null'
        mode:
          anyOf:
            - type: string
            - type: 'null'
        departure:
          anyOf:
            - $ref: '#/components/schemas/OmioJourneyPlace'
            - type: 'null'
        arrival:
          anyOf:
            - $ref: '#/components/schemas/OmioJourneyPlace'
            - type: 'null'
        departure_at:
          anyOf:
            - type: string
            - type: 'null'
        arrival_at:
          anyOf:
            - type: string
            - type: 'null'
        estimated_departure_at:
          anyOf:
            - type: string
            - type: 'null'
        estimated_arrival_at:
          anyOf:
            - type: string
            - type: 'null'
        duration_minutes:
          anyOf:
            - type: integer
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        currency:
          anyOf:
            - type: string
            - type: 'null'
        carrier_id:
          anyOf:
            - type: string
            - type: 'null'
        carrier_name:
          anyOf:
            - type: string
            - type: 'null'
        carrier_code:
          anyOf:
            - type: string
            - type: 'null'
        stop_count:
          anyOf:
            - type: integer
            - type: 'null'
        provider_id:
          anyOf:
            - type: string
            - type: 'null'
        is_bookable:
          anyOf:
            - type: boolean
            - type: 'null'
        booking_url:
          anyOf:
            - type: string
            - type: 'null'
        connections:
          items:
            $ref: '#/components/schemas/OmioJourneyConnection'
          type: array
          default: []
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    OmioMode:
      type: string
      enum:
        - train
        - bus
        - flight
        - ferry
    OmioJourneyPlace:
      properties:
        '@type':
          type: string
          default: OmioJourneyPlace
        id:
          anyOf:
            - type: string
            - type: 'null'
        name:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
        country_code:
          anyOf:
            - type: string
            - type: 'null'
        latitude:
          anyOf:
            - type: number
            - type: 'null'
        longitude:
          anyOf:
            - type: number
            - type: 'null'
      type: object
    OmioJourneyConnection:
      properties:
        '@type':
          type: string
          default: OmioJourneyConnection
        carrier_name:
          anyOf:
            - type: string
            - type: 'null'
        carrier_code:
          anyOf:
            - type: string
            - type: 'null'
        transport_id:
          anyOf:
            - type: string
            - type: 'null'
        departure_id:
          anyOf:
            - type: string
            - type: 'null'
        arrival_id:
          anyOf:
            - type: string
            - type: 'null'
        mode:
          anyOf:
            - type: string
            - type: 'null'
        scheduled_departure_at:
          anyOf:
            - type: string
            - type: 'null'
        estimated_departure_at:
          anyOf:
            - type: string
            - type: 'null'
        scheduled_arrival_at:
          anyOf:
            - type: string
            - type: 'null'
        estimated_arrival_at:
          anyOf:
            - type: string
            - type: 'null'
        has_live_data:
          anyOf:
            - type: boolean
            - type: 'null'
        is_cancelled:
          anyOf:
            - type: boolean
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````