ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Build a Real Estate Prospecting Agent with Claude Code
Tutorial

How to Build a Real Estate Prospecting Agent with Claude Code

Two-day Claude Code build for a B2B real estate prospecting agent. SERP plus Reddit covers 80% of MLS at a fraction of the cost.

Get Free API KeyAPI Docs

Multiple subreddits posted the same build the same week: a B2B real estate AI search agent built in 2 days with Claude Code. This tutorial walks the build and explains why SERP + Reddit beats expensive MLS sponsorship for B2B sellers.

Prerequisites

  • Claude Code
  • Scavio API key
  • Markdown editor

Walkthrough

Step 1: Define the agent skill in markdown

Claude Code skill that takes city + practice area.

# brokerage-discovery.md

Given a city and brokerage type, return top 25 prospects with:
- Brokerage name and primary office
- Hiring signals from public job pages
- Recent news mentions
- Reddit thread sentiment (r/realtors, r/RealEstateAgents)

Use Scavio MCP for all retrieval.

Step 2: Wire Scavio MCP in Claude Code

Add MCP server config.

JSON
{
  "mcpServers": {
    "scavio": {
      "url": "https://mcp.scavio.dev/mcp",
      "headers": { "x-api-key": "${SCAVIO_API_KEY}" }
    }
  }
}

Step 3: Run discovery query

SERP for brokerages + recent hiring.

Python
import requests, os
API_KEY = os.environ['SCAVIO_API_KEY']

def brokerages(city):
    r = requests.post('https://api.scavio.dev/api/v1/search',
        headers={'x-api-key': API_KEY},
        json={'query': f'real estate brokerage {city} hiring 2026'}).json()
    return r.get('organic_results', [])[:25]

Step 4: Add Reddit sentiment layer

Threads about brokerages in the city.

Python
def reddit_signal(city):
    r = requests.post('https://api.scavio.dev/api/v1/reddit/search',
        headers={'x-api-key': API_KEY},
        json={'query': f'{city} brokerage'}).json()
    return r.get('posts', [])[:10]

Step 5: Compose the morning email digest

Daily 25-prospect brief with sentiment context.

Python
def digest(city):
    return {'prospects': brokerages(city), 'reddit': reddit_signal(city)}

Python Example

Python
import os, requests
API_KEY = os.environ['SCAVIO_API_KEY']
H = {'x-api-key': API_KEY}

def agent(city):
    s = requests.post('https://api.scavio.dev/api/v1/search', headers=H, json={'query': f'real estate brokerage {city}'}).json()
    r = requests.post('https://api.scavio.dev/api/v1/reddit/search', headers=H, json={'query': f'{city} broker'}).json()
    return {'prospects': s.get('organic_results', [])[:25], 'reddit': r.get('posts', [])[:10]}

print(agent('Austin TX'))

JavaScript Example

JavaScript
const H = { 'x-api-key': process.env.SCAVIO_API_KEY, 'Content-Type': 'application/json' };
export async function agent(city) {
  const [s, r] = await Promise.all([
    fetch('https://api.scavio.dev/api/v1/search', { method:'POST', headers:H, body: JSON.stringify({ query: `real estate brokerage ${city}` }) }).then(r => r.json()),
    fetch('https://api.scavio.dev/api/v1/reddit/search', { method:'POST', headers:H, body: JSON.stringify({ query: `${city} broker` }) }).then(r => r.json())
  ]);
  return { s, r };
}

Expected Output

JSON
25 brokerage prospects per city per morning, with Reddit sentiment context. Total cost: ~5 credits/run on Scavio.

Related Tutorials

  • How to Build a B2B Real Estate Lead Engine with Scavio
  • How to Build a Google Maps Lead List Without Scraping

Frequently Asked Questions

Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

Claude Code. Scavio API key. Markdown editor. A Scavio API key gives you 50 free credits on signup.

Yes. The free tier includes 50 credits on signup, which is more than enough to complete this tutorial and prototype a working solution.

Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

Related Resources

Solution

Real Estate B2B Prospecting Stack

Read more
Use Case

Real Estate B2B Search Agent

Read more
Use Case

Claude Code Rapid Agent Build (2-Day Pattern)

Read more
Best Of

Best APIs for Real Estate AI Agents in 2026

Read more
Best Of

Best Search API for Claude Code in 2026

Read more
Workflow

Real Estate B2B Lead Engine

Read more

Start Building

Two-day Claude Code build for a B2B real estate prospecting agent. SERP plus Reddit covers 80% of MLS at a fraction of the cost.

Get Free API KeyRead the Docs
ScavioScavio

Real-time search API for AI agents. Search every platform, not just Google.

Product

  • Features
  • Pricing
  • Dashboard
  • Affiliates

Developers

  • Documentation
  • API Reference
  • Quickstart
  • MCP Integration
  • Python SDK

Alternatives

  • Tavily Alternative
  • SerpAPI Alternative
  • Firecrawl Alternative
  • Exa Alternative

Tools

  • JSON Formatter
  • cURL to Code
  • Token Counter
  • All Tools

© 2026 Scavio. All rights reserved.

Featured on TAAFT
Terms of ServicePrivacy Policy