Skip to content

Read Events API

A read-only REST API that returns approved events from What’s Good. Each event includes its venue listing ID and its custom field values.

Base URL https://whatsgoodapi.up.railway.app/v1
Format JSON, UTF-8
Auth API key in the X-API-Key header

Send the API key in the X-API-Key header on every request:

Terminal window
curl https://whatsgoodapi.up.railway.app/v1/events \
-H "X-API-Key: wg_live_YOUR_KEY"
  • Keys are read-only, and each key is limited to one account’s events.
  • Keys are accepted only in the header, never in the URL.
  • Keep keys on the server. Don’t put them in browser JavaScript or commit them to a public repository.

Keys are issued by What’s Good. To request one, or to replace a key that may have leaked, contact dustin@whatsgood.city.

Method Path Returns
GET /v1/events A page of events
GET /v1/events/{id} One event
GET /v1/custom-fields Custom fields and their options

Returns events, oldest change first (sorted by updated_at, then id).

Parameter Type Default Description
updated_since ISO 8601 datetime none Only events created or changed after this time, whatever their dates.
status active | inactive | all active Use all to include removed events.
from ISO 8601 date or datetime none Only events with at least one date on or after this.
to ISO 8601 date or datetime none Only events with at least one date on or before this.
limit integer, 1–200 100 Page size.
cursor string none The next_cursor value from the previous page.

With no updated_since, from or to, the endpoint returns events that haven’t ended yet (upcoming or in progress).

{
"data": [ { "...": "event object" } ],
"next_cursor": "eyJ1IjoiMjAyNi0xMC0wMVQxNDowMDowMFoiLCJpIjoiNWYwYyJ9",
"has_more": true
}

Keep requesting with cursor=<next_cursor> until has_more is false.

Syncing changes: call GET /v1/events?updated_since=<last sync>&status=all. Create or update active events by id, and unpublish inactive ones. Use the largest updated_at received as the next updated_since, minus a few minutes of overlap.

Returns one event object, including inactive events. Returns 404 if the event doesn’t exist.

Returns the custom fields configured for the account, with every option, so the option IDs on events can be mapped to names.

{
"data": [
{
"key": "audience",
"label": "Audience",
"options": [
{ "id": 1, "parent": "Core Groups", "name": "Locals" },
{ "id": 2, "parent": "Core Groups", "name": "Visitors" },
{ "id": 101, "parent": "Lifestyle", "name": "Couples" }
]
},
{
"key": "event_category",
"label": "Event Category",
"options": [
{ "id": 21, "parent": "Music & Entertainment", "name": "Concerts" },
{ "id": 23, "parent": "Music & Entertainment", "name": "Live Bands & DJs" }
]
}
]
}

parent is the heading an option sits under, or null for fields with only one level. The field key is what appears in an event’s custom_fields object.

Custom fields are configured per account by What’s Good during setup to match the fields in your CRM or CMS, using your system’s own option IDs. So an event’s custom_fields values are the IDs your system already knows. To add or change a field, contact dustin@whatsgood.city.

Which fields exist depends on the account. Accounts with their own category lists have one field per list. Accounts on a What’s Good hosted calendar have tags and locations. Accounts that also use the Read Coupons API have their coupon fields in the same list. Treat the keys as data, not as a fixed set.

One record per event. An event that happens on several dates is one record, with every occurrence listed in wgOccurrences.

{
"id": "4821",
"status": "active",
"name": "Sunset Jazz at the Pier",
"description": "<p>Live jazz on the water every Friday this October. Bring a chair.</p>",
"timezone": "America/New_York",
"start": "2026-10-17T18:00:00",
"end": "2026-10-24T21:00:00",
"wgOccurrences": [
{ "id": "s_d80de3028c", "start": "2026-10-17T18:00:00", "end": "2026-10-17T21:00:00", "no_time": false, "src": "scrape:210" },
{ "id": "s_56f65607d2", "start": "2026-10-24T18:00:00", "end": "2026-10-24T21:00:00", "no_time": false, "src": "scrape:210" }
],
"venue": {
"listing_id": "4821",
"name": "Harbor Pier",
"address": "100 Harbor Dr, Example City, FL 00000"
},
"custom_fields": {
"audience": [1, 2, 101],
"event_category": [23]
},
"photos": [
"https://res.cloudinary.com/checkwhatsgood/image/upload/v1790000000/example-destination/photos/sunset-jazz.jpg"
],
"ai_generated_photos": [],
"web_url": "https://example.com/sunset-jazz",
"price": "$15",
"is_free": false,
"featured": false,
"phone": null,
"email": null,
"instagram_url": null,
"approved_at": "2026-09-30T14:12:05-04:00",
"updated_at": "2026-10-01T09:30:44-04:00"
}
Field Type Notes
id string The event’s ID in your account, as a string, e.g. "4821". Stable for the life of the event.
status active | inactive inactive means the event was removed and should be unpublished.
name string Event title.
description string (HTML) | null Basic formatting only: paragraphs, bold, italics, lists, links. null when the event has no description.
timezone string (IANA) The account’s time zone, e.g. America/New_York. Every event date and time is local to it.
start / end local datetime Start of the first occurrence and end of the last. end can be null.
wgOccurrences array Every occurrence of the event, in order. This is the source of truth for when the event happens. See Occurrences.
venue.listing_id string | null Venue listing ID. null if no listing is set.
venue.name / venue.address string | null Plain-text venue name and address.
custom_fields object Custom field key → array of option IDs. Which keys appear depends on the account; see /v1/custom-fields.
photos array of URLs Full https image URLs, main image first.
ai_generated_photos array of URLs AI-generated images, listed separately. Empty for accounts that don’t use them.
web_url string | null The event’s info page.
price string | null Price as entered, e.g. "$15" or "$10–$25".
is_free boolean
featured boolean Whether the event is marked as featured.
phone, email string | null Public contact details.
instagram_url string | null
approved_at datetime When the event was first approved.
updated_at datetime When the event last changed, including being deactivated.

wgOccurrences lists every date the event happens, one entry per session. Two shows on the same day are two entries; a three-day festival is three entries, one per day. A run of consecutive days (an exhibition, a seasonal attraction) is still one event; its wgOccurrences holds one entry per day, up to 366.

Field Type Notes
id string Stable ID of this occurrence.
start local datetime When the session starts.
end local datetime | null When the session ends. Can be after midnight (a 9 PM – 1 AM show ends the next day), never more than 24 hours after start. null if no end time is known.
no_time boolean true when the session has a date but no specific time. start is then midnight; show the date only.
src string Where the date came from. Informational; safe to ignore.

Event dates and times (start, end and everything in wgOccurrences) are local wall-clock times in the account’s timezone, written as ISO 8601 without an offset, e.g. 2026-10-17T18:00:00 is 6 PM in that time zone. Show them as-is; don’t convert them.

approved_at and updated_at are timestamps, ISO 8601 with a UTC offset, e.g. 2026-09-30T14:12:05-04:00. The updated_since, from and to parameters accept either form; a value without an offset is read in the account’s time zone.

New fields may be added, so ignore any that aren’t recognized.

Errors return JSON with a detail message, e.g. { "detail": "Invalid or missing API key" }.

Status Meaning
400 Invalid parameter
401 Missing, invalid or revoked API key
404 Event not found
429 Rate limit exceeded. Wait for the number of seconds in the Retry-After header
5xx Server error. Retry with backoff

Rate limit: 60 requests per minute per key.