# PadMapper Geosearch

Returns the coordinates and geography of a place name, such as a city, address, or landmark.

- **Documentation:** [https://scrappa.co/docs/padmapper-api/padmapper_geosearch](https://scrappa.co/docs/padmapper-api/padmapper_geosearch)
- **API group:** PadMapper API
- **Endpoint:** `GET https://scrappa.co/api/padmapper/geosearch`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Free text: city, neighborhood, ZIP, address, or building name. |

## Example response

```json
{
    "data": {
        "status": "success",
        "matches": [
            {
                "lat": 43.6808138,
                "lng": -79.611774,
                "city": "Mississauga",
                "name": "Toronto Pearson International Airport",
                "state": "",
                "address": "6301 Silver Dart Drive",
                "country": "Canada",
                "zipcode": "L5P 1B2",
                "record_id": 689139198,
                "record_type": "address"
            },
            {
                "lat": 43.647491455078125,
                "lng": -79.38190460205078,
                "city": "Toronto",
                "name": "Toronto-Dominion Centre",
                "state": "",
                "address": "66 Wellington St W",
                "country": "Canada",
                "zipcode": "M5J 2N7",
                "record_id": 40213884,
                "record_type": "address"
            },
            {
                "lat": 43.7722674,
                "lng": -79.2571142,
                "city": "Scarborough",
                "name": "Toronto Public Library",
                "state": "",
                "address": "156 Borough Drive",
                "country": "Canada",
                "zipcode": "M1P 0B5",
                "record_id": 444369372,
                "record_type": "address"
            }
        ]
    },
    "meta": {
        "duration_ms": 640,
        "upstream_calls": 1,
        "endpoint_family": "geosearch"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing, building, agent, or city was not found. Rent reports exist for US cities only. This response is not billable. |
| 422 | Validation Error | A required public parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
