{
  "openapi": "3.1.0",
  "info": {
    "title": "TerraFunded public land inventory",
    "version": "1.0.0",
    "description": "Read-only, no authentication. Live list of rural Texas land lots (10+ acres) sold by TerraFunded, LLC with owner financing: cash and financed prices, down payment, monthly payments at 10% fixed for 10 or 15 years, water, electricity, road access, flood zone, mineral rights and restrictions. An MCP server with the same data is at https://terrafunded.com/mcp.",
    "contact": { "name": "TerraFunded, LLC", "url": "https://terrafunded.com/contact" }
  },
  "servers": [{ "url": "https://terrafunded.com" }],
  "paths": {
    "/api/properties.json": {
      "get": {
        "summary": "List current and recently sold lots",
        "operationId": "listProperties",
        "responses": {
          "200": {
            "description": "Inventory feed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "generated_at": { "type": "string", "format": "date-time" },
                    "seller": { "type": "string" },
                    "count": { "type": "integer" },
                    "properties": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "short_id": { "type": "string" },
                          "title": { "type": "string" },
                          "status": { "type": "string", "enum": ["available", "reserved", "sold"] },
                          "url": { "type": "string", "format": "uri" },
                          "url_es": { "type": "string", "format": "uri" },
                          "county": { "type": "string" },
                          "state": { "type": "string" },
                          "acres": { "type": "number" },
                          "cash_price_usd": { "type": "number" },
                          "financed_price_usd": { "type": "number" },
                          "down_min_usd": { "type": "number" },
                          "monthly_at_min_down_usd": { "type": "number", "description": "15-year term" },
                          "monthly_at_min_down_short_term_usd": { "type": "number", "description": "10-year term" },
                          "rate_pct": { "type": "number", "description": "Annual rate as a fraction (0.1 = 10%)" },
                          "water": { "type": "string" },
                          "electricity": { "type": "string" },
                          "flood_zone": { "type": "string" },
                          "minerals": { "type": "string" },
                          "restrictions_details": { "type": "string" },
                          "description_en": { "type": "string" },
                          "description_es": { "type": "string" },
                          "video_url": { "type": "string", "format": "uri", "nullable": true, "description": "Public video tour of the lot on YouTube (@terrafunded): English audio with English and Spanish subtitles" },
                          "video_embed_url": { "type": "string", "format": "uri", "nullable": true },
                          "video_thumbnail_url": { "type": "string", "format": "uri", "nullable": true },
                          "video_published_at": { "type": "string", "format": "date-time", "nullable": true },
                          "video_duration_seconds": { "type": "integer", "nullable": true }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
