# 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 --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": {
    "event_id": 1292136,
    "facility_id": 102979
  },
  "capability": "spothero.lookup"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `event_id` | `integer` | No | SpotHero event ID (alternative to event_url). At least 1. |
| `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). At least 1. |
| `lot` | `string` | No | Parking lot name for fuzzy matching (required if facility_id is not set). |

### Example input

```json
{
  "event_id": 1292136,
  "facility_id": 102979
}
```

## 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": "355 Somerset Street",
  "availability": "available",
  "event_id": 1292136,
  "facility_id": 102979,
  "facility_type": "garage",
  "lat": 40.739937,
  "lon": -74.156181,
  "lot": "",
  "scraped_at": "2026-08-30T12:44:34Z",
  "sh_base": 60,
  "sh_total": 65.1,
  "start_time": "2026-08-22T18:30:00-04:00",
  "url": "https://spothero.com/checkout/102979",
  "walking_meters": 1447,
  "walking_seconds": 1186
}
```
### 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` | 355 Somerset Street |
| `availability` | `string` | available |
| `event_id` | `integer` | 1292136 |
| `facility_id` | `integer` | 102979 |
| `facility_type` | `string` | garage |
| `lat` | `number` | 40.739937 |
| `lon` | `number` | -74.156181 |
| `lot` | `string` |  |
| `scraped_at` | `string` | 2026-08-30T12:44:34Z |
| `sh_base` | `integer` | 60 |
| `sh_total` | `number` | 65.1 |
| `start_time` | `string` | 2026-08-22T18:30:00-04:00 |
| `url` | `string` | https://spothero.com/checkout/102979 |
| `walking_meters` | `integer` | 1447 |
| `walking_seconds` | `integer` | 1186 |

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