{
  "openapi": "3.0.1",
  "info": {
    "title": "Motorist.sg Scraper - Singapore Used Cars & Dealer Leads",
    "description": "Scrape used-car listings from Motorist.sg — price, depreciation, COE, OMV, ARF, mileage, reg date, full specs and photos, plus dealer/seller name, phone & WhatsApp for lead generation. Filter, monitor price drops. No login or API key.",
    "version": "0.1",
    "x-build-id": "kKV3BnUGEmlpHTraI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~motorist-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-motorist-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/scrapesage~motorist-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-motorist-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/scrapesage~motorist-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-motorist-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": {
          "segments": {
            "title": "Segments / categories",
            "type": "array",
            "description": "Which Motorist.sg used-car categories to scrape. Use a body type (<code>all-vehicles</code>, <code>sedan</code>, <code>suv</code>, <code>hatchback</code>, <code>mpv</code>, <code>luxury-car</code>, <code>sports-car</code>, <code>stationwagon</code>, <code>hybrid-car</code>, <code>electric-car</code>, <code>diesel-car</code>, <code>all-commercial</code>, <code>truck</code>, <code>van</code>, <code>pickup</code>, <code>bus-mini-bus</code>, <code>vintage-car</code>, <code>motorcycle</code>) or a make slug (e.g. <code>toyota</code>, <code>bmw</code>, <code>mercedes-benz</code>, <code>honda</code>). Defaults to all vehicles.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Optional: paste Motorist.sg used-car listing URLs straight from the site, e.g. <code>https://motorist.sg/used-cars/suv</code> or <code>https://motorist.sg/used-cars/bmw</code>. When set, these override the Segments selector above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeDetails": {
            "title": "Scrape detail pages (full specs + dealer phone & WhatsApp leads)",
            "type": "boolean",
            "description": "Open each car's detail page to add OMV, ARF, road tax, engine capacity, power, transmission, fuel type, the full photo gallery and the <b>dealer/seller name, mobile and WhatsApp link</b> (the lead). Turn OFF for a fast, cheap listing-grid-only run (no phone numbers).",
            "default": true
          },
          "maxResults": {
            "title": "Max results (total)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings across all segments (0 = no limit). Motorist lists thousands of used cars, so keep a cap for test runs. The run also auto-stops within its own time limit, so it can't time out even with a high cap.",
            "default": 50
          },
          "maxResultsPerSegment": {
            "title": "Max results per segment",
            "minimum": 0,
            "type": "integer",
            "description": "Cap listings per segment/category (0 = no per-segment cap).",
            "default": 0
          },
          "minPrice": {
            "title": "Minimum price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars at or above this asking price. 0 = no minimum.",
            "default": 0
          },
          "maxPrice": {
            "title": "Maximum price (SGD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars at or below this asking price. 0 = no maximum.",
            "default": 0
          },
          "makes": {
            "title": "Makes filter",
            "type": "array",
            "description": "Optional. Keep only these makes (matched on the listing title), e.g. <code>Toyota</code>, <code>BMW</code>, <code>Mercedes-Benz</code>. Useful when scraping <code>all-vehicles</code>.",
            "items": {
              "type": "string"
            }
          },
          "fuelTypes": {
            "title": "Fuel types filter",
            "type": "array",
            "description": "Optional. Keep only these fuel types (requires detail scraping), e.g. <code>Petrol</code>, <code>Diesel</code>, <code>Electric</code>, <code>Petrol-Electric</code>.",
            "items": {
              "type": "string"
            }
          },
          "maxMileageKm": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars at or below this mileage. 0 = no limit.",
            "default": 0
          },
          "maxDepreciation": {
            "title": "Maximum depreciation (SGD/yr)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars at or below this yearly depreciation. 0 = no limit.",
            "default": 0
          },
          "minCoeMonthsLeft": {
            "title": "Minimum COE months left",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with at least this many months of COE remaining. 0 = no minimum.",
            "default": 0
          },
          "maxOwners": {
            "title": "Maximum number of owners",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with at most this many previous owners. 0 = no limit.",
            "default": 0
          },
          "monitorMode": {
            "title": "Monitor mode — only new & changed listings",
            "type": "boolean",
            "description": "Output only cars that are <b>new</b> or whose <b>price changed</b> since the last run for the same input. Each row is tagged with <code>monitorStatus</code> (<code>new</code>, <code>price_drop</code>, <code>price_increase</code>) and, for price changes, <code>previousPrice</code>. The first run emits everything and seeds the state. Pairs perfectly with Apify Schedules — see the README.",
            "default": false
          },
          "dedupStoreName": {
            "title": "Monitor state store name",
            "type": "string",
            "description": "Named key-value store that holds the 'seen listings' state for monitor mode. Use a distinct name per independent monitor (e.g. per saved search) so their states don't mix.",
            "default": "motorist-sg-state"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "Maximum number of requests made in parallel.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy settings. Motorist.sg works well over the default Apify datacenter proxy; switch to residential only if you hit persistent blocks.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}