{
  "openapi": "3.0.1",
  "info": {
    "title": "Despegar Scraper - Hotels, Flights & Travel Data",
    "description": "Extract Despegar destination suggestions, hotels, flight offers and package listings across Latin American country sites. Export rows with prices, ratings and links. Pay per delivered row plus a start fee.",
    "version": "0.1",
    "x-build-id": "XJG1HiMtZrpWo83GX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~despegar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-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/lentic_clockss~despegar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-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/lentic_clockss~despegar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-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",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "auto",
              "suggestions",
              "hotelsSearch",
              "hotelDetail",
              "flightsSearch",
              "packagesSeo",
              "bffConfig",
              "cars",
              "transfers",
              "activities"
            ],
            "type": "string",
            "description": "Leave on Auto to choose from the target fields you fill. Select hotelsSearch for a place-name hotel search or packagesSeo for package offers; cars, transfers and activities are not available.",
            "default": "auto"
          },
          "query": {
            "title": "Place name",
            "type": "string",
            "description": "Enter a city or place name, such as Buenos Aires. With mode auto this returns destination suggestions; choose hotelsSearch to request hotels instead."
          },
          "hotelId": {
            "title": "Hotel ID",
            "type": "string",
            "description": "Enter a Despegar hotel identifier to select hotelDetail automatically. Optional reviews count toward maxResults."
          },
          "destinationGid": {
            "title": "Destination GID",
            "type": "string",
            "description": "Enter a Despegar destination identifier, such as CIT_982, to select hotelsSearch without a place-name lookup."
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "Enter the departure airport code for flights, such as EZE, or an origin city slug for packages."
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "Enter the arrival airport code for flights, such as MIA, or a destination city slug for packages."
          },
          "countrySite": {
            "title": "Country site",
            "enum": [
              "despegar.com.ar",
              "despegar.com.mx",
              "despegar.com.co",
              "despegar.com.cl",
              "despegar.com.br",
              "despegar.com.pe",
              "despegar.com.ec",
              "despegar.com.uy"
            ],
            "type": "string",
            "description": "Choose the Despegar country site. Availability and fields can differ between countries and collection modes.",
            "default": "despegar.com.ar"
          },
          "maxResults": {
            "title": "Maximum rows per query, hotel or route",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum delivered rows for the supplied query, hotel or route, including optional reviews. Default 70; larger requests are collected in parts of 70, subject to your maximum run cost and the Free-plan limits of 200 rows per run and 10 runs.",
            "default": 70
          },
          "checkin": {
            "title": "Check-in",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Enter the stay start in YYYY-MM-DD format, today or later. Leave empty for 21 days from today."
          },
          "checkout": {
            "title": "Check-out",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Hotel check-out date, YYYY-MM-DD. Leave empty for 7 nights after check-in."
          },
          "departureDate": {
            "title": "Departure date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Flight departure date, YYYY-MM-DD. Leave empty to use the check-in date."
          },
          "returnDate": {
            "title": "Return date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
            "type": "string",
            "description": "Flight return date, YYYY-MM-DD. Leave empty to use the check-out date."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "roundtrip",
              "oneway"
            ],
            "type": "string",
            "description": "Choose a round trip or one-way flight search.",
            "default": "roundtrip"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adults for the search. Exact child-age and room-by-room allocation is not available.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Number of children requested. Child ages are not represented, so returned prices are not exact child-inclusive booking quotes.",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Number of rooms requested. Detailed allocation of travellers between rooms is not available.",
            "default": 1
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Leave empty to use the selected country's currency, such as ARS for Argentina or MXN for Mexico. A different currency is rejected rather than converted."
          },
          "maxPages": {
            "title": "Maximum hotel search pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum hotel search pages to read, from 1 to 20. Collection can stop earlier when maxResults is reached or no more matching hotels are available.",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich hotel details",
            "type": "boolean",
            "description": "Add available hotel details to hotelsSearch rows. Off by default; use enrichLimit to limit the number of hotels checked.",
            "default": false
          },
          "enrichLimit": {
            "title": "Hotels to enrich",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum hotels to check for additional details when enrichDetails is true, from 0 to 20.",
            "default": 3
          },
          "maxReviews": {
            "title": "Max reviews per hotel",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Maximum reviews per hotel for hotelDetail or enriched hotelsSearch rows, from 0 to 50. Each review is billed as a separate row; hotel rows come first and reviews share the remaining maxResults allowance.",
            "default": 0
          },
          "workerBaseUrl": {
            "title": "Developer test setting",
            "type": "string",
            "description": "Leave empty. Used only by the developer for testing."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}