v0 + MLS data
Add Live MLS Listings to a v0 Real Estate Site
Connect BC board MLS data to a site built with v0: where the key goes, the prompt to paste, a listing search, one-area pages and sold prices.

v0 builds web apps from a chat prompt. For an MLS site, the feed key goes into the project's Environment Variables, server code in the app reads it and asks the feed for listings, and the pages show the results. v0's docs say environment variables are encrypted and stored on Vercel, and that each one can be set for Production, Preview and Development. The v0 preview panel only sees variables set for Development.
Key takeaways
- Add the key in the Project menu, then Settings, then Environment Variables.
- Tick Development as well, or the v0 preview cannot see the key.
- Never give the key a NEXT_PUBLIC_ name: those are built into page code.
- Ask v0 to call the feed only from server code.
Public and private names
When your v0 app uses Next.js, any environment variable whose name starts with NEXT_PUBLIC_ is built into the code sent to browsers. Name the key SAIGE_MLS_API_KEY with no prefix, and keep every feed call in server code such as a route handler.
The steps for v0
Work through the pages in order. Each one ends with something you can check in v0 before moving on.
- Store the key: Store Your MLS API Key in v0
- Paste the build prompt: v0 Prompt to Build a Real Estate Site With MLS Listings
- Add listing search: MLS Listing Search Page in v0
- Limit to one neighbourhood: One-Neighbourhood MLS Site in v0: Kitsilano Example
- Add sold prices behind a sign-up: Sold Prices Behind a Sign-Up in v0
Before you start
You need access to the feed first. Send a request with the form on this page; our team contacts you, checks what your board allows, and sets up access. The general guide at MLS API for BC Real Estate Websites explains the data, and Board Rules for Showing MLS Data on Your Website lists what to settle with your board before launch.
Frequently asked questions
Can v0 build an MLS listing site?
Yes, with an MLS feed. v0 writes the pages and server code, and the feed supplies listings.
Why does the v0 preview show no listings?
The preview only sees environment variables set for Development. Edit the variable and tick Development.
Can I use different keys for testing and the live site?
Yes. v0's docs say the same variable can hold different values per environment.
Sources
Every claim on this page that could be checked against a primary source is linked below. Where something is not publicly documented by a vendor, the page says so rather than filling the gap with an estimate.
- External APIs (v0)
- RESO Web API (Real Estate Standards Organization (RESO))