{
  "openapi": "3.1.0",
  "info": {
    "title": "VIA Router",
    "version": "2.1.0",
    "description": "Find public Apify services from a task. Paid endpoint returns a recommendation and up to three alternatives. Does not execute supplier services."
  },
  "servers": [
    {
      "url": "https://via-router.floot.app"
    }
  ],
  "paths": {
    "/_api/toll": {
      "get": {
        "operationId": "viaPaidRecommendation",
        "summary": "Get a service recommendation for $0.01 USDC",
        "parameters": [
          {
            "name": "request",
            "in": "query",
            "required": false,
            "description": "Plain-language task (2–500 characters). Default: Find a PDF text extractor.",
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 500,
              "default": "Find a PDF text extractor"
            }
          }
        ],
        "x-payment-info": {
          "protocols": [
            "x402"
          ],
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "network": "eip155:8453",
          "asset": "USDC"
        },
        "responses": {
          "200": {
            "description": "Payment settled; recommendation and alternatives delivered"
          },
          "402": {
            "description": "x402 payment challenge; use an x402-compatible client"
          },
          "422": {
            "description": "No matching services; payment not settled"
          }
        }
      }
    }
  }
}