# 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 -X POST https://data.upscrape.com/execute \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"address":"1901 W Madison St","event_url":"https://www.parkwhiz.com/p/united-center-parking/1000-w-madison-st-chicago-il-60612/?event_id=2814805/"},"capability":"parkwhiz.smart-lookup"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `address` | `string` | Yes | Parking lot address for fuzzy matching (e.g. '1901 W Madison St') |
| `event_id` | `integer` | No | ParkWhiz event ID (alternative to event_url) |
| `event_url` | `string` | No | ParkWhiz event page URL (e.g. https://www.parkwhiz.com/p/united-center-parking/.../?event_id=2814805/) |
| `location_id` | `integer` | No | ParkWhiz location ID for exact match (optional, skips address resolution) |

### Example input

```json
{
  "address": "1901 W Madison St",
  "event_url": "https://www.parkwhiz.com/p/united-center-parking/1000-w-madison-st-chicago-il-60612/?event_id=2814805/"
}
```

## Response

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

No committed sample output is available for this capability.


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

See [jobs and results](https://docs.upscrape.com/docs/api/jobs), [errors and retries](https://docs.upscrape.com/docs/api/errors), and [idempotency](https://docs.upscrape.com/docs/api/idempotency).

## Machine-readable contract

- [Capability OpenAPI 3.1](https://docs.upscrape.com/docs/platforms/parkwhiz/parkwhiz.smart-lookup/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/parkwhiz/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/parkwhiz/capabilities/parkwhiz.smart-lookup/llm.md)
