{
  "openapi": "3.0.1",
  "info": {
    "title": "RealNex Scraper — Commercial Real Estate Listings",
    "description": "Scrape RealNex MarketPlace commercial real estate listings in the US and Canada: for sale, for lease, space wanted and investment wanted. Price, cap rate, size, lease rates and suites, property type, address, coordinates, photos, brochures and the listing brokerage and brokers. No login.",
    "version": "0.1",
    "x-build-id": "IYiJMOYVB9iDRz95L"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~realnex-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-realnex-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/yugenox~realnex-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-realnex-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/yugenox~realnex-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-realnex-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 states or Canadian provinces (\"TX\", \"Texas\", \"Ontario\"), cities with their state (\"Houston, TX\"), counties (\"Harris County, TX\"), ZIP codes (\"77002\") or a country (\"United States\"). All of them are searched together in one search. A city without a state is looked up and every city of that name is searched.",
            "items": {
              "type": "string"
            }
          },
          "listingTypes": {
            "title": "Listing types",
            "type": "array",
            "description": "Empty = for sale.",
            "items": {
              "type": "string",
              "enum": [
                "forSale",
                "forLease",
                "spaceWanted",
                "investmentWanted"
              ],
              "enumTitles": [
                "For sale",
                "For lease",
                "Space wanted (tenant requirements)",
                "Investment wanted (buyer requirements)"
              ]
            }
          },
          "propertyTypes": {
            "title": "Property types",
            "type": "array",
            "description": "Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "OFC",
                "IND",
                "SCR",
                "MF",
                "V",
                "MU",
                "HC",
                "LH",
                "SPEC",
                "AG",
                "BO",
                "SPORT",
                "RES"
              ],
              "enumTitles": [
                "Office",
                "Industrial",
                "Shopping center / retail",
                "Multi-family",
                "Vacant land",
                "Mixed use",
                "Health care",
                "Lodging & hospitality",
                "Special purpose / other",
                "Agricultural",
                "Business opportunity",
                "Sports & entertainment",
                "Residential - income"
              ]
            }
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of listings for the whole run. 0 = everything.",
            "default": 100
          },
          "includeBrokerContacts": {
            "title": "Include broker contacts",
            "type": "boolean",
            "description": "Add the listing brokers' published business contacts (name, work e-mail, phone) as shown on the listing. Turn off to keep only the brokerage name.",
            "default": true
          },
          "startUrls": {
            "title": "🔗 RealNex listing URLs",
            "type": "array",
            "description": "Optional: RealNex listing URLs (https://www.realnex.com/listings/4120029/…) or listing IDs.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "minPrice": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Asking price (for sale) or target price (investment wanted)."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this (USD). Leave empty for no limit."
          },
          "minCapRate": {
            "title": "Min cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings whose cap rate (%) is at least this value. Leave empty for no limit."
          },
          "maxCapRate": {
            "title": "Max cap rate (%)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings whose cap rate (%) is at most this value. Leave empty for no limit."
          },
          "minBuildingSize": {
            "title": "Min building size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings whose building size (SF) is at least this value. Leave empty for no limit."
          },
          "maxBuildingSize": {
            "title": "Max building size (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings whose building size (SF) is at most this value. Leave empty for no limit."
          },
          "minSpaceSize": {
            "title": "Min available space (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "For lease and space wanted."
          },
          "maxSpaceSize": {
            "title": "Max available space (SF)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings whose available space (SF) is at most this value. Leave empty for no limit."
          },
          "minLeaseRate": {
            "title": "Min lease rate ($/SF/yr)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings whose lease rate ($/SF/yr) is at least this value. Leave empty for no limit."
          },
          "maxLeaseRate": {
            "title": "Max lease rate ($/SF/yr)",
            "minimum": 0,
            "type": "number",
            "description": "Only listings whose lease rate ($/SF/yr) is at most this value. Leave empty for no limit."
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Words to look for in the listings, e.g. \"drive-thru\", \"cold storage\".",
            "items": {
              "type": "string"
            }
          },
          "updatedWithinDays": {
            "title": "Updated within (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Only listings updated in the last N days. Empty = any time."
          },
          "includeUnpriced": {
            "title": "Include unpriced listings",
            "type": "boolean",
            "description": "Keep listings whose price is not published (\"call for price\"). They pass any price filter, so turn this off when you filter by price and want priced listings only.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "updated",
              "price-asc",
              "price-desc",
              "size-desc",
              "size-asc",
              "space-desc",
              "cap-rate-desc",
              "units-desc",
              "city"
            ],
            "type": "string",
            "description": "Order of the results.",
            "default": "updated"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is the default and comes with every Apify plan. If RealNex refuses datacenter IPs for a while, the run switches to residential proxies when your account has them.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}