Google reviews skill

Fetch Google review ratings and review counts for businesses via DataForSEO API.

by OpenClaudia·MIT license·★ 705 Stars on the repo·GitHub ↗

Use now

Files of Google reviews

OpenClaudia/main1 file shown
SKILL.md
Show the full text110 lines

Google 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_KEY in environment variables — proxies through aisa.one
  • Credentials (fallback): DATAFORSEO_LOGIN and DATAFORSEO_PASSWORD in 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 search
  • location (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,Canada
  • Vancouver,British Columbia,Canada
  • Toronto,Ontario,Canada
  • New York,New York,United States

API Details

  • Uses DataForSEO business_data/google/my_business_info/live endpoint
  • Routes through aisa.one proxy (api.aisa.one/apis/v1/dataforseo/..., Bearer auth) when AISA_ONE_API_KEY is set; falls back to direct api.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 install hasn't been run yet: cd ~/.agents/tools && npm install
  • The script loads credentials from both local .env and environment variables
  • DataForSEO charges per API call -- be mindful with large batches
1---
2name: google-reviews
3description: Fetch Google review ratings and review counts for businesses via DataForSEO API. Use when the user asks to check Google reviews, get review counts, compare business ratings, audit Google Maps presence, or analyze competitor reviews.
4---
5 
6# Google Reviews
7 
8Fetch Google Maps ratings, review counts, and rating distributions for any business using the DataForSEO API.
9 
10## When to Use This Skill
11 
12Use this skill when the user:
13 
14- Asks to check Google reviews for a business
15- Wants to compare ratings across multiple businesses
16- Needs Google review counts for a report or analysis
17- Asks about a business's Google Maps presence
18- Wants to audit competitor reviews
19 
20## Tool Location
21 
22Global tools directory: `~/.agents/tools/`
23 
24- Script: `~/.agents/tools/fetch-google-reviews.js`
25- Credentials (preferred): `AISA_ONE_API_KEY` in environment variables — proxies through aisa.one
26- Credentials (fallback): `DATAFORSEO_LOGIN` and `DATAFORSEO_PASSWORD` in environment variables — direct to DataForSEO. The script auto-detects which one is set.
27 
28## Usage
29 
30### Single Business
31 
32```bash
33cd ~/.agents/tools && node fetch-google-reviews.js "Business Name" "City,Province,Country"
34```
35 
36Example:
37```bash
38cd ~/.agents/tools && node fetch-google-reviews.js "Trust Auto Sales" "Richmond,British Columbia,Canada"
39```
40 
41### Batch Mode
42 
43Create a JSON file with an array of businesses, then run:
44 
45```bash
46cd ~/.agents/tools && node fetch-google-reviews.js --batch /path/to/businesses.json
47```
48 
49JSON file format:
50```json
51[
52 {"keyword": "Business One", "location": "Vancouver,British Columbia,Canada"},
53 {"keyword": "Business Two"}
54]
55```
56 
57- `keyword` (required): Business name to search
58- `location` (optional): Defaults to "Richmond,British Columbia,Canada"
59 
60## Output
61 
62### Single Business (JSON)
63 
64```json
65{
66 "keyword": "Trust Auto Sales",
67 "title": "Trust Auto Sales",
68 "rating": 4.2,
69 "reviews": 677,
70 "rating_distribution": {"1": 117, "2": 7, "3": 3, "4": 19, "5": 531},
71 "address": "3691 Number 3 Rd, Richmond, BC V6X 2B8",
72 "category": "Car dealer",
73 "url": "https://trustauto.ca/"
74}
75```
76 
77### Batch Mode
78 
79Prints a markdown table followed by full JSON:
80 
81```
82| Business | Rating | Reviews | Address |
83|----------|--------|---------|---------|
84| Trust Auto Sales | 4.2 | 677 | 3691 Number 3 Rd, Richmond, BC V6X 2B8 |
85```
86 
87## Location Format
88 
89Use the DataForSEO location format: `City,Province/State,Country`
90 
91Examples:
92- `Richmond,British Columbia,Canada`
93- `Vancouver,British Columbia,Canada`
94- `Toronto,Ontario,Canada`
95- `New York,New York,United States`
96 
97## API Details
98 
99- Uses DataForSEO `business_data/google/my_business_info/live` endpoint
100- Routes through aisa.one proxy (`api.aisa.one/apis/v1/dataforseo/...`, Bearer auth) when `AISA_ONE_API_KEY` is set; falls back to direct `api.dataforseo.com/v3/...` (Basic auth) otherwise
101- Synchronous (returns results immediately)
102- Returns first matching business for the keyword + location
103- Batch mode adds 200ms delay between requests to avoid rate limits
104 
105## Important Notes
106 
107- If `npm install` hasn't been run yet: `cd ~/.agents/tools && npm install`
108- The script loads credentials from both local `.env` and environment variables
109- DataForSEO charges per API call -- be mindful with large batches
110 

Discussion