Local Rank Grid
local_rank_gridLocal rank grid: where one business shows on Google Maps for a keyword at every point of a grid around it (3x3, 5x5 or 7x7 points, 0.5, 1, 2 or 5 km apart), each point one Google Maps search made from that GPS point, 20 businesses deep. Find the business first with local_business_find. points answers every point (row 0 is north, col 0 west; north_km/east_km from the business): status ok or failed, position (its place in Google Maps' list there; null when it is not in the first 20 or the point failed), listed (how many businesses Google Maps showed), top (the first 5 there) and check_url (the same search on Google Maps). summary: points, answered, failed, found (points where it is listed), top3 (points where it is in the top 3, Google's map pack), top3_percent, average_position (where listed; null when listed nowhere), center_position, best_position, not_in_top_20, no_businesses. competitors: the businesses that most often show, with top3, listed, average_position and ahead_of_you counts. previous: the last saved grid of the same business and keyword, to compare. Matching is by Google's business id (cid, else place_id), never by name. Every grid is saved for the workspace: give run_id to re-open one free; give neither run_id nor keyword to list the saved grids (free). Price: measure false quotes the grid free (credits_to_measure = points x 5); a run costs 5 credits per point where Google Maps listed businesses; failed points and points with no business are free (accounting.credits_used says what was charged). max_credits caps it: a grid costing more is not run (PRICE_ABOVE_LIMIT). Source: DataForSEO Google Maps SERP, live.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "local_rank_grid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Points across and down: 3 (9 points, 45 credits), 5 (25, 125) or 7 (49, 245). | |
| run_id | No | Optional. A saved grid's id (lgr_...): re-open it free; no other argument is needed. | |
| country | No | Two-letter country of the business, such as US or GB (UK is read as GB). | US |
| keyword | No | What customers type into Google Maps, such as plumber or emergency plumber. | |
| measure | No | false: only quote the grid and its points, never charge. | |
| business | No | The business as local_business_find returned it: title and cid (or place_id), latitude and longitude are required; other fields are kept with the grid. | |
| language | No | Two-letter language code, such as en. | en |
| verbosity | No | concise: short summary of the answer; full: the whole answer. Only shapes the output. | |
| spacing_km | No | Kilometres between neighbouring points. | |
| max_credits | No | Optional. The most this call may charge. | |
| idempotency_key | No | Optional. A repeated identical call is answered again at no charge. |