{
  "openapi": "3.0.1",
  "info": {
    "title": "Arabam.com Vehicle Scraper",
    "description": "Extract structured used-car listings from Arabam.com, including price, mileage, specs, seller details, location, condition data, and optional detail-page enrichment.",
    "version": "0.0",
    "x-build-id": "vSw3jHPNf8TbPsyHQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/seralifatih~Turkish-Automotive-Intelligence-Suite/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-seralifatih-Turkish-Automotive-Intelligence-Suite",
        "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/seralifatih~Turkish-Automotive-Intelligence-Suite/runs": {
      "post": {
        "operationId": "runs-sync-seralifatih-Turkish-Automotive-Intelligence-Suite",
        "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/seralifatih~Turkish-Automotive-Intelligence-Suite/run-sync": {
      "post": {
        "operationId": "run-sync-seralifatih-Turkish-Automotive-Intelligence-Suite",
        "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": {
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Direct arabam.com search or category result page URLs. Use this or filters, not both.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Direct arabam.com vehicle detail page URLs to scrape. Can be combined with other inputs.",
            "items": {
              "type": "string"
            }
          },
          "filters": {
            "title": "Search Filters",
            "type": "object",
            "description": "Build a search URL from filters when searchUrls is not provided.",
            "properties": {
              "make": {
                "title": "Make",
                "type": "string",
                "description": "Vehicle make or brand in slug form, for example 'volkswagen', 'toyota', or 'bmw'.",
                "example": "volkswagen"
              },
              "model": {
                "title": "Model",
                "type": "string",
                "description": "Vehicle model in slug form, for example 'passat' or 'corolla'.",
                "example": "passat"
              },
              "yearMin": {
                "title": "Minimum Year",
                "type": "integer",
                "description": "Optional. Minimum model year to include in the search.",
                "minimum": 1970,
                "maximum": 2030,
                "example": 2018
              },
              "yearMax": {
                "title": "Maximum Year",
                "type": "integer",
                "description": "Optional. Maximum model year to include in the search.",
                "minimum": 1970,
                "maximum": 2030,
                "example": 2023
              },
              "priceMin": {
                "title": "Minimum Price (TRY)",
                "type": "integer",
                "description": "Optional. Minimum asking price in Turkish lira.",
                "example": 500000
              },
              "priceMax": {
                "title": "Maximum Price (TRY)",
                "type": "integer",
                "description": "Optional. Maximum asking price in Turkish lira.",
                "example": 2000000
              },
              "mileageMax": {
                "title": "Maximum Mileage (km)",
                "type": "integer",
                "description": "Optional. Maximum mileage in kilometers.",
                "example": 150000
              },
              "fuelType": {
                "title": "Fuel Type",
                "type": "string",
                "description": "Optional. Fuel type filter.",
                "enum": [
                  "benzin",
                  "dizel",
                  "lpg",
                  "hybrid",
                  "elektrik",
                  "benzin_lpg"
                ],
                "example": "dizel"
              },
              "transmission": {
                "title": "Transmission",
                "type": "string",
                "description": "Optional. Transmission type filter.",
                "enum": [
                  "manuel",
                  "otomatik",
                  "yarı_otomatik"
                ],
                "example": "otomatik"
              },
              "city": {
                "title": "City",
                "type": "string",
                "description": "Optional. Filter by city, for example 'istanbul', 'ankara', or 'izmir'.",
                "example": "istanbul"
              },
              "bodyType": {
                "title": "Body Type",
                "type": "string",
                "description": "Optional. Body style filter.",
                "enum": [
                  "sedan",
                  "hatchback",
                  "station_wagon",
                  "suv",
                  "coupe",
                  "cabrio",
                  "minivan",
                  "pickup"
                ],
                "example": "sedan"
              }
            }
          },
          "maxListings": {
            "title": "Maximum Listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of vehicle listings to scrape, from 1 to 10000.",
            "default": 200
          },
          "scrapeDetails": {
            "title": "Scrape Detail Pages",
            "type": "boolean",
            "description": "When enabled, visits each listing detail page for complete specs, paint condition, accident history, and seller contact details. Disable for faster card-only scraping.",
            "default": true
          },
          "proxyConfig": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Turkish residential proxies are strongly recommended for reliability."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}