SpotHero Event Facilities
spothero.event-facilities
List the parking around an event, with each lot's price, availability and walking distance to the venue.
At a glance
- Endpoint ID
spothero.event-facilities- Price
- 1 credit per call; failed calls are free
- Runs for up to
- 30 seconds
Request
Send the endpoint ID as capability and its fields as input. Set UPSCRAPE_API_KEY to your key first.
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 '{ "capability": "spothero.event-facilities", "input": { "event_id": 1418307 }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "spothero.event-facilities", "input": { "event_id": 1418307 }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "spothero.event-facilities", "input": { "event_id": 1418307 }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
Input
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
event_id |
integer | one of | The event's SpotHero ID, as an alternative to the URL. | 1418307 |
event_url |
string | one of | The event's SpotHero page, with ?id= in it. | |
cursor |
string | no | Pass next_cursor from the last response to get the next page. |
Response
A finished call answers with HTTP 200; the data is in results[0].data, and billing.credits_charged is what it cost. A call still running after the wait answers 202: see jobs and results.
This is results[0].data from a real run:
{ "venue_lat": 41.881027831537345, "venue_lon": -87.67415378888552, "facilities": [ { "title": "United Center Official Parking - Lots M, R, T, W, B & Malcolm X College Garage Only", "address": "1901 West Madison Street", "available": true, "base_price": 28, "facility_id": 14021, "facility_type": "lot", "lat": 41.88068100000001, "lon": -87.674053, "navigation_tip": "Please review the official United Center SpotHero lots and addresses below. Your parking reservation is valid for Lots M, R, T, W, B & Malc…", "operator": "United Center (SP+) Parking", "rating_average": 4.7, "rating_count": 9905, "total_price": 30.66, "walking_meters": 1 }, { "title": "1724 W Washington Blvd. (Admin Office 110 N Paulina) - Lot", "address": "1724 West Washington Boulevard", "available": true, "base_price": 18, "facility_id": 41370, "facility_type": "lot", "lat": 41.8833141, "lon": -87.6704318, "navigation_tip": "Enter this location at 1724 W Washington Blvd, Chicago, IL 60612. This is the Admin Office 110 N Paulina Lot, operated by Chicago Parking S…", "operator": "Chicago Parking Solutions LLC", "rating_average": 4.8, "rating_count": 944, "total_price": 19.58, "walking_meters": 516 } ]}
Fields
| Field | Type | What it is | Example |
|---|---|---|---|
facilities[].title |
string | The name as SpotHero shows it. | United Center Official Parking - Lots M, R, T, W, B & Malcolm X… |
facilities[].address |
string | The parking facility's street address. | 1901 West Madison Street |
facilities[].total_price |
number | The price with fees. | 30.66 |
facilities[].base_price |
integer | The price before fees. | 28 |
facilities[].available |
boolean | Whether a space can be booked for the time asked. | true |
facilities[].walking_meters |
integer | The walk from the facility to the destination, in metres. | 1 |
facilities[].rating_average |
number | The facility's average star rating. | 4.7 |
facilities[].operator |
string | The company that runs the facility. | United Center (SP+) Parking |
facilities[].facility_type |
string | The kind of facility, such as a lot or garage. | lot |
facilities[].facility_id |
integer | SpotHero's ID for the facility. | 14,021 |
facilities[].lat |
number | The facility's latitude. | 41.88 |
facilities[].lon |
number | The facility's longitude. | -87.67 |
facilities[].navigation_tip |
string | The facility's directions for drivers. | Please review the official United Center SpotHero lots and addr… |
facilities[].rating_count |
integer | How many ratings the facility has. | 9905 |
facilities |
array | The parking facilities. | 50 records |
venue_lat |
number | The venue's latitude. | 41.88 |
venue_lon |
number | The venue's longitude. | -87.67 |
If a call fails
A failed call costs nothing. The response carries an error.code you can branch on; Errors and retries lists every code and which ones to retry.
Other SpotHero endpoints
Something missing or unclear? Ask the team that builds the SpotHero endpoints.