{
  "openapi": "3.0.1",
  "info": {
    "title": "Despegar Scraper | Hotels Flights Packages LatAm",
    "description": "Scrape Despegar LatAm hotels, flights, suggestions & packages. Extract prices, ratings, hotel IDs & offer URLs across AR/MX/CO and more. Export Excel/CSV/JSON. Unofficial — not affiliated with Despegar.",
    "version": "0.1",
    "x-build-id": "tEAh2ggBfvaNSKtLz"
  },
  "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": [
              "suggestions",
              "hotelsSearch",
              "hotelDetail",
              "flightsSearch",
              "packagesSeo",
              "cars",
              "transfers",
              "activities"
            ],
            "type": "string",
            "description": "Shipped modes collect data. cars/transfers/activities are schema waivers only and will fail with a clear error.",
            "default": "hotelsSearch"
          },
          "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": "LatAm Despegar host. Default AR. Other TLDs shopping parity not fully verified.",
            "default": "despegar.com.ar"
          },
          "query": {
            "title": "Query / destination text",
            "type": "string",
            "description": "City or place text for suggestions / hotelsSearch (resolved via /suggestions).",
            "default": "Buenos Aires"
          },
          "destinationGid": {
            "title": "Destination GID",
            "type": "string",
            "description": "Optional Despegar GID (e.g. CIT_982). Skips suggestions lookup when set."
          },
          "hotelId": {
            "title": "Hotel ID",
            "type": "string",
            "description": "Required for hotelDetail."
          },
          "checkin": {
            "title": "Check-in",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to ~21 days ahead."
          },
          "checkout": {
            "title": "Check-out",
            "type": "string",
            "description": "YYYY-MM-DD. Defaults to ~28 days ahead."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "type": "integer",
            "description": "Number of adults for hotel/flight distribution.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "type": "integer",
            "description": "Number of children.",
            "default": 0
          },
          "rooms": {
            "title": "Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Number of rooms.",
            "default": 1
          },
          "origin": {
            "title": "Origin",
            "type": "string",
            "description": "IATA (flights) or city slug (packagesSeo)."
          },
          "destination": {
            "title": "Destination",
            "type": "string",
            "description": "IATA (flights) or city slug (packagesSeo)."
          },
          "departureDate": {
            "title": "Departure date",
            "type": "string",
            "description": "Flight departure date YYYY-MM-DD."
          },
          "returnDate": {
            "title": "Return date",
            "type": "string",
            "description": "Flight return date YYYY-MM-DD."
          },
          "tripType": {
            "title": "Trip type",
            "enum": [
              "roundtrip",
              "oneway"
            ],
            "type": "string",
            "description": "roundtrip or oneway for flightsSearch.",
            "default": "roundtrip"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Optional override (e.g. ARS)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum dataset rows to collect. Raise to 21 for a full first SERP page.",
            "default": 1
          },
          "maxPages": {
            "title": "Max hotel pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Hotel SERP pages to walk (21 cards/page).",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich hotel details",
            "type": "boolean",
            "description": "When true, enrich top hotelSearch rows with detail pages.",
            "default": false
          },
          "enrichLimit": {
            "title": "Enrich limit",
            "minimum": 0,
            "maximum": 20,
            "type": "integer",
            "description": "How many hotels to enrich when enrichDetails is true.",
            "default": 3
          },
          "maxReviews": {
            "title": "Max reviews (detail)",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Max review items to attach on hotelDetail.",
            "default": 0
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Optional override for Cloud Run worker origin."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}