ViaToVia · Schema

SearchRequest

CompanyTransportationMarketplaceTravelBooking

Properties

Name Type Description
pickup_location object
dropoff_location object
pickup_datetime string Local time at the airport, formatted `YYYY-MM-DD HH:mm`. An ISO 8601 timestamp is rejected with code 1317.
currency stringnull
travelers object
View JSON Schema on GitHub

JSON Schema

viatovia-search-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viatovia/json-schema/viatovia-search-request-schema.json",
  "title": "SearchRequest",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/booking-openapi.json#/components/schemas/SearchRequest",
  "type": "object",
  "properties": {
    "pickup_location": {
      "oneOf": [
        {
          "$ref": "#/$defs/AirportLocation"
        },
        {
          "$ref": "#/$defs/PointLocation"
        }
      ]
    },
    "dropoff_location": {
      "oneOf": [
        {
          "$ref": "#/$defs/AirportLocation"
        },
        {
          "$ref": "#/$defs/PointLocation"
        }
      ]
    },
    "pickup_datetime": {
      "type": "string",
      "description": "Local time at the airport, formatted `YYYY-MM-DD HH:mm`. An ISO 8601 timestamp is rejected with code 1317.",
      "pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}$"
    },
    "currency": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "USD",
        "EUR",
        "GBP",
        null
      ]
    },
    "travelers": {
      "type": "object",
      "properties": {
        "adult": {
          "type": "integer",
          "minimum": 1
        },
        "children": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        },
        "infant": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 0
        }
      },
      "required": [
        "adult"
      ]
    }
  },
  "required": [
    "pickup_location",
    "dropoff_location",
    "pickup_datetime",
    "travelers"
  ],
  "$defs": {
    "AirportLocation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "AIRPORT"
          ]
        },
        "iata_code": {
          "type": "string",
          "description": "IATA airport code (e.g. AMS)"
        }
      },
      "required": [
        "type",
        "iata_code"
      ],
      "title": "AirportLocation"
    },
    "PointLocation": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "POINT"
          ]
        },
        "lat": {
          "type": "number",
          "description": "Latitude"
        },
        "lng": {
          "type": "number",
          "description": "Longitude"
        },
        "name": {
          "type": "string",
          "description": "Location name"
        }
      },
      "required": [
        "type",
        "lat",
        "lng",
        "name"
      ],
      "title": "PointLocation"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/viatovia-search-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.