# YATCO Yacht Listing Scraper (`muhammadafzal/yatco-yacht-listing-scraper`) Actor

Extract public YATCO yacht listings and listing details into clean, structured data.

- **URL**: https://apify.com/muhammadafzal/yatco-yacht-listing-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Real estate, Travel, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 yacht listing scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## YATCO Yacht Listing Scraper

Extract public yacht-for-sale listings from YATCO into structured JSON for yacht brokers, market analysts, and buyers tracking inventory and asking prices.

### What it extracts

Each dataset item is one unique public yacht listing. The actor returns the canonical listing URL, vessel title, asking price and currency, year, length (feet and meters), description, images, visible specifications, location, and public broker fields when YATCO exposes them. Fields that are not public on a listing are returned as `null` or an empty collection, not guessed.

### When to use it

Use this actor to monitor a public YATCO search page, collect selected YATCO listing URLs, or build a clean yacht-inventory dataset. Give it a `https://www.yatco.com/yachts-for-sale/` URL or a public `https://www.yatco.com/yacht/.../` listing URL.

It does not submit contact forms, access member-only data, bypass authentication, or infer private seller information.

### Input

| Field | Purpose |
| --- | --- |
| `startUrls` | One or more public YATCO search or listing URLs. |
| `maxResults` | Hard cap from 1 to 1,000 records; default 25. |
| `enrichDetails` | Uses detail-page enrichment when a page URL requires it; search results already include public specifications, broker fields, and an image. |
| `proxyCountry` | Optional two-letter country preference for Apify Residential proxy; default `US`. |

Example input:

```json
{
  "startUrls": [{ "url": "https://www.yatco.com/yachts-for-sale/" }],
  "maxResults": 25,
  "enrichDetails": true,
  "proxyCountry": "US"
}
```

### Output

```json
{
  "recordType": "listing",
  "listingUrl": "https://www.yatco.com/yacht/2020-tiara-yachts-43-what-the-hull/",
  "title": "WHAT THE HULL",
  "year": 2020,
  "price": 715000,
  "currency": "USD",
  "lengthFeet": 43.33,
  "location": "Fort Lauderdale, Florida, United States",
  "imageUrls": [],
  "specifications": {},
  "scrapedAt": "2026-07-22T12:00:00.000Z"
}
```

The `OUTPUT` key-value record summarizes records emitted, failed requests, non-fatal warnings, and completion time. A valid search with no results finishes successfully and produces an honest summary.

### API and agent use

This actor is designed for a narrow tool call: provide a public YATCO URL and receive schema-stable yacht listings. Use `maxResults` to control scope and cost. If your workflow needs only card-level data, set `enrichDetails` to `false` for faster collection.

### Pricing

The actor uses pay per event: **$0.015 per unique yacht listing emitted**. Duplicate URLs are not charged twice, and the actor stops emitting when Apify's event charge limit is reached. Apify platform and proxy usage may be billed separately under your account plan.

#### Cost examples

- 25 listings (default) → $0.375
- 100 listings → $1.50
- 1,000 listings → $15.00

### Reliability and limits

Search inputs and listing URLs both resolve through YATCO's public, short-lived signed search API, which avoids depending on Cloudflare-protected page markup. Listing URLs are matched by their trailing public vessel ID (MLSID/VesselID). Only if the API fails or a listing has no resolvable ID does the actor fall back to a low-concurrency Camoufox browser with persistent sessions and challenge handling. The actor records warnings in `OUTPUT` rather than silently treating blocked pages as empty searches. YATCO's public interfaces can change; run a small canary input after changes and inspect the returned fields before scheduling large runs.

### Responsible use

Only collect public data you are entitled to process. Respect YATCO's terms, applicable privacy laws, and reasonable request volumes. Do not use this actor to harvest or contact individuals.

# Actor input Schema

## `startUrls` (type: `array`):

Use this when you have a public YATCO yachts-for-sale search or individual listing URL. Example: https://www.yatco.com/yachts-for-sale/. Other domains and login-only URLs are not supported.

## `maxResults` (type: `integer`):

Use this when you need a firm cap on emitted yacht listings. Choose 1–1000; the default is 25. It caps output, not pages visited.

## `enrichDetails` (type: `boolean`):

Use this when search-card data alone is not enough and you need public specifications, broker information, description, and images from each listing page. It increases runtime.

## `proxyCountry` (type: `string`):

Use this when YATCO returns regional content or blocks a request. Enter a two-letter ISO country code such as US; leave blank to use the default Apify proxy pool.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.yatco.com/yachts-for-sale/"
    }
  ],
  "maxResults": 25,
  "enrichDetails": true,
  "proxyCountry": "US"
}
```

# Actor output Schema

## `results` (type: `string`):

API link to collected yacht listing records.

## `summary` (type: `string`):

Run summary record with recordsPushed, failedRequests, and warnings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/yatco-yacht-listing-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/yatco-yacht-listing-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call muhammadafzal/yatco-yacht-listing-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/yatco-yacht-listing-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TXYj9iH6Vhak68XtM/builds/G8U05hF3eZSU4vj4N/openapi.json
