{
  "openapi": "3.0.1",
  "info": {
    "title": "Rental Cars Price Scraper",
    "description": "Compare rental car prices worldwide. Scrapes Booking.com Cars (Budget, Hertz, Avis, Sixt, Europcar, Enterprise & more) and Sunnycars all-inclusive rates for ANY city — just type a location. Live prices, vehicle specs, suppliers, mileage & insurance, in one normalized schema. JSON/CSV/API, n8n-ready.",
    "version": "0.0",
    "x-build-id": "6yJzo8FjpW8rsfjig"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/malikgen~rental-cars-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-malikgen-rental-cars-price-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/malikgen~rental-cars-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-malikgen-rental-cars-price-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/malikgen~rental-cars-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-malikgen-rental-cars-price-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",
        "required": [
          "pickupLocation"
        ],
        "properties": {
          "pickupLocation": {
            "title": "Pickup Location",
            "type": "string",
            "description": "City name or airport code for car pickup (e.g., 'Dubai, UAE', 'DXB')",
            "default": "Dubai, UAE"
          },
          "dropoffLocation": {
            "title": "Dropoff Location",
            "type": "string",
            "description": "City name or airport code for car return. Leave empty for same as pickup."
          },
          "pickupDate": {
            "title": "Pickup Date",
            "type": "string",
            "description": "Date to pick up the car (YYYY-MM-DD format). Must be a future date. If not provided, defaults to 7 days from now."
          },
          "dropoffDate": {
            "title": "Dropoff Date",
            "type": "string",
            "description": "Date to return the car (YYYY-MM-DD format). Must be after pickup date. If not provided, defaults to 14 days from now."
          },
          "pickupTime": {
            "title": "Pickup Time",
            "type": "string",
            "description": "Time to pick up the car (HH:MM format, 24-hour)",
            "default": "10:00"
          },
          "dropoffTime": {
            "title": "Dropoff Time",
            "type": "string",
            "description": "Time to return the car (HH:MM format, 24-hour)",
            "default": "10:00"
          },
          "carCategories": {
            "title": "Car Categories",
            "type": "array",
            "description": "Car categories to search for. Leave empty for all categories.",
            "default": [
              "economy",
              "compact",
              "midsize",
              "fullsize",
              "suv",
              "luxury"
            ],
            "items": {
              "type": "string"
            }
          },
          "providers": {
            "title": "Providers to Scrape",
            "type": "array",
            "description": "Select which rental car providers to scrape. Booking.com aggregates major rental companies (Budget, Dollar, Enterprise, Europcar, Hertz, Avis, Sixt, Thrifty, Alamo). Sunnycars offers all-inclusive pricing with insurance. (Rentalcars.com support is in progress.)",
            "items": {
              "type": "string",
              "enum": [
                "sunnycars",
                "booking"
              ],
              "enumTitles": [
                "Sunnycars (All-inclusive, EUR)",
                "Booking.com (Multi-company, configurable currency)"
              ]
            },
            "default": [
              "sunnycars",
              "booking"
            ]
          },
          "driverAge": {
            "title": "Driver Age",
            "minimum": 18,
            "maximum": 99,
            "type": "integer",
            "description": "Age of the driver (affects pricing and availability)",
            "default": 25
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "OMR",
              "AED",
              "USD",
              "EUR",
              "GBP"
            ],
            "type": "string",
            "description": "Preferred currency for prices",
            "default": "OMR"
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Filter by transmission type. Leave empty for all.",
            "default": ""
          },
          "extras": {
            "title": "Required Extras",
            "type": "object",
            "description": "Filter to only show cars with these extras available. Note: Booking.com supports all extras as search filters. Sunnycars only supports GPS and 2nd driver as search filters (child seats are added during booking).",
            "properties": {
              "gps": {
                "title": "GPS Navigation",
                "type": "boolean",
                "description": "Require GPS/navigation system",
                "default": false
              },
              "childSeat": {
                "title": "Child Seat",
                "type": "boolean",
                "description": "Require child/infant/booster seat available (Booking.com only - Sunnycars adds during booking)",
                "default": false
              },
              "additionalDriver": {
                "title": "Additional Driver",
                "type": "boolean",
                "description": "Require additional driver option (called '2nd driver' on Sunnycars)",
                "default": false
              }
            },
            "default": {
              "gps": false,
              "childSeat": false,
              "additionalDriver": false
            }
          },
          "maxResults": {
            "title": "Max Results per Provider",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of car results to fetch per provider (50, 100, 200, or 500). The scraper will paginate/scroll to get more results up to this limit.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration for anti-bot bypass. Try without proxy first for Booking.com.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}