ScavioScavio
ProductPricingDocs
Sign InGet Started
  1. Home
  2. Tutorials
  3. How to Score B2B Leads by Review Data
Tutorial

How to Score B2B Leads by Review Data

Score B2B leads using Google review data. Combine rating, review count, and review recency into a lead quality score for outreach prioritization.

Get Free API KeyAPI Docs

Google review data provides strong signals for B2B lead scoring. A business with many recent reviews and a moderate rating often needs help improving customer experience. A business with a high rating and steady review growth is a strong partnership prospect. This tutorial shows how to build a lead scoring system that uses Google review data to prioritize outreach. You will create a scoring model that combines rating, review count, and response patterns into a single quality score.

Prerequisites

  • Python 3.8+ installed
  • requests library installed
  • A Scavio API key from scavio.dev
  • A list of prospect businesses or categories to score

Walkthrough

Step 1: Fetch review data for businesses

Query Google Maps for businesses and extract review data for scoring.

Python
import os, requests, json

API_KEY = os.environ["SCAVIO_API_KEY"]

def get_businesses(query):
    resp = requests.post("https://api.scavio.dev/api/v1/search",
        headers={"x-api-key": API_KEY},
        json={"platform": "google", "query": query, "type": "maps"})
    return resp.json().get("local_results", [])

Step 2: Build the scoring model

Create a scoring function that weighs rating, review volume, and review quality.

Python
def score_lead(business):
    rating = float(business.get("rating", 0))
    reviews = int(business.get("reviews", 0))
    rating_score = max(0, (5 - rating) * 25)
    volume_score = min(reviews / 2, 100)
    combined = round(rating_score * 0.5 + volume_score * 0.5)
    return {
        "name": business.get("title", ""),
        "rating": rating,
        "reviews": reviews,
        "rating_score": round(rating_score),
        "volume_score": round(volume_score),
        "lead_score": combined,
        "priority": "high" if combined >= 60 else "medium" if combined >= 30 else "low",
    }

Step 3: Enrich scored leads

Add contact and website data to the top-scored leads.

Python
def enrich_scored_lead(lead):
    resp = requests.post("https://api.scavio.dev/api/v1/search",
        headers={"x-api-key": API_KEY},
        json={"platform": "google", "query": f"{lead['name']} contact website"})
    results = resp.json().get("organic_results", [])[:2]
    lead["website"] = results[0].get("link", "") if results else ""
    return lead

Step 4: Export scored leads

Save the scored and enriched leads for outreach prioritization.

Python
import csv

def export_scored(leads, filename):
    with open(filename, "w", newline="") as f:
        fields = ["name", "rating", "reviews", "lead_score", "priority", "website"]
        w = csv.DictWriter(f, fieldnames=fields, extrasaction="ignore")
        w.writeheader()
        w.writerows(leads)
    print(f"Exported {len(leads)} scored leads to {filename}")

Python Example

Python
import os, requests
API_KEY = os.environ["SCAVIO_API_KEY"]
resp = requests.post("https://api.scavio.dev/api/v1/search",
    headers={"x-api-key": API_KEY},
    json={"platform": "google", "query": "restaurants in Denver CO", "type": "maps"})
for b in resp.json().get("local_results", [])[:5]:
    r = float(b.get("rating", 0))
    score = round((5 - r) * 25 * 0.5 + min(int(b.get("reviews",0))/2, 100) * 0.5)
    print(f"{b['title']}: score={score}, rating={r}")

JavaScript Example

JavaScript
const H = {"x-api-key": process.env.SCAVIO_API_KEY, "Content-Type": "application/json"};
const r = await fetch("https://api.scavio.dev/api/v1/search", {
  method: "POST", headers: H,
  body: JSON.stringify({platform: "google", query: "restaurants in Denver CO", type: "maps"})
});
(await r.json()).local_results.slice(0,5).forEach(b => {
  const score = Math.round((5-parseFloat(b.rating||0))*25*0.5 + Math.min(parseInt(b.reviews||0)/2,100)*0.5);
  console.log(b.title, "score:", score);
});

Expected Output

JSON
A scored list of B2B leads ranked by review-based quality score, with contact enrichment and priority classification for outreach campaigns.

Related Tutorials

  • How to Find Leads by Google Review Rating
  • How to Automate Lead Enrichment with Search API

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.

Python 3.8+ installed. requests library installed. A Scavio API key from scavio.dev. A list of prospect businesses or categories to score. 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

Best Of

Best Review-Based Lead Scoring Tools in 2026

Read more
Glossary

Review-Based Lead Qualification

Read more
Workflow

Lead Scoring via Search Enrichment Workflow

Read more
Glossary

Local Lead Data Source Hierarchy

Read more
Best Of

Best Google Reviews Data Extraction Tools in 2026

Read more
Use Case

Discover B2B Leads via Google Maps Data

Read more

Start Building

Score B2B leads using Google review data. Combine rating, review count, and review recency into a lead quality score for outreach prioritization.

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