{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Calendar & Date-Specific Nightly Price",
    "description": "Per-date Airbnb availability plus the real bookable nightly price for those dates, in the currency you request (USD/EUR/GBP/TRY), with per-night breakdown and an explicit capacity flag. Airbnb's calendar returns price:null; this fetches the actual quote. Pay only for delivered data.",
    "version": "0.1",
    "x-build-id": "xactTmzZuJnaVGkLX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/mavilinklabs~airbnb-calendar-price/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-mavilinklabs-airbnb-calendar-price",
        "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/mavilinklabs~airbnb-calendar-price/runs": {
      "post": {
        "operationId": "runs-sync-mavilinklabs-airbnb-calendar-price",
        "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/mavilinklabs~airbnb-calendar-price/run-sync": {
      "post": {
        "operationId": "run-sync-mavilinklabs-airbnb-calendar-price",
        "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": [
          "listings"
        ],
        "properties": {
          "listings": {
            "title": "Listing URLs or IDs",
            "type": "array",
            "description": "Airbnb room URLs (e.g. \"https://www.airbnb.com/rooms/14926879\") or plain listing IDs.",
            "items": {
              "type": "string"
            }
          },
          "calendarMonths": {
            "title": "Calendar months",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many months of availability to fetch per listing, starting from the current month (1-12).",
            "default": 3
          },
          "enrichPrices": {
            "title": "Get real price quotes",
            "type": "boolean",
            "description": "For available date windows, fetch the bookable price Airbnb quotes for those exact dates, with a per-night breakdown. Airbnb's calendar response carries no price (price is null), so this comes from a separate booking quote. Whether the total includes tax depends on what Airbnb returns; every quote reports it via taxScope and totalIncludesTaxes.",
            "default": true
          },
          "maxQuotesPerListing": {
            "title": "Max price quotes per listing",
            "minimum": 1,
            "maximum": 24,
            "type": "integer",
            "description": "HARD cap on price quotes delivered and charged per listing in sampled mode - including the direct quote for an exact startDate/endDate window. Quotes are spread across months first (one per month), so with 12 months + 12 quotes you get a full-year price curve. Not used in allAvailableDates mode, where maxPricedDates is the budget.",
            "default": 4
          },
          "quoteNights": {
            "title": "Nights per quote (0 = auto)",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Stay length used for price quotes. 0 = use each date's own minimum-nights rule (recommended: a window shorter than the date's minimum stay is not bookable, so Airbnb returns no price for it). NOTE: with startDate+endDate in sampled mode, 0 - or a value equal to the length of that range - means \"price this one stay\": you get exactly ONE quote for the requested window and are charged once. Set a DIFFERENT value (e.g. 3 nights inside a 30-day window) if you want a sampled price curve across the range instead.",
            "default": 0
          },
          "startDate": {
            "title": "Start date (exact range)",
            "type": "string",
            "description": "Optional ISO date (YYYY-MM-DD). Provide BOTH startDate and endDate to fetch an exact window instead of whole months. When set, calendarMonths is ignored and emitted days[] are filtered to [startDate, endDate]. With the default quoteNights (0) in sampled mode this is an explicit stay: exactly ONE price quote is delivered and charged, for exactly this window."
          },
          "endDate": {
            "title": "End date (exact range)",
            "type": "string",
            "description": "Optional ISO date (YYYY-MM-DD), must be after startDate and within 12 months. Provide together with startDate."
          },
          "pricingMode": {
            "title": "Pricing mode",
            "enum": [
              "sampled",
              "allAvailableDates"
            ],
            "type": "string",
            "description": "sampled (default): a handful of quotes spread across months (maxQuotesPerListing). allAvailableDates: price EVERY eligible check-in date (requires maxPricedDates as a cost budget).",
            "default": "sampled"
          },
          "maxPricedDates": {
            "title": "Max priced dates (cost budget)",
            "minimum": 1,
            "type": "integer",
            "description": "REQUIRED when pricingMode = allAvailableDates. Hard budget on how many date quotes may be priced per listing. No default - you must set it so the cost is a contract, not a surprise."
          },
          "onCostLimitExceeded": {
            "title": "On cost budget exceeded",
            "enum": [
              "error",
              "truncate"
            ],
            "type": "string",
            "description": "When a listing has more eligible dates than maxPricedDates. error (default): price nothing for that listing (0 charge) and flag status=cost-limit-exceeded. truncate: price the first maxPricedDates chronologically and flag the omission loudly.",
            "default": "error"
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Guest count for price quotes. If a listing's capacity is smaller than this, the actor re-quotes at the listing's maximum guest count and flags the change on the record (requestedAdults, effectiveAdults, adultsReducedToFitCapacity).",
            "default": 2
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "ISO 4217 currency code for all prices (USD, EUR, GBP, TRY, ...). Prices are returned in THIS currency - not whatever the listing happens to use. Case and spacing do not matter: \"usd\" and \" try \" are normalized to USD and TRY, and every output record reports the NORMALIZED code that was actually used. Anything that is not a real 3-letter currency code - a country code like TR, a symbol like $, a name like \"US Dollar\", or an empty value - stops the run before any request is made and before anything is charged, instead of letting Airbnb price in a currency of its own choosing and labelling the result wrongly. Omit the field to use the default USD; there is no \"no currency\" mode.",
            "default": "USD"
          },
          "marketCountry": {
            "title": "Market country (proxy exit country)",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code the requests exit from (US, DE, TR, ...). Airbnb prices the market you ask from: the same listing, dates and guests can come back with a different nightly rate or an extra tax line depending on the country. Pinning it fixes the country dimension only - it does not make a price permanently reproducible, because prices are still live and the city, exit IP and Airbnb experiments are not pinned. Default US is arbitrary but fixed (Airbnb's largest single market): a fixed default beats a random one, but it is NOT 'the real price' - set marketCountry to whichever market you actually want priced. Independent of Currency: marketCountry decides WHICH market's price, currency decides which money it is shown in. Leave empty only if you accept a random exit country and non-reproducible prices. If your own Proxy configuration already pins a country, that pin wins and is reported.",
            "default": "US"
          },
          "locale": {
            "title": "Locale",
            "type": "string",
            "description": "Language for localized strings (e.g. \"en\", \"de\", \"tr\", \"en-GB\"). It must be a language tag: a value that is not one at all - an empty string, null, or anything else that is not a language tag - stops the run before any request is made and before anything is charged, instead of being spent on a request that quietly asks Airbnb for the literal locale \"null\". Valid tags are passed through unchanged: no trimming, no case folding.",
            "default": "en"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy with residential groups is the default configuration.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}