Skip to content
SMB Listings, homeGet an API key

Recipes

Ask for deals in plain words, or send new listings to the tools you already use. Every recipe uses the same API key; endpoints and filters are in the API and MCP docs.

Just ask

Connect the MCP server to Claude, ChatGPT or Claude Code (setup: https://smblistings.ai/docs#connect-your-ai-tool), then ask in plain words. The assistant picks the tools and filters: search_listings (industry, business type, state, price, cash flow, revenue, price cuts, days on market, sort by multiple), new_listings, get_listing (with price history) and get_credits. Each tool call costs 1 credit; get_credits is free.

  • "Find HVAC businesses in Texas with at least $500K cash flow, cheapest multiple first, and flag any priced over 4x cash flow."
  • "Which plumbing or electrical businesses in Florida dropped their price in the last 7 days? Show the original and current asking price."
  • "Here's my buy box: home services in TX, OK or AR, $300K to $1.5M cash flow, under 4x, revenue over $1M. Screen this week's new listings and tell me which to review and why."
  • "Which listings in my buy box had a price cut this week?" (after you've given it your buy box in the conversation)
  • "Find dental practices that have been on the market at least 180 days and have had a price cut. Those sellers may be ready to negotiate."
  • "Show the price history of listing lst_3f9a0c1d2e4b5a67: when it was listed, every price change, and whether it was ever taken down and relisted."
  • "Compare asking multiples for landscaping businesses for sale in Georgia and North Carolina."
  • "Find SaaS businesses asking under $2M with at least $300K cash flow, and leave out any whose figures don't add up."
  • "What car washes and laundromats were listed in the last 7 days anywhere in the US?"
  • "How many credits do I have left?"

Answers link to each original listing, so you can read the full ad and contact the broker.

Google Sheets: new listings every morning

A Google Sheet that adds new listings matching your search once a day and skips ids already in the sheet. Each run is one search call: 1 credit, about 30 a month.

  1. In your sheet, open Extensions, then Apps Script, and paste the script below.
  2. In Project Settings, add a script property SMBLISTINGS_API_KEY with your API key (create one on the dashboard at https://smblistings.ai/dashboard).
  3. Set SEARCH to your buy box (any filter from GET /listings/search, see https://smblistings.ai/docs#rest-endpoints), then run installDailyTrigger once and approve access.
const SEARCH = { country: "US", state: "TX", businessType: "hvac", minCashFlow: 300000, sort: "newest", limit: 100 };
const COLUMNS = ["id", "title", "askingPrice", "cashFlow", "revenue", "location", "businessType", "daysOnMarket", "priceCutCount", "firstSeen", "url"];

function refreshListings() {
  const book = SpreadsheetApp.getActiveSpreadsheet();
  const sheet = book.getSheetByName("Listings") || book.insertSheet("Listings");
  if (sheet.getLastRow() === 0) sheet.appendRow(COLUMNS);
  const seen = new Set(sheet.getRange(1, 1, sheet.getLastRow(), 1).getValues().flat());

  const query = Object.keys(SEARCH).map((k) => k + "=" + encodeURIComponent(SEARCH[k])).join("&");
  const res = UrlFetchApp.fetch("https://smblistings.ai/api/v1/listings/search?" + query, {
    headers: { "x-api-key": PropertiesService.getScriptProperties().getProperty("SMBLISTINGS_API_KEY") },
  });
  const rows = JSON.parse(res.getContentText()).data
    .filter((l) => !seen.has(l.id))
    .map((l) => COLUMNS.map((c) => (l[c] == null ? "" : l[c])));
  if (rows.length) sheet.getRange(sheet.getLastRow() + 1, 1, rows.length, COLUMNS.length).setValues(rows);
}

function installDailyTrigger() {
  ScriptApp.newTrigger("refreshListings").timeBased().everyDays(1).atHour(7).create();
  refreshListings();
}

sort: "newest" returns the most recently listed first, so the day's new matches are always in the first page. For a price-cut watch, use a second sheet with priceCutWithinDays: 1 and add originalAskingPrice and priceCutPercent to COLUMNS.

Notion: listings into a database

A short script that adds new listings matching your search to a Notion database, deduped on our listing id. Run it daily from cron or a scheduled GitHub Action. Each run is one search call (1 credit); the Notion calls are free.

  1. Create a Notion database with these properties: Name (title), Listing ID (text), Asking price, Cash flow and Revenue (numbers), Location (text), Days on market (number), First seen (date) and URL (URL).
  2. Create an internal integration at notion.so/profile/integrations, copy its secret, and connect it to the database (the database's ••• menu, then Connections).
  3. Copy the database's data source id (database settings, then Manage data sources, then Copy data source ID).
  4. Save as notion-sync.mjs and run SMBLISTINGS_API_KEY=sl_... NOTION_TOKEN=ntn_... NOTION_DATA_SOURCE_ID=... node notion-sync.mjs (or bun notion-sync.mjs).
const SEARCH = new URLSearchParams({ country: "US", state: "TX", businessType: "hvac", minCashFlow: "300000", sort: "newest", limit: "100" });
const { SMBLISTINGS_API_KEY, NOTION_TOKEN, NOTION_DATA_SOURCE_ID } = process.env;

const notion = (path, body) =>
  fetch("https://api.notion.com/v1/" + path, {
    method: "POST",
    headers: { Authorization: "Bearer " + NOTION_TOKEN, "Notion-Version": "2025-09-03", "Content-Type": "application/json" },
    body: JSON.stringify(body),
  }).then((r) => (r.ok ? r.json() : r.text().then((t) => Promise.reject(new Error(t)))));

const res = await fetch("https://smblistings.ai/api/v1/listings/search?" + SEARCH, { headers: { "x-api-key": SMBLISTINGS_API_KEY } });
const { data } = await res.json();

const text = (s) => ({ rich_text: [{ text: { content: s ?? "" } }] });
let added = 0;
for (const l of data) {
  const found = await notion("data_sources/" + NOTION_DATA_SOURCE_ID + "/query", { filter: { property: "Listing ID", rich_text: { equals: l.id } }, page_size: 1 });
  if (found.results.length) continue;
  await notion("pages", {
    parent: { type: "data_source_id", data_source_id: NOTION_DATA_SOURCE_ID },
    properties: {
      Name: { title: [{ text: { content: l.title } }] },
      "Listing ID": text(l.id),
      "Asking price": { number: l.askingPrice },
      "Cash flow": { number: l.cashFlow },
      Revenue: { number: l.revenue },
      Location: text(l.location),
      "Days on market": { number: l.daysOnMarket },
      "First seen": { date: { start: l.firstSeen } },
      URL: { url: l.url },
    },
  });
  added++;
}
console.log("Added " + added + " listings");

Add a Status select (New, Reviewing, Passed) and the database becomes your deal pipeline: the script only ever adds rows, so your notes and statuses stay put.

Screen against your buy box

Write your criteria once, paste them into Claude or ChatGPT with the MCP server connected, and get a short list with reasons. Each search the assistant runs is 1 credit, so a weekly screen costs a handful.

My buy box:
- Industries: HVAC, plumbing, electrical, or other home services
- Location: Texas, Oklahoma or Arkansas
- Cash flow: $400K to $1.5M; asking price under 4x cash flow
- Revenue: over $1.5M
- Prefer: listings with a price cut, or on the market 90+ days

Use SMB Listings to find listings from the last 7 days that fit. For each one, give the asking
price, cash flow, multiple, days on market and any price cuts, say in one line why it's worth a
look, and link the original listing. Skip anything with quality flags on its figures, and list
the near misses separately with what they miss.

To run the same screen every Monday with Claude Code, save the prompt as buy-box.md and schedule:

claude -p "$(cat buy-box.md)" --allowedTools "mcp__smblistings" > screen-$(date +%F).md