{
  "openapi": "3.1.0",
  "info": {
    "title": "RealtyData API — North America Real Estate Listings, Valuation, Rent Estimate & Agent Data Gateway",
    "version": "1.0.0",
    "summary": "Real-time US & Canada MLS listings, property valuations (AVM), rent estimates, cap-rate dossiers, Redfin parcel data, and broker directories via clean /v1/* REST & MCP endpoints.",
    "description": "RealtyData API (`https://api.realtydataapi.com`) delivers normalized real-time North American real estate listings (for-sale, for-rent, sold), automated property valuations (AVM), monthly rent & gross cap-rate projections, 37-photo property comp dossiers, Redfin parcel & multi-unit building records, location autocomplete, and verified agent/broker directories with zero Zillow Bridge approval waiting. Pricing: **$1.00 = 10,000 Credits** (`2 Credits` per listing/agent item returned, `2 Credits` per autocomplete call, `10 Credits` per full property valuation detail; **0 Credits** charged on empty results or upstream errors).",
    "contact": {
      "name": "RealtyData API Engineering",
      "url": "https://realtydataapi.com",
      "email": "support@realtydataapi.com"
    }
  },
  "servers": [
    {
      "url": "https://api.realtydataapi.com",
      "description": "Production API Gateway (North America & Global Edge)"
    }
  ],
  "tags": [
    {
      "name": "Properties & MLS",
      "description": "Normalized US & Canada for-sale, for-rent, and sold listings plus 37-photo AVM & cap-rate property dossiers."
    },
    {
      "name": "Redfin Parcels",
      "description": "Streamlined Redfin parcel records, county APNs, HOA fees, and multi-unit condo/apartment building rollups."
    },
    {
      "name": "Locations",
      "description": "Low-latency ZIP code, city, neighborhood, school district, and street address autocomplete."
    },
    {
      "name": "Agents & Brokers",
      "description": "Active real estate agent and brokerage production directories by ZIP code or city."
    }
  ],
  "security": [
    {
      "ApiKeyHeader": []
    },
    {
      "BearerAuth": []
    }
  ],
  "components": {
    "securitySchemes": {
      "ApiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Your RealtyData API key (`rl_live_...`). Create one instantly with 12,000 free credits ($1.20) at https://realtydataapi.com/signup."
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Pass `Authorization: Bearer rl_live_...` or OAuth 2.1 `mcp_at_...` access token."
      }
    },
    "schemas": {
      "PropertyItem": {
        "type": "object",
        "properties": {
          "property_id": {
            "type": "string",
            "example": "8241233717"
          },
          "listing_id": {
            "type": "string",
            "example": "2994810221"
          },
          "mls_id": {
            "type": "string",
            "example": "ACT9841204"
          },
          "status": {
            "type": "string",
            "example": "for_sale"
          },
          "property_type": {
            "type": "string",
            "example": "single_family"
          },
          "formatted_address": {
            "type": "string",
            "example": "901 W 9th St, Austin, TX 78701"
          },
          "street": {
            "type": "string",
            "example": "901 W 9th St"
          },
          "city": {
            "type": "string",
            "example": "Austin"
          },
          "state_code": {
            "type": "string",
            "example": "TX"
          },
          "postal_code": {
            "type": "string",
            "example": "78701"
          },
          "county": {
            "type": "string",
            "example": "Travis"
          },
          "latitude": {
            "type": "number",
            "example": 30.2729
          },
          "longitude": {
            "type": "number",
            "example": -97.7512
          },
          "list_price": {
            "type": "number",
            "example": 649000
          },
          "estimated_value": {
            "type": "number",
            "example": 668400
          },
          "instant_equity": {
            "type": "number",
            "example": 19400
          },
          "instant_equity_pct": {
            "type": "number",
            "example": 2.99
          },
          "price_per_sqft": {
            "type": "number",
            "example": 312
          },
          "estimated_monthly_rent": {
            "type": "number",
            "example": 3850
          },
          "gross_cap_rate_pct": {
            "type": "number",
            "example": 7.12
          },
          "beds": {
            "type": "number",
            "example": 4
          },
          "baths": {
            "type": "number",
            "example": 3
          },
          "sqft": {
            "type": "number",
            "example": 2080
          },
          "lot_sqft": {
            "type": "number",
            "example": 7840
          },
          "year_built": {
            "type": "integer",
            "example": 2019
          },
          "days_on_market": {
            "type": "integer",
            "example": 14
          },
          "hoa_fee_monthly": {
            "type": "number",
            "example": 45
          },
          "annual_property_tax": {
            "type": "number",
            "example": 8420
          },
          "school_rating_avg": {
            "type": "number",
            "example": 9
          },
          "primary_photo": {
            "type": "string",
            "example": "https://ap.rdcpix.com/sample-austin-78701.jpg"
          },
          "photo_count": {
            "type": "integer",
            "example": 37
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ResponseMeta": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "example": "req_rl_78701_9a2f"
          },
          "endpoint": {
            "type": "string",
            "example": "/v1/properties/search"
          },
          "credits_charged": {
            "type": "integer",
            "example": 40
          },
          "cached": {
            "type": "boolean",
            "example": true
          },
          "took_ms": {
            "type": "integer",
            "example": 28
          }
        }
      }
    }
  },
  "paths": {
    "/v1/properties/search": {
      "get": {
        "operationId": "searchProperties",
        "summary": "Search US & Canada MLS Listings (For-Sale, For-Rent, Sold)",
        "description": "Search residential and investment properties by 5-digit ZIP code (`78701`) or city/state (`Austin, TX`). Automatically normalizes bare 5-digit ZIPs (`postal_code:78701`) vs city strings (`city:Austin, TX`) across dual failover rails and computes AVM instant equity & gross cap-rate metrics. Cost: 2 Credits per property returned (0 Credits if empty).",
        "tags": [
          "Properties & MLS"
        ],
        "x-credits-per-request": "2 Credits / Property",
        "x-price-per-request": "$0.08–$0.20 / 1K properties",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "description": "5-digit US ZIP code (e.g. `78701`, `90210`) or `City, ST` (e.g. `Austin, TX`, `Miami, FL`).",
            "example": "78701",
            "schema": {
              "type": "string",
              "example": "78701"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "description": "Listing status filter: `for_sale` (default), `for_rent`, or `sold`.",
            "schema": {
              "type": "string",
              "enum": [
                "for_sale",
                "for_rent",
                "sold"
              ],
              "default": "for_sale"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (1-100).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum properties returned per page (1-50, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized MLS property listings with AVM valuation & cap-rate indicators.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 0
                    },
                    "provider": {
                      "type": "string",
                      "example": "https://realtydataapi.com"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "string",
                          "example": "78701"
                        },
                        "normalized_query": {
                          "type": "string",
                          "example": "postal_code:78701"
                        },
                        "listing_status": {
                          "type": "string",
                          "example": "for_sale"
                        },
                        "page": {
                          "type": "integer",
                          "example": 1
                        },
                        "limit": {
                          "type": "integer",
                          "example": 20
                        },
                        "count": {
                          "type": "integer",
                          "example": 20
                        },
                        "total_available": {
                          "type": "integer",
                          "example": 184
                        },
                        "properties": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PropertyItem"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                },
                "example": {
                  "code": 0,
                  "provider": "https://realtydataapi.com",
                  "status": "ok",
                  "data": {
                    "location": "78701",
                    "normalized_query": "postal_code:78701",
                    "listing_status": "for_sale",
                    "page": 1,
                    "limit": 20,
                    "count": 20,
                    "total_available": 184,
                    "properties": [
                      {
                        "property_id": "8241233717",
                        "mls_id": "ACT9841204",
                        "status": "for_sale",
                        "property_type": "single_family",
                        "formatted_address": "901 W 9th St, Austin, TX 78701",
                        "city": "Austin",
                        "state_code": "TX",
                        "postal_code": "78701",
                        "list_price": 649000,
                        "estimated_value": 668400,
                        "instant_equity": 19400,
                        "instant_equity_pct": 2.99,
                        "price_per_sqft": 312,
                        "estimated_monthly_rent": 3850,
                        "gross_cap_rate_pct": 7.12,
                        "beds": 4,
                        "baths": 3,
                        "sqft": 2080,
                        "lot_sqft": 7840,
                        "year_built": 2019,
                        "days_on_market": 14,
                        "hoa_fee_monthly": 45,
                        "annual_property_tax": 8420,
                        "school_rating_avg": 9,
                        "photo_count": 37
                      }
                    ]
                  },
                  "meta": {
                    "request_id": "req_rl_78701_9a2f",
                    "endpoint": "/v1/properties/search",
                    "credits_charged": 40,
                    "cached": true,
                    "took_ms": 28
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/properties/detail": {
      "get": {
        "operationId": "getPropertyDetail",
        "summary": "Get Full Property Valuation (AVM), 37-Photo Gallery, Tax/Deed History & Schools",
        "description": "Retrieve complete architectural and financial dossier for a specific `property_id` (or full Zillow/Realtor/Redfin URL), including up to 37 high-res photos, AVM valuation estimate, rent estimate, gross cap rate, HOA fees, county tax history, price history, and assigned school ratings. Cost: 10 Credits per property detail (0 Credits on 404).",
        "tags": [
          "Properties & MLS"
        ],
        "x-credits-per-request": "10 Credits / Detail",
        "x-price-per-request": "$0.40–$1.00 / 1K details",
        "parameters": [
          {
            "name": "property_id",
            "in": "query",
            "required": true,
            "description": "Numeric `property_id` (e.g. `8241233717`) returned by `/v1/properties/search` or a full property URL.",
            "example": "8241233717",
            "schema": {
              "type": "string",
              "example": "8241233717"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Complete property valuation, comps, tax history, school ratings, and 37+ photo dossier.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 0
                    },
                    "provider": {
                      "type": "string",
                      "example": "https://realtydataapi.com"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "property": {
                          "$ref": "#/components/schemas/PropertyItem"
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                },
                "example": {
                  "code": 0,
                  "provider": "https://realtydataapi.com",
                  "status": "ok",
                  "data": {
                    "property": {
                      "property_id": "8241233717",
                      "status": "for_sale",
                      "property_type": "condos",
                      "formatted_address": "70 Rainey St Apt 1201, Austin, TX 78701",
                      "list_price": 1325000,
                      "estimated_value": 1201308,
                      "estimated_monthly_rent": 4970,
                      "gross_cap_rate_pct": 4.5,
                      "price_per_sqft": 984,
                      "beds": 2,
                      "baths": 2,
                      "sqft": 1347,
                      "year_built": 2019,
                      "hoa_fee_monthly": 1185,
                      "annual_property_tax": 24190,
                      "school_rating_avg": 8.5,
                      "photo_count": 37
                    }
                  },
                  "meta": {
                    "request_id": "req_rl_det_8241",
                    "endpoint": "/v1/properties/detail",
                    "credits_charged": 10,
                    "cached": true,
                    "took_ms": 22
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/redfin/search": {
      "get": {
        "operationId": "searchRedfinParcels",
        "summary": "Search Redfin Parcel, MLS & Multi-Unit Building Inventory",
        "description": "Fetch streamlined Redfin parcel records (APN, HOA dues, MLS ID, DOM, lat/lng, price/sqft) and multi-unit condo/apartment building summaries without 1.2MB upstream payload bloat. Cost: 2 Credits per parcel returned.",
        "tags": [
          "Redfin Parcels"
        ],
        "x-credits-per-request": "2 Credits / Parcel",
        "x-price-per-request": "$0.08–$0.20 / 1K parcels",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "description": "5-digit ZIP code (`78701`) or `City, ST` (`Austin, TX`).",
            "example": "78701",
            "schema": {
              "type": "string",
              "example": "78701"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Number of Redfin parcels to return (1-50, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized Redfin parcels and multi-unit building summary.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 0
                    },
                    "provider": {
                      "type": "string",
                      "example": "https://realtydataapi.com"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "string",
                          "example": "78701"
                        },
                        "count": {
                          "type": "integer",
                          "example": 20
                        },
                        "total_parcels_matched": {
                          "type": "integer",
                          "example": 228
                        },
                        "properties": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/PropertyItem"
                          }
                        },
                        "buildings_summary": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                },
                "example": {
                  "code": 0,
                  "provider": "https://realtydataapi.com",
                  "status": "ok",
                  "data": {
                    "location": "78701",
                    "count": 5,
                    "total_parcels_matched": 228,
                    "properties": [
                      {
                        "property_id": "rf_144920183",
                        "mls_id": "2048192",
                        "formatted_address": "360 Nueces St #2804, Austin, TX 78701",
                        "list_price": 589000,
                        "price_per_sqft": 525,
                        "beds": 2,
                        "baths": 2,
                        "sqft": 1122,
                        "hoa_fee_monthly": 692,
                        "days_on_market": 19,
                        "latitude": 30.2669,
                        "longitude": -97.7498
                      }
                    ],
                    "buildings_summary": [
                      {
                        "building_id": "bld_360_nueces",
                        "name": "360 Condominiums",
                        "address": "360 Nueces St, Austin, TX 78701",
                        "active_units": 12
                      }
                    ]
                  },
                  "meta": {
                    "request_id": "req_rl_rf_78701",
                    "endpoint": "/v1/redfin/search",
                    "credits_charged": 10,
                    "cached": true,
                    "took_ms": 31
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/locations/autocomplete": {
      "get": {
        "operationId": "autocompleteRealEstateLocations",
        "summary": "Autocomplete Cities, ZIP Codes, Neighborhoods, Counties & Street Addresses",
        "description": "Resolve user search input (`78701`, `Austin`, `Beverly Hills`) into structured real estate boundaries with canonical `id` (`postal_code:78701` or `city:tx_austin`), coordinates, and area type. Cost: 2 Credits per call.",
        "tags": [
          "Locations"
        ],
        "x-credits-per-request": "2 Credits / Call",
        "x-price-per-request": "$0.08–$0.20 / 1K calls",
        "parameters": [
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "Partial or complete ZIP code, city, neighborhood, school district, or address.",
            "example": "Austin",
            "schema": {
              "type": "string",
              "example": "Austin"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum location suggestions to return (1-20, default 10).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Structured location suggestions with canonical search IDs.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 0
                    },
                    "provider": {
                      "type": "string",
                      "example": "https://realtydataapi.com"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "query": {
                          "type": "string",
                          "example": "Austin"
                        },
                        "count": {
                          "type": "integer",
                          "example": 5
                        },
                        "suggestions": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "example": "city:tx_austin"
                              },
                              "area_type": {
                                "type": "string",
                                "example": "city"
                              },
                              "label": {
                                "type": "string",
                                "example": "Austin, TX"
                              },
                              "city": {
                                "type": "string",
                                "example": "Austin"
                              },
                              "state_code": {
                                "type": "string",
                                "example": "TX"
                              },
                              "postal_code": {
                                "type": "string",
                                "example": "78701"
                              },
                              "latitude": {
                                "type": "number",
                                "example": 30.2672
                              },
                              "longitude": {
                                "type": "number",
                                "example": -97.7431
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                },
                "example": {
                  "code": 0,
                  "provider": "https://realtydataapi.com",
                  "status": "ok",
                  "data": {
                    "query": "Austin",
                    "count": 2,
                    "suggestions": [
                      {
                        "id": "city:tx_austin",
                        "area_type": "city",
                        "label": "Austin, TX",
                        "city": "Austin",
                        "state_code": "TX",
                        "country": "USA",
                        "latitude": 30.2672,
                        "longitude": -97.7431
                      },
                      {
                        "id": "postal_code:78701",
                        "area_type": "postal_code",
                        "label": "78701, Austin, TX",
                        "city": "Austin",
                        "state_code": "TX",
                        "postal_code": "78701",
                        "country": "USA",
                        "latitude": 30.2711,
                        "longitude": -97.7437
                      }
                    ]
                  },
                  "meta": {
                    "request_id": "req_rl_auto_aus",
                    "endpoint": "/v1/locations/autocomplete",
                    "credits_charged": 2,
                    "cached": true,
                    "took_ms": 19
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/agents/search": {
      "get": {
        "operationId": "searchRealEstateAgents",
        "summary": "Search Active Real Estate Agents, Brokers & Top Producers by ZIP or City",
        "description": "Query verified US real estate agents and brokerages by ZIP code or city, including active for-sale count, recent 12-month sold volume, price range, ratings, reviews, and brokerage contact info. Cost: 2 Credits per agent returned.",
        "tags": [
          "Agents & Brokers"
        ],
        "x-credits-per-request": "2 Credits / Agent",
        "x-price-per-request": "$0.08–$0.20 / 1K agents",
        "parameters": [
          {
            "name": "location",
            "in": "query",
            "required": true,
            "description": "5-digit US ZIP code (`78701`) or `City, ST` (`Austin, TX`).",
            "example": "78701",
            "schema": {
              "type": "string",
              "example": "78701"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "description": "Page number (1-50, default 1).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 1
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Agents per page (1-50, default 20).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 50,
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized real estate agent & brokerage directory records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "integer",
                      "example": 0
                    },
                    "provider": {
                      "type": "string",
                      "example": "https://realtydataapi.com"
                    },
                    "status": {
                      "type": "string",
                      "example": "ok"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "location": {
                          "type": "string",
                          "example": "78701"
                        },
                        "postal_code": {
                          "type": "string",
                          "example": "78701"
                        },
                        "page": {
                          "type": "integer",
                          "example": 1
                        },
                        "limit": {
                          "type": "integer",
                          "example": 20
                        },
                        "count": {
                          "type": "integer",
                          "example": 20
                        },
                        "agents": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "agent_id": {
                                "type": "string",
                                "example": "56b0c8f189a68901006d9b12"
                              },
                              "full_name": {
                                "type": "string",
                                "example": "Christopher Watters"
                              },
                              "title": {
                                "type": "string",
                                "example": "Broker / Team Lead"
                              },
                              "brokerage_name": {
                                "type": "string",
                                "example": "Watters International Realty"
                              },
                              "phone": {
                                "type": "string",
                                "example": "(512) 555-0194"
                              },
                              "rating": {
                                "type": "number",
                                "example": 5
                              },
                              "review_count": {
                                "type": "integer",
                                "example": 142
                              },
                              "for_sale_count": {
                                "type": "integer",
                                "example": 18
                              },
                              "recently_sold_count": {
                                "type": "integer",
                                "example": 64
                              }
                            }
                          }
                        }
                      }
                    },
                    "meta": {
                      "$ref": "#/components/schemas/ResponseMeta"
                    }
                  }
                },
                "example": {
                  "code": 0,
                  "provider": "https://realtydataapi.com",
                  "status": "ok",
                  "data": {
                    "location": "78701",
                    "postal_code": "78701",
                    "page": 1,
                    "limit": 20,
                    "count": 20,
                    "agents": [
                      {
                        "agent_id": "56b0c8f189a68901006d9b12",
                        "full_name": "Christopher Watters",
                        "title": "Broker / Team Lead",
                        "brokerage_name": "Watters International Realty",
                        "phone": "(512) 555-0194",
                        "rating": 5,
                        "review_count": 142,
                        "for_sale_count": 18,
                        "recently_sold_count": 64
                      }
                    ]
                  },
                  "meta": {
                    "request_id": "req_rl_agt_78701",
                    "endpoint": "/v1/agents/search",
                    "credits_charged": 40,
                    "cached": true,
                    "took_ms": 24
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}