{
  "openapi": "3.0.1",
  "info": {
    "title": "Airbnb Price Tracker - Prices, Availability, Alerts",
    "description": "Airbnb price tracker, no login: prices, fees and availability for your stays, by link or city search. Nightly price and availability calendars, host competitor sets (your rank, median, who undercut you), target-price and booking alerts to Slack, Discord, Teams, Telegram.",
    "version": "0.1",
    "x-build-id": "hfGOJ90SNuaWMrcvV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/akhil_rajesh~airbnb-price-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-akhil_rajesh-airbnb-price-tracker",
        "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/akhil_rajesh~airbnb-price-tracker/runs": {
      "post": {
        "operationId": "runs-sync-akhil_rajesh-airbnb-price-tracker",
        "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/akhil_rajesh~airbnb-price-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-akhil_rajesh-airbnb-price-tracker",
        "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": {
          "listings": {
            "title": "Airbnb listings",
            "type": "array",
            "description": "Links to listings (airbnb.com/rooms/<number>, any Airbnb country site) or bare listing numbers. A link with check_in and check_out in it is priced for those days too. Share links (abnb.me) and search pages aren't read: open the listing and copy its address.",
            "items": {
              "type": "string"
            }
          },
          "searches": {
            "title": "Search places",
            "type": "array",
            "description": "Cities, regions or neighbourhoods to search on Airbnb (Lisbon, Brooklyn NY, Lake Tahoe), one a line. Their listings, in Airbnb's order, are priced like the listings above, for the first stay asked for (or with no dates). A place Airbnb doesn't recognise is named in a free row, never priced.",
            "items": {
              "type": "string"
            }
          },
          "maxListingsPerSearch": {
            "title": "Listings per search",
            "minimum": 1,
            "maximum": 270,
            "type": "integer",
            "description": "How many of each search's listings are priced (Airbnb lists up to 270, 18 a page).",
            "default": 20
          },
          "refreshSearches": {
            "title": "Refresh searches",
            "type": "boolean",
            "description": "Airbnb's search order changes on every request, so a search keeps the listings of its first run (a fixed competitor set to track); new ones join only to make up Listings per search. Tick to search afresh this run and keep its listings from now on."
          },
          "myListings": {
            "title": "My listings (hosts: compare with competitors)",
            "type": "array",
            "description": "Your own listings, by link or number (up to 20). They are priced like the others, and for every stay or night each gets a comparison row against the other listings in the run (those above and the searched ones): your rank by price, the competitors' median, lowest and highest, how many are open, and the cheaper ones.",
            "items": {
              "type": "string"
            }
          },
          "includeCalendar": {
            "title": "Availability calendar",
            "type": "boolean",
            "description": "Add one row per listing with its next 12 months, night by night (open, check-in, check-out, minimum stay) and open nights over 30, 90 and 365 days. Tracked: later runs name the nights that got booked or blocked, and those that opened up. One result per listing."
          },
          "nightlyPrices": {
            "title": "Nightly prices (days ahead)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "Price every night from today for this many days: one row per night open for check-in, priced for that night's minimum stay (so a 3-night minimum is priced as 3 nights, with its price per night). Booked nights aren't priced, and aren't charged. 0 or empty for none."
          },
          "targetNightlyPrice": {
            "title": "Target price per night",
            "minimum": 0.01,
            "type": "number",
            "description": "Travellers: report a stay when its price per night comes down to this or under it (belowTarget, alerted), in the run's currency. Reported once each time it gets there."
          },
          "stays": {
            "title": "Stays (check-in to check-out)",
            "type": "array",
            "description": "Days to price every listing for, one stay a line: 2027-01-10 to 2027-01-14. Past days, check-outs before check-ins and stays over 365 nights are skipped with a note. With no stays and no weekends, the next 2 weekends are priced.",
            "items": {
              "type": "string"
            }
          },
          "nextWeekends": {
            "title": "Next weekends (Friday to Sunday)",
            "minimum": 0,
            "maximum": 26,
            "type": "integer",
            "description": "Also price the next N weekends, Friday check-in to Sunday check-out, counted from the run's day: a schedule always looks ahead. 0 or empty for none."
          },
          "adults": {
            "title": "Adults",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Adults (13 and over) in every stay. Airbnb prices some listings per guest.",
            "default": 2
          },
          "children": {
            "title": "Children",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Children (2 to 12).",
            "default": 0
          },
          "infants": {
            "title": "Infants",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Infants (under 2).",
            "default": 0
          },
          "pets": {
            "title": "Pets",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Pets. A listing that doesn't allow pets shows the stay as not available.",
            "default": 0
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "CAD",
              "AUD",
              "NZD",
              "JPY",
              "CHF",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "CZK",
              "HUF",
              "MXN",
              "BRL",
              "ARS",
              "CLP",
              "COP",
              "PEN",
              "INR",
              "IDR",
              "THB",
              "VND",
              "PHP",
              "MYR",
              "SGD",
              "HKD",
              "TWD",
              "KRW",
              "CNY",
              "ZAR",
              "AED",
              "SAR",
              "ILS",
              "TRY",
              "EGP",
              "MAD"
            ],
            "type": "string",
            "description": "The currency prices are shown in, as Airbnb converts them. The history is kept per currency, so changing it starts a new one.",
            "default": "USD"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "The most results a run returns (and charges): stays, calendars and comparisons. What is past it isn't read.",
            "default": 1000
          },
          "onlyChanges": {
            "title": "Only changes since the last run",
            "type": "boolean",
            "description": "Return (and charge) only stays with a change that counts since the last run, and each stay's first run. Stays without a change still update their history, free."
          },
          "changeTypes": {
            "title": "Changes that count",
            "type": "array",
            "description": "With Only changes on, the changes that return a row. Empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "priceDrop",
                "priceRise",
                "nowAvailable",
                "nowUnavailable",
                "discountStarted",
                "discountEnded",
                "listingRemoved",
                "belowTarget",
                "nightsClosed",
                "nightsOpened",
                "undercut"
              ],
              "enumTitles": [
                "Price drop",
                "Price rise",
                "Became available",
                "Booked or blocked",
                "Discount started",
                "Discount ended",
                "Listing removed",
                "At or under my target price",
                "Calendar: nights booked",
                "Calendar: nights opened",
                "A competitor got cheaper than me"
              ]
            }
          },
          "priceChangePercent": {
            "title": "Price change (%)",
            "minimum": 0.1,
            "maximum": 1000,
            "type": "number",
            "description": "The smallest move of a stay's total that counts as a price drop or rise, against the price last reported. Smaller moves add up until they pass it.",
            "default": 1
          },
          "includeHistory": {
            "title": "Price history in each row",
            "type": "boolean",
            "description": "Each row carries its stay's last 30 daily readings (total and availability).",
            "default": true
          },
          "alertWebhookUrl": {
            "title": "Alert webhook URL",
            "type": "string",
            "description": "Post each run's changes to Slack, Discord or Microsoft Teams (their incoming webhook URLs are recognised), or as JSON to any HTTPS URL (Zapier, Make, n8n). The first run posts one \"alerts are set up\" message; changes are posted from the next run on."
          },
          "telegramBotToken": {
            "title": "Telegram bot token (alerts to Telegram)",
            "type": "string",
            "description": "Your bot's token from @BotFather. Needs the chat id below."
          },
          "telegramChatId": {
            "title": "Telegram chat id",
            "type": "string",
            "description": "The chat the bot posts to: a number (-100... for groups and channels) or a public channel's @name. Add the bot to it first."
          },
          "alertChangeTypes": {
            "title": "Alert on",
            "type": "array",
            "description": "The changes alerts post. Empty for all but 'Discount ended'.",
            "items": {
              "type": "string",
              "enum": [
                "priceDrop",
                "priceRise",
                "nowAvailable",
                "nowUnavailable",
                "discountStarted",
                "discountEnded",
                "listingRemoved",
                "belowTarget",
                "nightsClosed",
                "nightsOpened",
                "undercut"
              ],
              "enumTitles": [
                "Price drop",
                "Price rise",
                "Became available",
                "Booked or blocked",
                "Discount started",
                "Discount ended",
                "Listing removed",
                "At or under my target price",
                "Calendar: nights booked",
                "Calendar: nights opened",
                "A competitor got cheaper than me"
              ]
            }
          },
          "historyName": {
            "title": "History name",
            "type": "string",
            "description": "The key-value store that keeps each stay's history (default airbnb-price-history). Runs and schedules with the same name share it; give a separate name to keep a history apart."
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Airbnb's listing pages answer Apify's servers directly. Residential and other proxies billed per GB aren't available."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}