{
  "openapi": "3.0.1",
  "info": {
    "title": "DoneDeal Scraper: Ireland Cars, EV Battery & Dealers",
    "description": "DoneDeal.ie scraper for Ireland's car market. One row per car with battery kWh, WLTP range, consumption, equipment, every photo, the car's map point, and the dealer block with address, coordinates, website, email and Google rating, plus a dealer phone. Whole searches, checked against the count.",
    "version": "0.0",
    "x-build-id": "rX2PwpGo3zabfjhIM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~donedeal-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-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/memo23~donedeal-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-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/memo23~donedeal-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-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": "Start URLs",
            "type": "array",
            "description": "DoneDeal car search URLs (https://www.donedeal.ie/cars?fuelType=Electric&sellerType=pro&mileage_from=1000) or single ad URLs (https://www.donedeal.ie/cars-for-sale/volvo-ex90-twin-motor-performance-awd-ultra/41381012). Every filter in a search URL is kept as you set it. Leave empty to use the filter fields below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make, spelled as DoneDeal spells it (e.g. Volkswagen, Mercedes-Benz, Tesla). Used only when no Start URLs are given."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Car model, spelled as DoneDeal spells it (e.g. ID.3, Model 3, IONIQ 5). Needs a make."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "Electric",
              "Petrol",
              "Diesel",
              "Petrol hybrid",
              "Diesel hybrid",
              "Petrol Plug-in Hybrid",
              "Diesel Plug-in Hybrid",
              "Other"
            ],
            "type": "string",
            "description": "Fuel type filter. Leave unset for every fuel."
          },
          "dealersOnly": {
            "title": "Dealers only",
            "type": "boolean",
            "description": "Return only cars listed by dealerships, skipping private sellers.",
            "default": false
          },
          "priceFrom": {
            "title": "Price from (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in euro. A price filter leaves out ads with the price on request."
          },
          "priceTo": {
            "title": "Price to (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in euro. A price filter leaves out ads with the price on request."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "type": "integer",
            "description": "Oldest model year to include."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "type": "integer",
            "description": "Newest model year to include."
          },
          "mileageFrom": {
            "title": "Mileage from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest odometer reading to include. DoneDeal has no used-car filter; 1000 leaves out new and pre-registered cars."
          },
          "mileageTo": {
            "title": "Mileage to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading to include."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of car listings to return. 0 means no limit. The used electric dealer search alone holds over 3,600 cars, so set this on your first run.",
            "default": 1000
          },
          "scrapePhone": {
            "title": "Get dealer phone numbers",
            "type": "boolean",
            "description": "Add a phone number to each row: the dealer's WhatsApp line from the ad where the dealer offers one, otherwise a number the dealer wrote in the ad, otherwise the number published on the dealer's own website. Looked up once per dealer, not per car. A row with a phone is charged at the listing-with-phone price.",
            "default": true
          },
          "enrichEmails": {
            "title": "Find dealer emails",
            "type": "boolean",
            "description": "Look up each dealer's own email address on their website. DoneDeal's dealer block already carries an email, but for many dealers it is an enquiry-system or relay address. Charged only per address found, once per dealer.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many ads to fetch at once.",
            "default": 6
          },
          "failOnIncomplete": {
            "title": "Fail the run when ads are missing",
            "type": "boolean",
            "description": "End the run as FAILED when it delivers fewer ads than DoneDeal reported for the search, instead of returning a short dataset that looks complete.",
            "default": true
          },
          "completenessTolerancePercent": {
            "title": "Completeness tolerance (percent)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How far below the site's own count the run may land before it fails, as a percentage. The larger of this and the absolute tolerance applies.",
            "default": 1
          },
          "completenessToleranceAbsolute": {
            "title": "Completeness tolerance (ads)",
            "minimum": 0,
            "type": "integer",
            "description": "How many ads the run may miss before it fails. Covers ads published and withdrawn while the run is in flight.",
            "default": 25
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Leave this empty: the actor brings its own connections and you pay nothing extra for them. If you add your own proxy URLs, the run uses only those."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}