ViaToVia · Schema

SearchResource

CompanyTransportationMarketplaceTravelBooking

Properties

Name Type Description
search_id string Send it as `search_id` when you create the booking.
distance_km integernull The route distance in metres, despite its name; kept as it is for existing integrations.
distance_in_km number The route distance in kilometres; 0 when it is not known, for example when no road joins the two places.
vehicles array
View JSON Schema on GitHub

JSON Schema

viatovia-search-resource-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/viatovia/json-schema/viatovia-search-resource-schema.json",
  "title": "SearchResource",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/booking-openapi.json#/components/schemas/SearchResource",
  "type": "object",
  "properties": {
    "search_id": {
      "type": "string",
      "description": "Send it as `search_id` when you create the booking."
    },
    "distance_km": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The route distance in metres, despite its name; kept as it is for existing integrations."
    },
    "distance_in_km": {
      "type": "number",
      "description": "The route distance in kilometres; 0 when it is not known, for example when no road joins the two places."
    },
    "vehicles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "vehicle_id": {
            "type": "string",
            "description": "Send it as `vehicle_id` when you create the booking."
          },
          "make": {
            "type": [
              "string",
              "null"
            ]
          },
          "model": {
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "type": [
              "string",
              "null"
            ]
          },
          "image": {
            "type": [
              "string",
              "null"
            ]
          },
          "max_passengers": {
            "type": "integer"
          },
          "suitcases": {
            "type": "integer"
          },
          "small_bags": {
            "type": "integer"
          },
          "price": {
            "type": "number",
            "description": "Total price of the transfer in `currency`."
          },
          "currency": {
            "type": "string"
          },
          "company": {
            "type": [
              "string",
              "null"
            ]
          },
          "extra_services": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Send it in `extra_services` when you create the booking."
                },
                "name": {
                  "type": "string"
                },
                "price": {
                  "description": "Price of one unit: a decimal string, or a number when the price was converted.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    }
                  ]
                },
                "pricing_type": {
                  "type": "string",
                  "enum": [
                    "FREE",
                    "PARTIALLY_FREE",
                    "PAID"
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "price",
                "pricing_type"
              ]
            }
          }
        },
        "required": [
          "vehicle_id",
          "make",
          "model",
          "type",
          "image",
          "max_passengers",
          "suitcases",
          "small_bags",
          "price",
          "currency",
          "company",
          "extra_services"
        ]
      }
    }
  },
  "required": [
    "search_id",
    "distance_km",
    "distance_in_km",
    "vehicles"
  ]
}

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-resource"
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.