{
  "openapi": "3.0.1",
  "info": {
    "title": "Despegar Hotel Scraper – Prices, Rates & Availability",
    "description": "Scrape Despegar and Decolar hotel prices, rates and availability for any destination and dates. Get price per night, total price, discounts, free cancellation, stars, guest rating, address, GPS and photos from 17 Latin American sites. Filter like on Despegar. Export to JSON, CSV or Excel.",
    "version": "0.0",
    "x-build-id": "lWt2Us38spRmmVTIz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/knagymate~despegar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-knagymate-despegar-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/knagymate~despegar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-knagymate-despegar-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/knagymate~despegar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-knagymate-despegar-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": [
          "search"
        ],
        "properties": {
          "search": {
            "title": "Destination",
            "type": "string",
            "description": "City, neighborhood, landmark or airport, as you would type it into the Despegar search box, e.g. Buenos Aires, Cancun, Rio de Janeiro or Palermo.",
            "default": "Buenos Aires"
          },
          "maxItems": {
            "title": "Max properties",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of properties to scrape.",
            "default": 100
          },
          "countrySite": {
            "title": "Country site",
            "enum": [
              "US",
              "AR",
              "BR",
              "MX",
              "CO",
              "CL",
              "PE",
              "UY",
              "EC",
              "BO",
              "PY",
              "CR",
              "PA",
              "GT",
              "SV",
              "NI",
              "VE"
            ],
            "type": "string",
            "description": "Despegar country site to search. It sets the currency (e.g. USD on the US site, ARS in Argentina, BRL on Decolar Brazil) and the language of the results.",
            "default": "US"
          },
          "checkIn": {
            "title": "Check-in date",
            "type": "string",
            "description": "Check-in date, YYYY-MM-DD. Leave both dates empty to search a 1-night stay 7 days from today."
          },
          "checkOut": {
            "title": "Check-out date",
            "type": "string",
            "description": "Check-out date, YYYY-MM-DD, later than the check-in date."
          },
          "rooms": {
            "title": "Number of rooms",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Number of rooms to book (1–8).",
            "default": 1
          },
          "adults": {
            "title": "Number of adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adults, at least one per room. Adults are spread evenly over the rooms.",
            "default": 2
          },
          "childrenAges": {
            "title": "Children's ages",
            "type": "array",
            "description": "Age of each child (0–17), e.g. [3, 7] for two children. Despegar prices children by age. Leave empty for no children.",
            "default": []
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "recommended",
              "price_low_to_high",
              "price_high_to_low",
              "review_score",
              "stars_high_to_low",
              "stars_low_to_high"
            ],
            "type": "string",
            "description": "Order of the results, as on Despegar's search page.",
            "default": "recommended"
          },
          "includeNearbyAreas": {
            "title": "Include nearby areas",
            "type": "boolean",
            "description": "Despegar widens some city searches to the surrounding region (e.g. 'Buenos Aires and surroundings'). Turn this off to search only the selected destination.",
            "default": true
          },
          "accommodationCategory": {
            "title": "Accommodation category",
            "enum": [
              "all",
              "hotel",
              "vacation_rental"
            ],
            "type": "string",
            "description": "Only hotels or only vacation rentals (apartments, houses).",
            "default": "all"
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Only properties of any of these types. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "hotel",
                "boutique_hotel",
                "apart_hotel",
                "apartment",
                "house",
                "hostel",
                "bed_and_breakfast",
                "inn",
                "villa",
                "residential_condominium"
              ],
              "enumTitles": [
                "Hotels",
                "Boutique hotels",
                "Apart-hotels",
                "Apartments",
                "Houses for rent",
                "Hostels",
                "Bed and breakfasts",
                "Inns",
                "Villas",
                "Residential condominiums"
              ]
            },
            "default": []
          },
          "minTotalPrice": {
            "title": "Minimum total price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price for the whole stay, in the currency of the country site."
          },
          "maxTotalPrice": {
            "title": "Maximum total price",
            "minimum": 1,
            "type": "integer",
            "description": "Highest price for the whole stay, in the currency of the country site."
          },
          "starRating": {
            "title": "Star rating",
            "type": "array",
            "description": "Only properties with any of these star ratings.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "1 star",
                "2 stars",
                "3 stars",
                "4 stars",
                "5 stars"
              ]
            },
            "default": []
          },
          "minReviewScore": {
            "title": "Minimum guest rating",
            "enum": [
              "any",
              "6",
              "7",
              "8",
              "9"
            ],
            "type": "string",
            "description": "Only properties with at least this guest review score (out of 10).",
            "default": "any"
          },
          "freeCancellation": {
            "title": "Free cancellation only",
            "type": "boolean",
            "description": "Only properties with a free cancellation option.",
            "default": false
          },
          "paymentType": {
            "title": "Payment",
            "enum": [
              "any",
              "pay_at_property",
              "pay_online"
            ],
            "type": "string",
            "description": "Only properties that can be paid at the property, or online.",
            "default": "any"
          },
          "mealPlans": {
            "title": "Meal plan",
            "type": "array",
            "description": "Only properties offering any of these meal plans.",
            "items": {
              "type": "string",
              "enum": [
                "breakfast",
                "room_only"
              ],
              "enumTitles": [
                "Breakfast included",
                "Accommodation only"
              ]
            },
            "default": []
          },
          "amenities": {
            "title": "Services",
            "type": "array",
            "description": "Only properties offering all of these services.",
            "items": {
              "type": "string",
              "enum": [
                "parking",
                "pool",
                "pet_friendly",
                "kids",
                "accessibility",
                "transfer"
              ],
              "enumTitles": [
                "Parking",
                "Swimming pool",
                "Pet friendly",
                "For kids",
                "Accessibility",
                "Transfer services"
              ]
            },
            "default": []
          },
          "discount": {
            "title": "Discounts",
            "enum": [
              "any",
              "all",
              "20",
              "50"
            ],
            "type": "string",
            "description": "Only discounted offers.",
            "default": "any"
          },
          "propertyName": {
            "title": "Property name",
            "type": "string",
            "description": "Only properties whose name contains this text, e.g. Hilton."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}