{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Real Estate & M&A Deal Sourcing Agent LIHTC, Wholesale, SMBs",
    "description": "Multi-source AI Deal Sourcing Agent chaining HUD LIHTC Year-15 Multifamily Properties, InvestorLift Wholesale Real Estate, and DealStream M&A Businesses for Sale. Computes ARV spreads, EBITDA multiples, AI Underwriting Memos, 90%+ sponsor/broker emails, and acquisition outreach.",
    "version": "0.0",
    "x-build-id": "w5cspsrKlbohEtSqt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/unique_dev~ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-unique_dev-ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs",
        "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/unique_dev~ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs/runs": {
      "post": {
        "operationId": "runs-sync-unique_dev-ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs",
        "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/unique_dev~ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs/run-sync": {
      "post": {
        "operationId": "run-sync-unique_dev-ai-real-estate-m-a-deal-sourcing-agent-lihtc-wholesale-smbs",
        "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": {
          "dealSources": {
            "title": "Enabled Deal Sourcing Engines",
            "type": "array",
            "description": "Multi-source acquisition engines to chain: 'hud_lihtc_year15' (Multifamily apartment complexes 50-300+ units entering Year-15 tax credit preservation/exit window 2025-2030), 'investorlift_wholesale' (Off-market distressed/wholesale residential & multifamily properties with Asking Price vs. ARV and gross spread $), and 'dealstream_ma' (Lower-middle-market operating businesses for sale with Asking Price, Cash Flow SDE/EBITDA, and valuation multiple).",
            "default": [
              "hud_lihtc_year15",
              "investorlift_wholesale",
              "dealstream_ma"
            ],
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "Target US States",
            "type": "array",
            "description": "2-letter US state codes to harvest and underwrite off-market real estate, Year-15 multifamily, and M&A business acquisition opportunities across (e.g., ['TX', 'FL', 'CA', 'GA', 'NC', 'OH']).",
            "default": [
              "TX",
              "FL",
              "CA",
              "GA",
              "NC",
              "OH"
            ],
            "items": {
              "type": "string"
            }
          },
          "buyerThesis": {
            "title": "Buyer Acquisition Thesis / Mandate",
            "type": "string",
            "description": "Your investment thesis, acquisition mandate, or financing offer used by the AI Deal Underwriting & Acquisition Outreach Generator to craft tailored principal-to-owner/broker LOI and acquisition inquiry emails.",
            "default": "Multifamily Acquisition, Value-Add Real Estate & Cash-Flowing SMB Roll-Up"
          },
          "openaiApiKey": {
            "title": "OpenAI API Key (Optional)",
            "type": "string",
            "description": "Optional OpenAI API key (gpt-4o-mini) to enhance AI underwriting memos and principal acquisition outreach emails. Leave empty to run our 100% deterministic, zero-cost AI Deal Underwriting & Outreach Engine."
          },
          "onlyNewDeals": {
            "title": "Delta Monitoring Mode (Only New Deals)",
            "type": "boolean",
            "description": "When enabled, persists seen deal deduplication keys and SHA-256 snapshots in Apify's named Key-Value Store ('DEAL-AGENT-STATE') across runs and outputs only newly discovered or updated deals for CRM / Make / n8n / Clay automations.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of unified, enriched real estate & M&A deals with AI underwriting memos and acquisition outreach to output in a single run (up to 10,000).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy configuration for multi-source deal discovery and 12-worker contact resolution.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}