# Lookup Parking

Look up parking price and availability for a specific lot at a SpotHero event, matched by lot name or facility ID.

- Platform: [SpotHero](https://docs.upscrape.com/docs/platforms/spothero)
- Capability ID: `spothero.lookup`
- Cost: 1 credit per request
- Maximum runtime: 60 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":{"event_url":"https://spothero.com/events/united-center-events?id=2814805","lot":"United Center Parking"},"capability":"spothero.lookup"}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `event_id` | `integer` | No | SpotHero event ID (alternative to event_url). |
| `event_url` | `string` | No | SpotHero event page URL containing ?id=<event_id>. |
| `facility_id` | `integer` | No | SpotHero facility ID (bypasses name matching; alternative to lot). |
| `lot` | `string` | No | Parking lot name for fuzzy matching (required if facility_id is not set). |
| `start_time` | `string` | No | Override start time in ISO 8601 format; defaults to event parking window start. |

### Example input

```json
{
  "event_url": "https://spothero.com/events/united-center-events?id=2814805",
  "lot": "United Center Parking"
}
```

## 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/spothero/spothero.lookup/openapi.json)
- [Platform OpenAPI 3.1](https://upscrape.com/scrapers/spothero/openapi.json)
- [Focused coding-agent prompt](https://upscrape.com/scrapers/spothero/capabilities/spothero.lookup/llm.md)
