ZIP codes within a radius
zip_codes_within_radiusEvery US ZIP code whose centre lies within a radius of each of up to 50 places, nearest first, with its city, state, straight-line distance and population (people). A place is a US ZIP code, an address (looked up first) or a latitude/longitude point; the radius goes up to 100 miles. people_only leaves out ZIP codes where nobody lives: PO boxes, single buildings and businesses. Up to 500 ZIP codes are listed a place: count is the total and more says how many were left out. Costs $0.001 per place found, plus $0.001 for each different address looked up; places not found and failed calls are free. US ZIP codes only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"places": "<places>",
"radius": "<radius>"
},
"name": "zip_codes_within_radius"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Distance units: miles or kilometers. | mi |
| places | Yes | The places to list ZIP codes around. | |
| radius | Yes | The radius in units, up to 100 miles (160 km). A ZIP code is listed when its centre is inside the circle. | |
| people_only | No | Only ZIP codes where people live: leaves out PO box, single-building and business-only ZIP codes. |