Skip to content
ProspectAPIs

API reference / Events

List event cities

Written and maintained by The ProspectAPIs team

GET/v1/events/cities

GET /v1/events/cities is the ProspectAPIs operation listEventCities, in the Events group of the REST API. Every city GET /v1/events covers, with its slug, time zone and the platforms that cover it. Free. Launching soon: answers 503 until GET /pricing reports events available. Cost: Launching soon. Send your API key as a Bearer token in the Authorization header.

How this fits with the rest of the events API, with worked examples, is in the event discovery guide.

Parameters

This operation takes no path or query parameters.

Responses

Response codes of GET /v1/events/cities
StatusMeaning
200The city catalog.
401The API key is missing or invalid.
429Too many requests; retry after the window.
503Events are not available yet. Nothing is charged.

Every error answers with the same JSON body, an error string and sometimes a code; the errors page lists each status and when it happens. A per-key 429 carries Retry-After; see rate limits.

200 response fields

The city catalog.

Fields of the 200 response
FieldTypeDescription
data requiredarray of EventCity
data[].slug requiredstring
data[].name requiredstring
data[].timezone requiredstring
data[].platforms requiredarray of string: luma, partiful
count requiredinteger
Response headers
HeaderMeaning
RateLimit-LimitRequests this API key may make per minute.
RateLimit-RemainingRequests left in the current one-minute window.
RateLimit-ResetSeconds until the current window resets.

Code samples

Each sample sends the same request. Set PROSPECTAPIS_KEY in your environment first. Values come from the spec's examples; replace them with your own.

curl
curl https://api.prospectapis.com/v1/events/cities \
  -H "Authorization: Bearer $PROSPECTAPIS_KEY"
JavaScript (fetch)
const res = await fetch("https://api.prospectapis.com/v1/events/cities", {
  headers: { Authorization: `Bearer ${process.env.PROSPECTAPIS_KEY}` },
});
if (!res.ok) throw new Error(`${res.status}: ${(await res.json().catch(() => ({}))).error ?? res.statusText}`);
const data = await res.json();
console.log(data);
Python (requests)
import os, requests

res = requests.get(
    "https://api.prospectapis.com/v1/events/cities",
    headers={"Authorization": f"Bearer {os.environ['PROSPECTAPIS_KEY']}"},
    timeout=30,
)
res.raise_for_status()
data = res.json()
print(data)

Billing

Billing reserves before it serves: the call holds what it may cost, serves at most what that hold covers, and refunds the rest when the response closes. Any non-2xx answer refunds the whole hold, so a failed call costs nothing. The response reports your balance in X-Credits-Remaining.

The event discovery guide covers this area end to end. Previous operation: Search events in a city. Next operation: Get one event. Every operation, grouped by area, is on the API reference index.

Create a free account to get a key, then run the samples above with your own values.

Was this page helpful?