About google-reviews
A skill that retrieves Google Maps ratings, review counts, rating distributions, and business details through a script using the DataForSEO API. It supports single-business lookups and batch searches for review checks and comparisons.
Key features
- 01Fetch ratings and review counts
- 02Return rating distributions and details
- 03Search one or multiple businesses
- 04JSON output and batch table
- 05Location-aware business lookup
Use cases
- 01Check a business's Google Maps reviews
- 02Compare ratings across businesses
- 03Collect review data for a report
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ openclaudia/ openclaudia-skills --skill google-reviewsAfter installing, type/google-reviewsin Claude Code to confirm it loaded.
Details
From the project READMEGoogle Reviews
Fetch Google Maps ratings, review counts, and rating distributions for any business using the DataForSEO API.
When to Use This Skill
Use this skill when the user:
- Asks to check Google reviews for a business
- Wants to compare ratings across multiple businesses
- Needs Google review counts for a report or analysis
- Asks about a business's Google Maps presence
- Wants to audit competitor reviews
Tool Location
Global tools directory: ~/.agents/tools/
- Script:
~/.agents/tools/fetch-google-reviews.js - Credentials (preferred):
AISA_ONE_API_KEYin environment variables — proxies through aisa.one - Credentials (fallback):
DATAFORSEO_LOGINandDATAFORSEO_PASSWORDin environment variables — direct to DataForSEO. The script auto-detects which one is set.
Usage
Single Business
cd ~/.agents/tools && node fetch-google-reviews.js "Business Name" "City,Province,Country"
Example:
cd ~/.agents/tools && node fetch-google-reviews.js "Trust Auto Sales" "Richmond,British Columbia,Canada"
Batch Mode
Create a JSON file with an array of businesses, then run:
cd ~/.agents/tools && node fetch-google-reviews.js --batch /path/to/businesses.json
JSON file format:
[
{"keyword": "Business One", "location": "Vancouver,British Columbia,Canada"},
{"keyword": "Business Two"}
]
keyword(required): Business name to searchlocation(optional): Defaults to "Richmond,British Columbia,Canada"
Output
Single Business (JSON)
{
"keyword": "Trust Auto Sales",
"title": "Trust Auto Sales",
"rating": 4.2,
"reviews": 677,
"rating_distribution": {"1": 117, "2": 7, "3": 3, "4": 19, "5": 531},
"address": "3691 Number 3 Rd, Richmond, BC V6X 2B8",
"category": "Car dealer",
"url": "https://trustauto.ca/"
}
Batch Mode
Prints a markdown table followed by full JSON:
| Business | Rating | Reviews | Address |
|----------|--------|---------|---------|
| Trust Auto Sales | 4.2 | 677 | 3691 Number 3 Rd, Richmond, BC V6X 2B8 |
Location Format
Use the DataForSEO location format: City,Province/State,Country
Examples:
Richmond,British Columbia,CanadaVancouver,British Columbia,CanadaToronto,Ontario,CanadaNew York,New York,United States
API Details
- Uses DataForSEO
business_data/google/my_business_info/liveendpoint - Routes through aisa.one proxy (
api.aisa.one/apis/v1/dataforseo/..., Bearer auth) whenAISA_ONE_API_KEYis set; falls back to directapi.dataforseo.com/v3/...(Basic auth) otherwise - Synchronous (returns results immediately)
- Returns first matching business for the keyword + location
- Batch mode adds 200ms delay between requests to avoid rate limits
Important Notes
- If
npm installhasn't been run yet:cd ~/.agents/tools && npm install - The script loads credentials from both local
.envand environment variables - DataForSEO charges per API call -- be mindful with large batches
Comments
Markdown supported