# Get Parking Facility

Retrieve details for a ParkWhiz garage or parking lot by location ID.

- Platform: [ParkWhiz](https://docs.upscrape.com/docs/platforms/parkwhiz)
- Capability ID: `parkwhiz.facility.get`
- 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": {
    "location_id": 2504
  },
  "capability": "parkwhiz.facility.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `location_id` | `integer` | Yes | Location identifier. |

### Example input

```json
{
  "location_id": 2504
}
```

## 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
{
  "facility": {
    "address1": "113 N. Wells St.",
    "city": "Chicago",
    "country": "US",
    "currency": "USD",
    "entrances": [
      {
        "coordinates": [
          41.8837027231259,
          -87.63375874612393
        ]
      }
    ],
    "location_id": 2504,
    "name": "120 N Lasalle Garage - Valet",
    "postal_code": "60602",
    "site_url": "/p/chicago-parking/113-n-wells-st-2",
    "state": "IL"
  },
  "scraped_at": "2026-08-30T12:44:23Z"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `facility` | `object` | 10 fields |
| `facility.address1` | `string` | 113 N. Wells St. |
| `facility.city` | `string` | Chicago |
| `facility.country` | `string` | US |
| `facility.currency` | `string` | USD |
| `facility.entrances` | `array` | 1 items |
| `facility.location_id` | `integer` | 2504 |
| `facility.name` | `string` | 120 N Lasalle Garage - Valet |
| `facility.postal_code` | `string` | 60602 |
| `facility.site_url` | `string` | /p/chicago-parking/113-n-wells-st-2 |
| `facility.state` | `string` | IL |
| `scraped_at` | `string` | 2026-08-30T12:44:23Z |

## 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)
