{
  "openapi": "3.0.1",
  "info": {
    "title": "ApolloDuck Scraper & Market Intelligence",
    "description": "Scrape ApolloDuck listings with structured filters or natural-language AI search. Extract boats, barges, narrowboats, prices, specs, sellers, and photos, then generate buyer, seller, or broker-style market intelligence reports.",
    "version": "0.0",
    "x-build-id": "YFQ5CR9QFandsPfCe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/marielise.dev~apolloduck-scraper-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-marielise.dev-apolloduck-scraper-intelligence",
        "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/marielise.dev~apolloduck-scraper-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-marielise.dev-apolloduck-scraper-intelligence",
        "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/marielise.dev~apolloduck-scraper-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-marielise.dev-apolloduck-scraper-intelligence",
        "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": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Describe what you're looking for in plain language. Examples: \"Family catamaran under €200k in the Mediterranean\", \"What's a 2018 Bavaria 46 worth?\", \"Beneteau sailboat market trends in France\""
          },
          "mode": {
            "title": "Intelligence Mode",
            "enum": [
              "buyer",
              "broker",
              "seller"
            ],
            "type": "string",
            "description": "How should the AI analyse the results?",
            "default": "buyer"
          },
          "enableAI": {
            "title": "Enable AI Intelligence",
            "type": "boolean",
            "description": "Enable AI-powered natural language search and market intelligence reports. When ON without your own API key, uses the actor's built-in AI (additional charge per report). When OFF, the actor only scrapes — no AI features.",
            "default": true
          },
          "aiApiKey": {
            "title": "Your AI API Key (Optional)",
            "type": "string",
            "description": "Bring your own OpenAI-compatible API key. When provided, AI features use your key at no extra charge. Leave empty to use the actor's built-in AI."
          },
          "aiBaseUrl": {
            "title": "AI Base URL",
            "type": "string",
            "description": "API base URL for your provider. Examples: https://api.openai.com/v1 (OpenAI), https://api.groq.com/openai/v1 (Groq), https://api.together.xyz/v1 (Together)",
            "default": "https://api.openai.com/v1"
          },
          "aiModel": {
            "title": "AI Model",
            "type": "string",
            "description": "Model to use. Examples: gpt-4o (OpenAI), llama-3.1-70b-versatile (Groq), mistral-large-latest (Mistral)",
            "default": "gpt-4o"
          },
          "boatType": {
            "title": "Boat Type",
            "type": "array",
            "description": "Types of boats to search for. The AI query will set this automatically, but you can override it here.",
            "items": {
              "type": "string",
              "enum": [
                "sailboat",
                "motorboat",
                "catamaran",
                "sailing-yacht",
                "motor-yacht",
                "houseboat",
                "fishing-boat",
                "RIB",
                "jet-ski",
                "superyacht",
                "trawler",
                "flybridge",
                "cabin-cruiser",
                "center-console",
                "bowrider",
                "trimaran",
                "classic-sailing-yacht",
                "classic-power-boat",
                "pontoon-boat",
                "dinghy",
                "narrowboat",
                "barge",
                "sport-boat",
                "inflatable-boat"
              ]
            },
            "default": []
          },
          "country": {
            "title": "Country",
            "type": "array",
            "description": "Countries to search in (e.g., 'Germany', 'Croatia'). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Min Price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in EUR"
          },
          "priceMax": {
            "title": "Max Price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in EUR"
          },
          "yearMin": {
            "title": "Min Year",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Earliest year of manufacture"
          },
          "yearMax": {
            "title": "Max Year",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Latest year of manufacture"
          },
          "lengthMin": {
            "title": "Min Length (m)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum length in metres"
          },
          "lengthMax": {
            "title": "Max Length (m)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum length in metres"
          },
          "brand": {
            "title": "Brand",
            "type": "array",
            "description": "Filter by manufacturer/brand (e.g., 'Beneteau', 'Bavaria'). Leave empty for all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "new",
              "used",
              "any"
            ],
            "type": "string",
            "description": "Filter by boat condition",
            "default": "any"
          },
          "scrapeDetails": {
            "title": "Scrape Detail Pages",
            "type": "boolean",
            "description": "Visit each listing's detail page for full specs, equipment list, complete description, and all photos. Slower but much richer data. Recommended for smaller result sets (under 50).",
            "default": false
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to scrape. The AI may suggest a value based on your query.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort By",
            "enum": [
              "price-asc",
              "price-desc",
              "newest",
              "length-desc"
            ],
            "type": "string",
            "description": "How to sort search results",
            "default": "newest"
          },
          "proxy": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Configure proxy settings. Default uses Apify's smart proxy selection.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}