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 real estate site connected to a BC MLS feed

    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.

    Everything in this guide

    5 pages, grouped by what you are trying to do.

    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.

    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.

    MLS API for BC

    Put live MLS listings on the site you are building

    Saige is an approved MLS data vendor for Greater Vancouver REALTORS, Fraser Valley Real Estate Board, Chilliwack and District Real Estate Board and BC Northern Real Estate Board. Send a request and our team will contact you to check what your board allows and how to connect your builder.

    Call 604.401.4849