Quickstart for developers

Prefer to write the code yourself? Here is your first search in four steps. Everything runs on practice homes until you go live.

  1. 1

    Sign up and get your practice keys

    Only you can do this

    Sign in with your email. Your practice keys are on the Keys page. The public key goes in web pages, the secret key stays on your server.

  2. 2

    Make your first search

    curl "https://idx.ruuster.com/v1/listings?city=Atlanta&state=GA&bedsMin=3" \
      -H "Authorization: Bearer $RUUSTER_SECRET_KEY"

    You get back listings, a total, and the MLS credit line each page must show.

  3. 3

    Use the SDK

    npm install @ruuster/idx
    
    import { createClient } from "@ruuster/idx";
    const idx = createClient({ secretKey: process.env.RUUSTER_SECRET_KEY });
    const result = await idx.search({ city: "Atlanta", state: "GA", bedsMin: 3 });
    if (result.ok) console.log(result.data.total, result.data.listings.length);
  4. 4

    Read the reference

    Every call, field and error, plus the rules each MLS sets for showing listings.