# Get Event

Retrieve SpotHero event, destination, coordinates, and parking window by event ID.

- Platform: [SpotHero](https://docs.upscrape.com/docs/platforms/spothero)
- Capability ID: `spothero.event.get`
- Cost: 1 credit per request
- Maximum runtime: 15 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": {
    "event_id": 1292136
  },
  "capability": "spothero.event.get"
}'
```

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `event_id` | `integer` | Yes | Event identifier. |

### Example input

```json
{
  "event_id": 1292136
}
```

## 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
{
  "event": {
    "city": "Harrison",
    "destination_id": 1235,
    "destination_title": "Sports Illustrated Stadium",
    "ends": "2026-08-22T21:30:00-04:00",
    "event_id": 1292136,
    "latitude": 40.736844,
    "longitude": -74.150235,
    "parking_ends": "2026-08-22T22:30:00-04:00",
    "parking_starts": "2026-08-22T18:30:00-04:00",
    "starts": "2026-08-22T19:30:00-04:00",
    "title": "Chicago Fire FC at New York Red Bulls"
  },
  "scraped_at": "2026-08-30T12:44:34Z"
}
```
### Illustrative output fields

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

| Path | Observed type | Example |
| --- | --- | --- |
| `event` | `object` | 11 fields |
| `event.city` | `string` | Harrison |
| `event.destination_id` | `integer` | 1235 |
| `event.destination_title` | `string` | Sports Illustrated Stadium |
| `event.ends` | `string` | 2026-08-22T21:30:00-04:00 |
| `event.event_id` | `integer` | 1292136 |
| `event.latitude` | `number` | 40.736844 |
| `event.longitude` | `number` | -74.150235 |
| `event.parking_ends` | `string` | 2026-08-22T22:30:00-04:00 |
| `event.parking_starts` | `string` | 2026-08-22T18:30:00-04:00 |
| `event.starts` | `string` | 2026-08-22T19:30:00-04:00 |
| `event.title` | `string` | Chicago Fire FC at New York Red Bulls |
| `scraped_at` | `string` | 2026-08-30T12:44:34Z |

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