{
  "openapi": "3.0.1",
  "info": {
    "title": "DoneDeal Scraper - Cars & Classified Ads",
    "description": "Extract car and classified ads from DoneDeal.ie - prices, specs, mileage, seller details, photos and more. Fast, browser-free scraping with flexible filters.",
    "version": "1.0",
    "x-build-id": "M4dftWeaFFgOtCofa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/trev0n~donedeal-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-trev0n-donedeal-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/trev0n~donedeal-scraper/runs": {
      "post": {
        "operationId": "runs-sync-trev0n-donedeal-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/trev0n~donedeal-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-trev0n-donedeal-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": "DoneDeal URLs",
            "type": "array",
            "description": "Paste any DoneDeal search, section or single-ad page. Filters already in the URL are kept, and paging continues from where the link points. Leave empty to build a search with the fields below instead.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "section": {
            "title": "Section",
            "enum": [
              "all",
              "for-sale",
              "motor",
              "cars",
              "commercials",
              "vintagecars",
              "modifiedcars",
              "rallycars",
              "damagedcars",
              "motorbikes",
              "vintagebikes",
              "scooters",
              "quads",
              "trucks",
              "coaches",
              "campers",
              "caravans",
              "trailers",
              "boats",
              "plantmachinery",
              "carparts",
              "carextras",
              "motorbikeextras",
              "boatextras",
              "othermotor",
              "farming",
              "tractors",
              "machinery",
              "vintagemachinery",
              "livestock",
              "poultry",
              "farmproduce",
              "farmersmarket",
              "farmersnoticeboard",
              "farmservices",
              "farmsheds",
              "farmtools",
              "feedingequipment",
              "fencingequipment",
              "fertilisers",
              "otherfarming",
              "property",
              "household",
              "homeelectronics",
              "fashion",
              "babyandkids",
              "sport",
              "music",
              "animals",
              "business",
              "tickets",
              "services-for-hire",
              "lostfound"
            ],
            "type": "string",
            "description": "Which part of the marketplace to search. \"All Sections\" covers everything at once.",
            "default": "cars"
          },
          "words": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text search, e.g. \"golf gti\" or \"john deere\". Leave empty to get everything in the section."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make, exactly as DoneDeal spells it — e.g. Volkswagen, Land Rover, John Deere."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, e.g. Golf, Passat. Needs a Make to be set as well."
          },
          "area": {
            "title": "County",
            "enum": [
              "",
              "Antrim",
              "Armagh",
              "Carlow",
              "Cavan",
              "Clare",
              "Cork",
              "Derry",
              "Donegal",
              "Down",
              "Dublin",
              "Fermanagh",
              "Galway",
              "Kerry",
              "Kildare",
              "Kilkenny",
              "Laois",
              "Leitrim",
              "Limerick",
              "Longford",
              "Louth",
              "Mayo",
              "Meath",
              "Monaghan",
              "Offaly",
              "Roscommon",
              "Sligo",
              "Tipperary",
              "Tyrone",
              "Waterford",
              "Westmeath",
              "Wexford",
              "Wicklow"
            ],
            "type": "string",
            "description": "Restrict to one Irish county (Northern Irish counties included). Leave empty for all of Ireland.",
            "default": ""
          },
          "town": {
            "title": "Town",
            "type": "string",
            "description": "Narrow to a town. Combine with Radius to search the surrounding area."
          },
          "radius": {
            "title": "Radius (km)",
            "enum": [
              "",
              "5",
              "10",
              "25",
              "50",
              "100",
              "250",
              "500"
            ],
            "type": "string",
            "description": "How far around the town to search. Only applies when a Town is set.",
            "default": ""
          },
          "priceMin": {
            "title": "Min price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Cheapest price to include. 0 = no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Dearest price to include. 0 = no maximum.",
            "default": 0
          },
          "yearMin": {
            "title": "Min year",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year to include. 0 = any.",
            "default": 0
          },
          "yearMax": {
            "title": "Max year",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year to include. 0 = any.",
            "default": 0
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest mileage to include. 0 = any.",
            "default": 0
          },
          "fuelType": {
            "title": "Fuel type",
            "type": "array",
            "description": "Pick one or more. Leave empty for all fuel types.",
            "items": {
              "type": "string",
              "enum": [
                "Petrol",
                "Diesel",
                "Electric",
                "Petrol hybrid",
                "Diesel hybrid",
                "Petrol Plug-in Hybrid",
                "Diesel Plug-in Hybrid",
                "Other"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Petrol hybrid",
                "Diesel hybrid",
                "Petrol Plug-in Hybrid",
                "Diesel Plug-in Hybrid",
                "Other"
              ]
            },
            "default": []
          },
          "transmission": {
            "title": "Transmission",
            "type": "array",
            "description": "Manual, automatic, or both.",
            "items": {
              "type": "string",
              "enum": [
                "Manual",
                "Automatic"
              ],
              "enumTitles": [
                "Manual",
                "Automatic"
              ]
            },
            "default": []
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "Pick one or more body styles.",
            "items": {
              "type": "string",
              "enum": [
                "SUV",
                "Estate",
                "Hatchback",
                "Saloon",
                "MPV",
                "Coupe",
                "Van",
                "Convertible",
                "Pick Up",
                "Other"
              ],
              "enumTitles": [
                "SUV",
                "Estate",
                "Hatchback",
                "Saloon",
                "MPV",
                "Coupe",
                "Van",
                "Convertible",
                "Pick Up",
                "Other"
              ]
            },
            "default": []
          },
          "colour": {
            "title": "Colour",
            "type": "array",
            "description": "Pick one or more colours.",
            "items": {
              "type": "string",
              "enum": [
                "Black",
                "White",
                "Grey",
                "Blue",
                "Red",
                "Silver",
                "Green",
                "Purple",
                "Brown",
                "Orange",
                "Yellow",
                "Other"
              ],
              "enumTitles": [
                "Black",
                "White",
                "Grey",
                "Blue",
                "Red",
                "Silver",
                "Green",
                "Purple",
                "Brown",
                "Orange",
                "Yellow",
                "Other"
              ]
            },
            "default": []
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "pro",
              "private"
            ],
            "type": "string",
            "description": "Dealer ads, private ads, or both.",
            "default": ""
          },
          "trustedDealerOnly": {
            "title": "Trusted Dealers only",
            "type": "boolean",
            "description": "Only ads from dealers carrying DoneDeal’s Trusted Dealer badge.",
            "default": false
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "",
              "for-sale",
              "wanted"
            ],
            "type": "string",
            "description": "Items for sale, or \"wanted\" ads from buyers looking for something.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "relevance",
              "oldest",
              "price-asc",
              "price-desc",
              "mileage-asc",
              "mileage-desc",
              "seller-rating"
            ],
            "type": "string",
            "description": "Result order. \"Newest\" is best for monitoring so fresh ads come first.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max ads",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many ads. 0 = no limit (careful: some sections hold 100,000+ ads).",
            "default": 100
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many result pages (30 ads each). 0 = no limit.",
            "default": 0
          },
          "includeDetails": {
            "title": "Fetch full ad details",
            "type": "boolean",
            "description": "Open every ad to add the full description, all photos, the complete spec list, GPS coordinates and view count. Slower and costs one extra request per ad.",
            "default": false
          },
          "descriptionMaxLength": {
            "title": "Trim descriptions to",
            "minimum": 0,
            "type": "integer",
            "description": "Cut long descriptions to this many characters. 0 = keep the full text.",
            "default": 0
          },
          "includeKeywords": {
            "title": "Must contain",
            "type": "array",
            "description": "Keep only ads mentioning at least one of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Drop ads mentioning any of these words.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxAgeMinutes": {
            "title": "Only ads newer than (minutes)",
            "minimum": 0,
            "type": "integer",
            "description": "Drop anything published longer ago than this. 0 = no age limit.",
            "default": 0
          },
          "incrementalMode": {
            "title": "Incremental monitoring",
            "type": "boolean",
            "description": "Remember what was seen on previous runs and return only new, changed and relisted ads. Cuts the cost of a scheduled run by 80-95%.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name for this monitor’s memory. Use different names for different searches. Auto-generated from your filters if left empty."
          },
          "emitUnchanged": {
            "title": "Also return unchanged ads",
            "type": "boolean",
            "description": "Return every ad every run, not just the changes. Turns off most of the savings.",
            "default": false
          },
          "emitExpired": {
            "title": "Also report removed ads",
            "type": "boolean",
            "description": "Add a row for ads that disappeared since the last run (usually sold).",
            "default": false
          },
          "skipReposts": {
            "title": "Skip reposts",
            "type": "boolean",
            "description": "Hide ads that are a re-listing of something already seen under a different ad number.",
            "default": false
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Send the results to this URL as JSON when changes are found."
          },
          "telegramBotToken": {
            "title": "Telegram bot token",
            "type": "string",
            "description": "Token from @BotFather to get alerts in Telegram."
          },
          "telegramChatId": {
            "title": "Telegram chat ID",
            "type": "string",
            "description": "Which Telegram chat to send alerts to."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Post alerts into a Discord channel."
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Post alerts into a Slack channel."
          },
          "notifyOnlyChanges": {
            "title": "Only alert when something changed",
            "type": "boolean",
            "description": "Stay quiet on runs that found nothing new.",
            "default": true
          },
          "notificationLimit": {
            "title": "Max ads per alert",
            "minimum": 1,
            "type": "integer",
            "description": "How many ads to list in a single alert message.",
            "default": 10
          },
          "includeRunSummary": {
            "title": "Include run summary in alerts",
            "type": "boolean",
            "description": "Add the run's totals (new / updated / removed counts) to each alert message.",
            "default": true
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Return only the key fields per ad instead of the full record.",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Drop empty fields",
            "type": "boolean",
            "description": "Leave out fields that have no value.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many result pages to load at once. Keep this low — DoneDeal throttles bursts.",
            "default": 3
          },
          "detailConcurrency": {
            "title": "Parallel detail requests",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many ad pages to open at once when full details are on.",
            "default": 5
          },
          "useDataRoute": {
            "title": "Use lightweight transport",
            "type": "boolean",
            "description": "Fetch result pages and ad details through DoneDeal's compact data feed: result pages are about 40% smaller and ad details about 60% smaller. When the feed misses, that page loads normally with no loss of data. Turn off only to force normal pages.",
            "default": true
          },
          "useProxyForDetails": {
            "title": "Use proxy for ad pages",
            "type": "boolean",
            "description": "Route ad-detail requests through the proxy too.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave this as it is. DoneDeal blocks datacenter traffic outright, so Irish residential proxies are required — with anything else the run returns nothing.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "IE"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}