{
  "openapi": "3.0.1",
  "info": {
    "title": "AptRoute - AI Tool Finder, MCP & Agent Workflow Router",
    "description": "Find Apify and MCP capabilities for a task, compare constraints, or use TxSivor for offline EVM preflight risk rules. No tool execution or transaction signing.",
    "version": "2.0",
    "x-build-id": "kFOuBzHRdUcQlg57y"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actoracting~aptroute-ai-tool-router/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actoracting-aptroute-ai-tool-router",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/actoracting~aptroute-ai-tool-router/runs": {
      "post": {
        "operationId": "runs-sync-actoracting-aptroute-ai-tool-router",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/actoracting~aptroute-ai-tool-router/run-sync": {
      "post": {
        "operationId": "run-sync-actoracting-aptroute-ai-tool-router",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "discover",
              "txsivor"
            ],
            "type": "string",
            "description": "Choose Discover to find matching tools, or TxSivor to assess an unsigned EVM transaction using offline rules.",
            "default": "discover"
          },
          "intent": {
            "title": "Task objective (discover mode)",
            "maxLength": 500,
            "type": "string",
            "description": "Describe the task (8 to 500 characters). Do not include passwords, keys, seed phrases or other secrets. Used in Discover mode."
          },
          "max_results": {
            "title": "Maximum tool suggestions",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Maximum number of ranked tool suggestions to return (1 to 12). Used in Discover mode.",
            "default": 5
          },
          "budget_usd": {
            "title": "External tool budget",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Optional upper budget limit in USD for third-party tools (0 to 1000000). Prices may be unknown; results are not purchase quotations."
          },
          "agent_only": {
            "title": "Prefer agent-compatible tools",
            "type": "boolean",
            "description": "Prefer tools suitable for automation and AI agent integrations. Used in Discover mode.",
            "default": false
          },
          "free_only": {
            "title": "Restrict to listed FREE Actors",
            "type": "boolean",
            "description": "Return only catalog entries explicitly marked free, excluding unverified or unknown prices. Used in Discover mode.",
            "default": false
          },
          "chain_id": {
            "title": "EVM chain ID (txsivor mode)",
            "minimum": 1,
            "type": "integer",
            "description": "EVM chain ID of the unsigned transaction being examined, for example 8453 for Base mainnet. Used in TxSivor mode."
          },
          "expected_chain_id": {
            "title": "Expected chain ID",
            "minimum": 1,
            "type": "integer",
            "description": "Optional expected EVM chain ID; a mismatch triggers a blocking flag. Used in TxSivor mode."
          },
          "from": {
            "title": "Sender address",
            "type": "string",
            "description": "Optional public sender address (0x...). Never enter a private key. Used in TxSivor mode."
          },
          "to": {
            "title": "Recipient or contract address",
            "type": "string",
            "description": "Public recipient or contract address (0x...) for the unsigned transaction. Used in TxSivor mode."
          },
          "value_wei": {
            "title": "Native value in wei (integer string)",
            "type": "string",
            "description": "Native coin amount in wei as a base-10 integer string (for example 0). Never use floating-point numbers."
          },
          "max_expected_value_wei": {
            "title": "Maximum native value in wei",
            "type": "string",
            "description": "Optional ceiling on native coin amount in wei, represented as a base-10 integer string."
          },
          "data": {
            "title": "Unsigned EVM calldata",
            "type": "string",
            "description": "Unsigned EVM transaction calldata in 0x-prefixed hexadecimal (0x for no calldata). Never submit signatures or keys."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}