{
  "openapi": "3.0.1",
  "info": {
    "title": "Controller.com Scraper — Aircraft Listings & Price Monitor",
    "description": "Scrape Controller.com aircraft listings for brokers and buyers: asking prices, total time, registration, serials, dealer phones, and images. Monitor new inventory and price changes. Listings or details mode.",
    "version": "0.1",
    "x-build-id": "V0fOzU3qFsWJuZP8e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~controller-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-controller-com-scraper",
        "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/crawloop~controller-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-controller-com-scraper",
        "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/crawloop~controller-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-controller-com-scraper",
        "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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Search results, category SEO pages, dealer inventory URLs (AccountCRMID), or direct listing detail pages.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Search keywords",
            "type": "string",
            "description": "Keyword search across make, model, registration, and serial (e.g. Cirrus SR22, N518KB)."
          },
          "listingType": {
            "title": "Listing type",
            "enum": [
              "For Retail",
              "For Lease",
              "For Fractional Ownership"
            ],
            "type": "string",
            "description": "Used when building a search URL from filters (or when startUrls is empty).",
            "default": "For Retail"
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "description": "One or more manufacturers, comma-separated (e.g. CESSNA, CIRRUS, BEECHCRAFT, GULFSTREAM)."
          },
          "category": {
            "title": "Aircraft category",
            "enum": [
              "",
              "3",
              "8",
              "6",
              "9",
              "7",
              "5",
              "433",
              "2",
              "47",
              "70",
              "1",
              "71",
              "10004",
              "10072",
              "45006"
            ],
            "type": "string",
            "description": "Controller.com category id or name. Leave empty to search all aircraft types."
          },
          "accountCrmId": {
            "title": "Dealer AccountCRMID",
            "type": "string",
            "description": "Watch a single dealer inventory by AccountCRMID (from listing cards)."
          },
          "state": {
            "title": "US state / Canadian province",
            "type": "string",
            "description": "Location filter when building a search URL (e.g. Florida, Texas, Ontario)."
          },
          "country": {
            "title": "Country",
            "type": "string",
            "description": "Country filter when building a search URL (e.g. USA, Canada)."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "New",
              "Used"
            ],
            "type": "string",
            "description": "New or Used (server-side filter)."
          },
          "registrationNumber": {
            "title": "Registration number",
            "type": "string",
            "description": "Exact registration / N-number lookup (e.g. N518KB)."
          },
          "serialNumber": {
            "title": "Serial number",
            "type": "string",
            "description": "Exact airframe serial lookup."
          },
          "wifiEquipped": {
            "title": "WiFi equipped only",
            "type": "boolean",
            "description": "Restrict to listings Controller.com marks as WiFi equipped.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "",
              "recentlyAdded",
              "recentlyUpdated",
              "priceLowHigh",
              "priceHighLow",
              "yearNewOld",
              "yearOldNew",
              "totalTimeLowHigh",
              "totalTimeHighLow"
            ],
            "type": "string",
            "description": "Result order for built search URLs."
          },
          "priceMin": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings at or above this asking price. Call-for-price rows are kept unless pricedOnly is on."
          },
          "priceMax": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep listings at or below this asking price."
          },
          "yearMin": {
            "title": "Min year",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep aircraft manufactured in or after this year."
          },
          "yearMax": {
            "title": "Max year",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep aircraft manufactured in or before this year."
          },
          "totalTimeMin": {
            "title": "Min total time (hours)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep aircraft with airframe total time at or above this many hours."
          },
          "totalTimeMax": {
            "title": "Max total time (hours)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep aircraft with airframe total time at or below this many hours."
          },
          "seatsMin": {
            "title": "Min seats",
            "minimum": 1,
            "type": "integer",
            "description": "Keep aircraft with at least this many seats. Exact min=max is applied server-side."
          },
          "seatsMax": {
            "title": "Max seats",
            "minimum": 1,
            "type": "integer",
            "description": "Keep aircraft with at most this many seats."
          },
          "yearPaintedMin": {
            "title": "Min year painted",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep listings whose published year-painted is at or after this year."
          },
          "yearPaintedMax": {
            "title": "Max year painted",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep listings whose published year-painted is at or before this year."
          },
          "yearInteriorMin": {
            "title": "Min year interior",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep listings whose published interior-refresh year is at or after this year."
          },
          "yearInteriorMax": {
            "title": "Max year interior",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep listings whose published interior-refresh year is at or before this year."
          },
          "baseUrl": {
            "title": "Base URL",
            "enum": [
              "https://www.controller.com",
              "https://www.controlleremea.co.uk"
            ],
            "type": "string",
            "description": "Site origin for built search URLs. Default US Controller.com; EMEA front is the same catalog.",
            "default": "https://www.controller.com"
          },
          "runMode": {
            "title": "Run Mode",
            "enum": [
              "listings",
              "details"
            ],
            "type": "string",
            "description": "listings = fast card fields (price, total time, registration, dealer phone, images). details = also visit each PDP for canonical URL, breadcrumbs, and video.",
            "default": "listings"
          },
          "pricedOnly": {
            "title": "Only listings with price",
            "type": "boolean",
            "description": "Skip Call-for-price / zero-price rows.",
            "default": false
          },
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum dataset rows to emit (in monitor seed runs: max listings to fingerprint).",
            "default": 100
          },
          "maxPagesPerUrl": {
            "title": "Max Pages per Start URL",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum pagination pages per search / dealer inventory URL (28 listings per page).",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Residential Proxies recommended — Controller.com uses Cloudflare."
          },
          "concurrencyLimit": {
            "title": "Max Concurrency Limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel PDP fetches in details mode.",
            "default": 5
          },
          "monitorMode": {
            "title": "Monitoring Mode",
            "type": "boolean",
            "description": "Delta tracking for category, search, or dealer inventory URLs. First run seeds a named Key-Value store (no dataset rows / alerts). Later runs output only new listings and price changes. Pair with an Apify Schedule.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor Store Name",
            "type": "string",
            "description": "Named Key-Value store for fingerprints across scheduled runs. Use a distinct name per watch target (dealer or category).",
            "default": "controller-com-monitor-state"
          },
          "telegramToken": {
            "title": "Telegram Bot Token",
            "type": "string",
            "description": "Bot token for real-time alerts on new listings and price changes (monitorMode only)."
          },
          "telegramChatId": {
            "title": "Telegram Chat ID",
            "type": "string",
            "description": "Telegram user or group chat ID that receives monitor alerts."
          },
          "resetMonitorState": {
            "title": "Reset Monitor State",
            "type": "boolean",
            "description": "Clear stored listing fingerprints before this run (forces a fresh seed run).",
            "default": false
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}