{
  "openapi": "3.0.1",
  "info": {
    "title": "RentalCars Scraper - Car Hire Locations, Ratings, Prices",
    "description": "Extract rentalcars.com car hire data: about 16,900 place pages with airport codes and coordinates, supplier ratings with 7 sub-scores and opening hours, and a pick-up date price calendar in 89 currencies. Plain requests, no proxy, no login. Export to CSV, Excel, JSON or XML.",
    "version": "0.1",
    "x-build-id": "Pxfb4ZYkhnQP1RYG5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~rentalcars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-rentalcars-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/recordsdata~rentalcars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-rentalcars-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/recordsdata~rentalcars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-rentalcars-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": {
          "mode": {
            "title": "What do you want to collect?",
            "enum": [
              "locations",
              "supplierRatings",
              "priceCalendar"
            ],
            "type": "string",
            "description": "locations = the directory of pick-up places: airports, cities, districts, regions and countries. supplierRatings = customer ratings of car hire suppliers worldwide or per country, city or airport. priceCalendar = the cheapest pick-up days of a date window for an airport, with the estimated total price.",
            "default": "locations"
          },
          "searchTerms": {
            "title": "Place names",
            "type": "array",
            "description": "Example: Barcelona, Heathrow. Each name returns up to 10 places. In price calendar mode the airports found are priced.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "iataCodes": {
            "title": "Airport codes (IATA)",
            "type": "array",
            "description": "Three-letter codes. Example: BCN, JFK. Not case sensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Name or two-letter code. Example: Spain, ES, España.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "placeTypes": {
            "title": "Place types",
            "type": "array",
            "description": "Keep only these kinds of place. Empty means all. The price calendar always prices airports.",
            "items": {
              "type": "string",
              "enum": [
                "airport",
                "city",
                "district",
                "region",
                "country",
                "landmark",
                "brand"
              ],
              "enumTitles": [
                "Airports",
                "Cities",
                "Districts",
                "Regions",
                "Countries",
                "Landmarks and hotels (place search only)",
                "Supplier brands, worldwide (ratings only)"
              ]
            },
            "default": []
          },
          "includeDetails": {
            "title": "Read each place page (slower, richer)",
            "type": "boolean",
            "description": "Places by country, type or code only. On adds exact name, region, coordinates and vehicle classes (about one request per place). Off is a fast listing without coordinates.",
            "default": true
          },
          "suppliers": {
            "title": "Car hire suppliers",
            "type": "array",
            "description": "Example: Hertz, Avis, Sixt, Europcar. Empty means every supplier.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "onlyRated": {
            "title": "Only pages with a rating",
            "type": "boolean",
            "description": "On skips pages with no rating yet (about half), for free.",
            "default": true
          },
          "minRating": {
            "title": "Min overall score (0-10)",
            "minimum": 0,
            "maximum": 10,
            "type": "number",
            "description": "Example: 8. 0 means no filter.",
            "default": 0
          },
          "minRatingCount": {
            "title": "Min number of ratings",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Example: 100. 0 means no filter.",
            "default": 0
          },
          "includeBreakdown": {
            "title": "Include the 7 sub-scores",
            "type": "boolean",
            "description": "Adds value for money, counter staff, pick-up speed, drop-off speed, cleanliness, vehicle condition and desk location.",
            "default": true
          },
          "pickupFrom": {
            "title": "First pick-up day",
            "type": "string",
            "description": "YYYY-MM-DD. Empty means 7 days from today. Up to about 264 days ahead."
          },
          "pickupTo": {
            "title": "Last pick-up day",
            "type": "string",
            "description": "YYYY-MM-DD. Empty means 30 days after the first day."
          },
          "rentalDays": {
            "title": "Rental length (days)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "1 to 30. Example: 5.",
            "default": 5
          },
          "currency": {
            "title": "Price currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "AUD",
              "CAD",
              "NZD",
              "CHF",
              "JPY",
              "CNY",
              "HKD",
              "SGD",
              "INR",
              "AED",
              "SAR",
              "QAR",
              "KWD",
              "BHD",
              "OMR",
              "ILS",
              "TRY",
              "ZAR",
              "EGP",
              "MAD",
              "TND",
              "NGN",
              "KES",
              "GHS",
              "BRL",
              "ARS",
              "CLP",
              "COP",
              "PEN",
              "MXN",
              "UYU",
              "PYG",
              "BOB",
              "CRC",
              "DOP",
              "GTQ",
              "HNL",
              "NIO",
              "PAB",
              "SEK",
              "NOK",
              "DKK",
              "ISK",
              "PLN",
              "CZK",
              "HUF",
              "RON",
              "BGN",
              "HRK",
              "RSD",
              "UAH",
              "RUB",
              "KZT",
              "GEL",
              "AMD",
              "AZN",
              "THB",
              "MYR",
              "IDR",
              "PHP",
              "VND",
              "KRW",
              "TWD",
              "LKR",
              "PKR",
              "BDT",
              "NPR",
              "JOD",
              "LBP",
              "MUR",
              "SCR",
              "XOF",
              "XAF",
              "TZS",
              "UGX",
              "ETB",
              "MZN",
              "BWP",
              "NAD",
              "ZMW",
              "CUP",
              "JMD",
              "TTD",
              "BBD",
              "BSD",
              "FJD"
            ],
            "type": "string",
            "description": "Currency of the estimated prices. The site answers for these 89 currency codes; the price rows carry the code used.",
            "default": "USD"
          },
          "priceDetail": {
            "title": "Price detail",
            "enum": [
              "cheapest",
              "daily"
            ],
            "type": "string",
            "description": "cheapest = the 5 cheapest pick-up days of the window per airport, ranked, in one request. daily = one estimate for every day of the window (one request per day, up to 93 days).",
            "default": "cheapest"
          },
          "maxPricePerDay": {
            "title": "Max price per day (chosen currency)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "Skips estimates above this amount per day. Example: 40. 0 means no filter.",
            "default": 0
          },
          "maxItems": {
            "title": "Max rows to return",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows. Free plan capped at 10. Example: 50.",
            "default": 50
          },
          "language": {
            "title": "Language of names and texts",
            "enum": [
              "en",
              "es",
              "de",
              "fr",
              "it",
              "pt",
              "nl",
              "pl",
              "sv",
              "ja"
            ],
            "type": "string",
            "description": "Language of place names and supplier texts. Prices and scores do not depend on it.",
            "default": "en"
          },
          "onlyNew": {
            "title": "Only new or changed records",
            "type": "boolean",
            "description": "Skips records already delivered by earlier runs of the same search, not charged. A rating row returns when its score changes, a price row when its estimate changes.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional label. Example: spain-airports-weekly.",
            "default": ""
          },
          "resetSeen": {
            "title": "Reset monitor memory before this run",
            "type": "boolean",
            "description": "On = clears the memory of this search before the run, so everything counts as new again.",
            "default": false
          },
          "maxScanSeconds": {
            "title": "Max scan time",
            "minimum": 10,
            "maximum": 3600,
            "type": "integer",
            "description": "Stops reading pages after this many seconds and keeps what was found. A strict filter (for example a minimum rating of 9.9 across every supplier page) can mean thousands of pages; this keeps the run short and cheap. Raise it to scan further.",
            "default": 300
          },
          "maxConcurrency": {
            "title": "Parallel requests (1-5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Pages read at the same time, from 1 to 5. The actor still spaces request starts at least 300 ms apart, and follows the site robots.txt.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed. Turn on only if the log shows blocked requests.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}