Skip to content
Browsabledocs
Staging API reference · Requests use https://api-ingress-worker-staging.browsable-staging.workers.dev
Documentation Google Maps area search
Markdown ↗
Google Maps APIs

Google Maps area search

Search Google Maps for businesses near a specific latitude/longitude. Useful for exhaustive geographic coverage where IP-based location guessing would be unreliable.

POST/v1/googlemaps/area
Authenticate every request

Send Authorization: Bearer YOUR_API_KEY. Get an API key →

Parameters

Send these fields in a flat JSON body. Add _run to choose execution options.

Provide at least one of: location; latitude + longitude.

querystringRequired

Search query (e.g. 'dentists', 'coffee shops'). Combined with latitude/longitude to search a specific area. Minimum length: 1. Maximum length: 500.

locationstringOptional

City, neighbourhood or address to search around. Coordinates are optional advanced inputs. Minimum length: 1. Maximum length: 500.

limitintegerOptional

Maximum results to return. Defaults to 100. Preferred name; maxResults remains supported. Default: 100. Minimum: 1. Maximum: 500.

Advanced & compatibility inputs 4
latitudenumberOptional

Center latitude (-90 to 90). Minimum: -90. Maximum: 90.

longitudenumberOptional

Center longitude (-180 to 180). Minimum: -180. Maximum: 180.

maxResultsintegerOptional

Maximum results to return. Defaults to 100. You can also use limit. Default: 100. Minimum: 1. Maximum: 500.

zoomnumberOptional

Map zoom level (3 to 21). Higher values search a tighter area. Defaults to 14 (~city block scale). Default: 14. Minimum: 3. Maximum: 21.

Response

Every response describes a run. Read result once run_status is succeeded.

run_id
The run to track. Keep it when contacting support.
run_status
Queued, running, waiting for sign-in, succeeded, or failed. Check this even after an HTTP 200.
status_url
Poll this URL while the run is pending. Keep the same run instead of starting another request.
result
The endpoint’s returned data. The example is illustrative; actual fields may be empty or unavailable.
error
On failure, inspect its code, message, retryable and action fields.
View the complete output schema
JSON
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "results",
    "count"
  ],
  "properties": {
    "count": {
      "type": "number"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "rating",
          "reviewsCount",
          "category",
          "address",
          "description",
          "status",
          "hours",
          "link",
          "placeId",
          "latitude",
          "longitude"
        ],
        "properties": {
          "link": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hours": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "rating": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "placeId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewsCount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}
View a polled run response
JSON
{
  "run_id": "00000000-0000-4000-8000-000000000001",
  "task_key": "googlemaps-area",
  "task_name": "Google Maps area search",
  "run_status": "succeeded",
  "status_url": "/v1/runs/00000000-0000-4000-8000-000000000001",
  "result": {
    "count": 1,
    "results": [
      {
        "link": "https://example.com/item-1",
        "name": "Stylish Shoreditch Loft with Balcony",
        "hours": "sample",
        "rating": 4.91,
        "status": "sample",
        "address": "sample",
        "placeId": "id-1",
        "category": "sample",
        "latitude": 51.5074,
        "longitude": -0.1278,
        "description": "Sample description 1",
        "reviewsCount": 1
      }
    ]
  },
  "error": null
}

Errors & retries

  • 400Fix the fields listed in errors before retrying.
  • 428Connect the requested website account using the returned sign-in link.
  • 429Wait for the duration in Retry-After.
  • 5xxRetry transient failures with backoff. Keep the request ID.

A failed run has its own error inside the response. Retry it only when error.retryable is true.

Validation, pagination and recovery →

More examples

Async request with polling
RUN=$(curl -s -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/googlemaps/area" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"London","location":"Brooklyn, NY"}')

RUN_ID=$(echo "$RUN" | jq -er '.run_id // empty') || { echo "$RUN" >&2; exit 1; }
POLL_DELAY=3

while true; do
  RESULT=$(curl -s -H "Authorization: Bearer YOUR_API_KEY" "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/runs/$RUN_ID")
  STATUS=$(echo "$RESULT" | jq -r '.run_status')
  if [[ "$STATUS" =~ ^(succeeded|failed|errored|cancelled|canceled|expired)$ ]]; then
    echo "$RESULT"
    break
  fi
  sleep "$(awk "BEGIN { print $POLL_DELAY * (0.9 + ($RANDOM % 21) / 100) }")"
  POLL_DELAY=$((POLL_DELAY < 30 ? POLL_DELAY * 2 : 30))
  [ "$POLL_DELAY" -gt 30 ] && POLL_DELAY=30
done
Wait-for-results request
curl -X POST "https://api-ingress-worker-staging.browsable-staging.workers.dev/v1/googlemaps/area" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"London","location":"Brooklyn, NY","_run":{"async":false}}'
Canonical & compatibility routes

You can also send the same JSON body to /v1/tasks/googlemaps-area/runs.