{
  "openapi": "3.0.1",
  "info": {
    "title": "Apartments.com Scraper: Rents, Units & Amenities",
    "description": "Scrape Apartments.com rentals by city, ZIP, neighborhood, map area, link or listing key, past 700 a search, no login. Get rent ranges, beds, phone and coordinates; add every floor plan and unit, fees, pet and parking policies, reviews and photos. JSON, CSV, Excel or API; pay per property.",
    "version": "0.1",
    "x-build-id": "q1uS4ZCWc8jJZDT9l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation_craft~apartments-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation_craft-apartments-com-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/automation_craft~apartments-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automation_craft-apartments-com-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/automation_craft~apartments-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automation_craft-apartments-com-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": {
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "US places as Apartments.com names them: \"Austin, TX\" (a city), \"78704\" (a ZIP code), \"Travis County, TX\" (a county), \"Downtown Austin, Austin, TX\" (a neighborhood), \"TX\" (a state), a street address (\"7655 N Ranch Road 620, Austin, TX 78726\": the property at it first, then the properties Apartments.com lists near it), or \"College: <name>, <City>, ST\", \"School: <name>, <City>, ST\", \"Military base: <name>, ST\". A place is searched only when Apartments.com has it exactly as written; otherwise a free row names the place the site offers instead.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Apartments.com links",
            "type": "array",
            "description": "Links copied from apartments.com: a search page (a city, ZIP, county, neighborhood or state page with its filters in the link, such as /austin-tx/2-bedrooms-pet-friendly-dog/) or a property page (/<name>/<key>/). A search link is searched only when it can be reproduced exactly; a map area link (with \"bb=\") is refused free: give its area in \"Bounding boxes\". A file of links at an https address is read too: a CSV file (by its content type or a .csv address) cell by cell, any other text file one link per line.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "propertyIds": {
            "title": "Listing keys",
            "type": "array",
            "description": "Apartments.com listing keys (the 7 letters and digits at the end of a property link, such as \"4v6169l\") or property links. Each is read from its property sheet; a key not on the site today is a free row. Search filters do not apply to properties looked up by key.",
            "items": {
              "type": "string"
            }
          },
          "propertiesDatasetId": {
            "title": "Dataset of property links",
            "type": "string",
            "description": "The id of an Apify dataset of your account whose rows hold property links or listing keys in \"url\", \"propertyUrl\", \"id\" or \"listingKey\" (for example the output of an earlier run). Up to 100,000 rows; each property is read like a listing key."
          },
          "boundingBoxes": {
            "title": "Bounding boxes",
            "type": "array",
            "description": "Map areas: each { \"north\": 30.30, \"south\": 30.25, \"east\": -97.72, \"west\": -97.76 } in the US (at most 10 degrees of latitude and 15 of longitude). Read past 700 properties by splitting the area into smaller boxes."
          },
          "polygons": {
            "title": "Polygons",
            "type": "array",
            "description": "Drawn areas: each a list of [latitude, longitude] points in the US (3 to 200; the last point joins the first), such as [[[30.30, -97.76], [30.30, -97.72], [30.25, -97.72]]]. Every property delivered lies inside its polygon."
          },
          "circles": {
            "title": "Circles",
            "type": "array",
            "description": "A point and a radius: each { \"latitude\": 30.2672, \"longitude\": -97.7431, \"radiusMiles\": 2 } (0.1 to 50 miles, in the US). Every property delivered lies within that distance of the point."
          },
          "radiusMiles": {
            "title": "Radius around each location (miles)",
            "minimum": 0.1,
            "maximum": 50,
            "type": "number",
            "description": "Search each location as a circle of this radius around its center (0.1 to 50 miles): the place's own properties and its neighbors' within the distance, each judged by its own coordinates."
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Any of these types (default all).",
            "items": {
              "type": "string",
              "enum": [
                "apartments",
                "houses",
                "condos",
                "townhomes"
              ],
              "enumTitles": [
                "Apartments",
                "Houses",
                "Condos",
                "Townhomes"
              ]
            }
          },
          "minRent": {
            "title": "Minimum rent (USD a month)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Monthly rent, as Apartments.com filters it."
          },
          "maxRent": {
            "title": "Maximum rent (USD a month)",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Monthly rent, as Apartments.com filters it."
          },
          "minBeds": {
            "title": "Minimum bedrooms",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1 to 4 (4 means 4 or more)."
          },
          "maxBeds": {
            "title": "Maximum bedrooms",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1 to 4 (4 means no upper limit)."
          },
          "minBaths": {
            "title": "Minimum bathrooms",
            "minimum": 1,
            "maximum": 3,
            "type": "integer",
            "description": "1 to 3 (3 means 3 or more)."
          },
          "minSqft": {
            "title": "Minimum square feet",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Unit size."
          },
          "maxSqft": {
            "title": "Maximum square feet",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Unit size."
          },
          "pets": {
            "title": "Pets",
            "enum": [
              "dogs",
              "cats",
              "dogs_and_cats",
              "any_pet"
            ],
            "type": "string",
            "description": "Only properties that allow these pets."
          },
          "amenities": {
            "title": "Amenities",
            "type": "array",
            "description": "Only properties with every one of these amenities (Apartments.com's own amenity filters).",
            "items": {
              "type": "string",
              "enum": [
                "washer_dryer",
                "dishwasher",
                "air_conditioning",
                "balcony",
                "fireplace",
                "furnished",
                "fitness_center",
                "pool",
                "playground",
                "parking",
                "wheelchair_accessible",
                "elevator",
                "washer_dryer_hookup",
                "laundry_facilities",
                "utilities_included",
                "lofts",
                "doorman",
                "gated",
                "concierge",
                "clubhouse",
                "controlled_access",
                "business_center",
                "garage",
                "waterfront",
                "pickleball_court"
              ],
              "enumTitles": [
                "In unit washer and dryer",
                "Dishwasher",
                "Air conditioning",
                "Balcony",
                "Fireplace",
                "Furnished",
                "Fitness center",
                "Pool",
                "Playground",
                "Parking",
                "Wheelchair accessible",
                "Elevator",
                "Washer and dryer hookup",
                "Laundry facilities",
                "Utilities included",
                "Lofts",
                "Doorman",
                "Gated",
                "Concierge",
                "Clubhouse",
                "Controlled access",
                "Business center",
                "Garage",
                "Waterfront",
                "Pickleball court"
              ]
            }
          },
          "listingFeatures": {
            "title": "Listing features",
            "type": "array",
            "description": "Only properties with every one of these Apartments.com listing features (for rent by owner, duplex, recent build, rooms for rent, accepting applications, under 50 units, virtual tours).",
            "items": {
              "type": "string",
              "enum": [
                "for_rent_by_owner",
                "duplex",
                "recent_build",
                "rooms_for_rent",
                "accepting_applications",
                "under_50_units",
                "virtual_tours"
              ],
              "enumTitles": [
                "For rent by owner",
                "Duplex",
                "Recent build",
                "Rooms for rent",
                "Accepting applications",
                "Under 50 units",
                "Virtual tours"
              ]
            }
          },
          "specialties": {
            "title": "Specialties",
            "type": "array",
            "description": "Apartments.com's own housing specialties (senior, student, corporate, short term, income restricted, luxury, cheap, rent specials, military).",
            "items": {
              "type": "string",
              "enum": [
                "senior_housing",
                "military",
                "student_housing",
                "corporate",
                "short_term",
                "income_restricted",
                "luxury",
                "cheap",
                "rent_specials"
              ],
              "enumTitles": [
                "Senior housing",
                "Military housing",
                "Student housing",
                "Corporate housing",
                "Short term",
                "Income restricted",
                "Luxury",
                "Cheap",
                "Rent specials"
              ]
            }
          },
          "minRating": {
            "title": "Minimum rating (stars)",
            "enum": [
              "4",
              "5"
            ],
            "type": "string",
            "description": "Only properties rated this many stars or more."
          },
          "moveInDate": {
            "title": "Move in date",
            "type": "string",
            "description": "Properties with a unit available by this date, written YYYY-MM-DD."
          },
          "newListingsOnly": {
            "title": "New listings only",
            "type": "boolean",
            "description": "Only listings Apartments.com marks as new."
          },
          "entirePlace": {
            "title": "Entire place only",
            "type": "boolean",
            "description": "Leave out rooms for rent in shared homes."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words Apartments.com matches in the listing (such as \"rooftop pool\")."
          },
          "sort": {
            "title": "Order",
            "enum": [
              "default",
              "rent_low_to_high",
              "rent_high_to_low",
              "recently_updated",
              "newest",
              "with_video",
              "with_3d_tour"
            ],
            "type": "string",
            "description": "The order of each search. Default: the site's own order (a default search that ends short of its count goes on in rent order for the properties it has not met)."
          },
          "maxItems": {
            "title": "Maximum properties",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Paid Property rows for the whole run (default 1,000). Status, coverage and summary rows are free and not counted."
          },
          "maxItemsPerSearch": {
            "title": "Maximum properties per search",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Paid Property rows per search (one location, link or area)."
          },
          "maxPagesPerSearch": {
            "title": "Maximum pages per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Search pages read per search (40 properties a page; box counts and the first page of each state an area lies in included; the pages that check a pasted link are not counted)."
          },
          "includeDetails": {
            "title": "Property details",
            "type": "boolean",
            "description": "A paid add-on: each property's full sheet with every floor plan and available unit (rent, beds, baths, square feet, unit number, available date, deposit, total monthly price), required and optional fees, pet and parking policies, lease terms, office hours, management company, year built, unit count, stories, rating, nearby schools, income limits, amenities by category, the sound score and a lead score. Charged per property whose sheet was read; it can be left off a row when its allowance is spent."
          },
          "includeReviews": {
            "title": "Reviews",
            "type": "boolean",
            "description": "A paid add-on: every resident review Apartments.com shows for the property (title, text, stars, date, verified renter, helpful votes, the author's name and the property's replies). Charged once per property that has reviews; it can be left off a row when its allowance is spent."
          },
          "includePhotos": {
            "title": "Photos",
            "type": "boolean",
            "description": "A paid add-on: every photo link of the property with its caption, plus its 3D tours and videos. Charged once per property that has photos. Apartments.com limits how many photo sets one network address may read, so on large runs some properties come without theirs (not charged, said on the row and the summary); it can also be left off a row when its allowance is spent."
          },
          "maxPhotos": {
            "title": "Photo links per property",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Keep at most this many photo links per row (the total stays in \"photoCount\")."
          },
          "includeRawData": {
            "title": "Include raw data",
            "type": "boolean",
            "description": "Add each row's answers as Apartments.com served them (the search result's structured data and, when read, the property sheet)."
          },
          "outputFields": {
            "title": "Output fields",
            "type": "array",
            "description": "Keep only these fields of the Property rows (such as \"rentMin\", \"phone\"); the row kind, id, link, search, scrapedAt and the paid add-ons with their status are always kept.",
            "items": {
              "type": "string"
            }
          },
          "omitEmptyFields": {
            "title": "Leave out empty fields",
            "type": "boolean",
            "description": "Drop fields that are empty (null, empty text or list) from the Property rows."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Requests on the wire at once (default 2; the Actor paces its calls politely whatever this is)."
          },
          "maxRetries": {
            "title": "Tries per request",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Attempts per request (default 4)."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional: your own proxy links. By default the Actor reads Apartments.com from the run's own address with Apify's datacenter proxy as the fallback; the Photos add-on reads through its own Apify datacenter connection (a residential one at most 20 times a run when refused). With Apify Proxy switched off it stays on its own address. Proxy groups and countries are refused."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}