# Search Parking Facilities

Find ParkWhiz garages and parking lots near coordinates.

- Platform: [ParkWhiz](https://docs.upscrape.com/docs/platforms/parkwhiz)
- Capability ID: `parkwhiz.facilities.search`
- Cost: 1 credit per request
- Maximum runtime: 30 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "distance_miles": 0.5,
    "latitude": 41.881943,
    "longitude": -87.630976
  },
  "capability": "parkwhiz.facilities.search"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `distance_miles` | `number` | No | Distance miles supplied for this request. |
| `latitude` | `number` | Yes | Latitude supplied for this request. |
| `longitude` | `number` | Yes | Longitude supplied for this request. |

### Example input

```json
{
  "distance_miles": 0.5,
  "latitude": 41.881943,
  "longitude": -87.630976
}
```

## Response

Successful output is returned in `results[0].data`. Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This redacted fixture is an example, not a fixed response schema.

```json
{
  "facilities": [
    {
      "address1": "17 N Clark St",
      "city": "Chicago",
      "country": "US",
      "currency": "USD",
      "entrances": [
        {
          "coordinates": [
            41.882468335747035,
            -87.63081005623033
          ]
        }
      ],
      "location_id": 56097,
      "name": "70 W Madison",
      "postal_code": "60657",
      "site_url": "/p/chicago-parking/17-n-clark-st",
      "state": "IL"
    },
    {
      "address1": "11 S. LaSalle St.",
      "city": "Chicago",
      "country": "US",
      "currency": "USD",
      "entrances": [
        {
          "coordinates": [
            41.881595727958754,
            -87.63224612921478
          ]
        }
      ],
      "location_id": 8503,
      "name": "Residence Inn Chicago Downtown/Loop - Valet Kiosk",
      "postal_code": "60603",
      "site_url": "/p/chicago-parking/11-s-lasalle-st",
      "state": "IL"
    },
    {
      "address1": "122 W. Monroe St.",
      "city": "Chicago",
      "country": "US",
      "currency": "USD",
      "entrances": [
        {
          "coordinates": [
            41.8807336078693,
            -87.63175377622248
          ]
        }
      ],
      "location_id": 63898,
      "name": "Kimpton Gray Chicago - Valet Kiosk",
      "postal_code": "60603",
      "site_url": "/p/chicago-parking/122-w-monroe-st-2",
      "state": "IL"
    }
  ],
  "latitude": 41.881943,
  "longitude": -87.630976,
  "scraped_at": "2026-08-30T12:44:21Z"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `facilities` | `array` | 3 items |
| `facilities` | `array` | 3 items |
| `latitude` | `number` | 41.881943 |
| `longitude` | `number` | -87.630976 |
| `scraped_at` | `string` | 2026-08-30T12:44:21Z |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
