# Smart lookup

Find the cheapest parking option for a ParkWhiz event by event URL or ID and address, using exact location match or fuzzy address matching.

- Platform: [ParkWhiz](https://docs.upscrape.com/docs/platforms/parkwhiz)
- Capability ID: `parkwhiz.smart-lookup`
- 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 $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "address": "624 S. Missouri St.",
    "event_id": 1723404
  },
  "capability": "parkwhiz.smart-lookup"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | No | Parking lot address or name for fuzzy matching |
| `event_id` | `integer` | No | ParkWhiz event ID At least 1. |
| `event_url` | `string` | No | Canonical ParkWhiz event page URL |
| `location_id` | `integer` | No | ParkWhiz location ID for exact matching At least 1. |

### Example input

```json
{
  "address": "624 S. Missouri St.",
  "event_id": 1723404
}
```

## 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 example shows one response. Values and optional fields vary with the data available.

```json
{
  "address": "624 S. Missouri St.",
  "event_id": 1723404,
  "location_address": "624 S. Missouri St.",
  "location_id": 3094,
  "location_lat": 39.75938806910632,
  "location_lon": -86.16577148437501,
  "location_name": "Jobsite Supply Lot",
  "lookup_method": "exact",
  "parking_end": "2026-09-09T23:00:00",
  "parking_start": "2026-09-09T18:00:00",
  "pw_availability": "available",
  "pw_base_price": 0,
  "pw_total_price": 0,
  "quote_id": "ab808f06-8698-4106-b222-98d55135d920",
  "scraped_at": "2026-08-30T12:44:29Z",
  "site_url": "/p/indianapolis-parking/624-s-missouri-st"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `address` | `string` | 624 S. Missouri St. |
| `event_id` | `integer` | 1723404 |
| `location_address` | `string` | 624 S. Missouri St. |
| `location_id` | `integer` | 3094 |
| `location_lat` | `number` | 39.75938806910632 |
| `location_lon` | `number` | -86.16577148437501 |
| `location_name` | `string` | Jobsite Supply Lot |
| `lookup_method` | `string` | exact |
| `parking_end` | `string` | 2026-09-09T23:00:00 |
| `parking_start` | `string` | 2026-09-09T18:00:00 |
| `pw_availability` | `string` | available |
| `pw_base_price` | `integer` | 0 |
| `pw_total_price` | `integer` | 0 |
| `quote_id` | `string` | ab808f06-8698-4106-b222-98d55135d920 |
| `scraped_at` | `string` | 2026-08-30T12:44:29Z |
| `site_url` | `string` | /p/indianapolis-parking/624-s-missouri-st |

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