Pinball Map events feed
Pinball Map lists upcoming events alongside the venues on its map. The site publishes its tournaments for Pinball Map to pick up at:
GET /api/v1/pinball-map/events
It needs no sign-in or API key, and returns every event in one response, with
no pages to walk. The records use the column names of Pinball Map’s own
events table, inside the same {"events": [...]} wrapper their events API
uses, so each one can be saved straight onto an event of theirs.
What is in the feed
A tournament is listed when all of these hold:
- It is approved. Drafts, events awaiting review, rejected events, and cancelled events are left out.
- Its venue has a Pinball Map ID. Pinball Map lists public places, so this is what keeps an event at someone’s home from putting their address on a public map. See Venues for setting the ID.
- It started no more than two days ago. Pinball Map keeps showing an event for two days after it starts when it does not know the viewer’s local date, and the feed holds on to events for the same window.
Events are sorted soonest first.
An example
{
"events": [
{
"id": 42,
"name": "Spooky Flips",
"long_desc": "Bring your costume.",
"external_link": "https://oregonpinball.org/tournaments/spooky-flips-2026-11-09",
"category": "League of Oregon Pinball",
"event_type": "Tournament",
"start_date": "2026-11-09",
"end_date": "2026-11-09",
"location_id": 1234,
"external_location_name": "Example Arcade",
"address": "123 Main St, Portland, OR, 97201",
"latitude": 45.5152,
"longitude": -122.6784,
"created_at": "2026-10-20T18:04:11Z",
"updated_at": "2026-10-28T02:15:40Z"
}
]
}
Fields
| Field | What it holds |
|---|---|
id |
The tournament’s ID on this site. Stable for the life of the event, so it is the key to match on between imports. |
name |
The tournament’s name. |
long_desc |
The tournament’s description, as entered. null when there isn’t one. |
external_link |
The tournament’s page on this site. |
category |
The organization’s name, from Site settings. |
event_type |
Always Tournament. |
start_date |
The day the tournament is held, as YYYY-MM-DD in its own timezone. An evening event in Portland stays on its local date even though it is already the next day in UTC. |
end_date |
The same as start_date, since tournaments run on a single day. |
location_id |
The venue’s Pinball Map ID, so the event attaches to the venue Pinball Map already has. Always set. |
external_location_name |
The venue’s name on this site. |
address |
Street, city, state, and postal code, comma separated, matching how Pinball Map writes a venue’s address. Blank parts are skipped. |
latitude, longitude |
The venue’s coordinates, or null when the venue has none. |
created_at, updated_at |
When the tournament was created and last changed, in UTC. |
Pinball Map’s other event columns are not sent. region_id is Pinball Map’s
to work out from the venue, and the IFPA columns (ifpa_tournament_id and
ifpa_calendar_id) and category_no have nothing on this site to fill them.
Importing the feed
-
Match on
id. Pinball Map’seventstable has no column for another site’s ID, so an importer needs one, much as it keepsifpa_tournament_idfor IFPA events. Without it, an import can only add events, never update them. - Read a missing event as removed. An event drops out of the feed when it is cancelled, unapproved, or moved to a venue without a Pinball Map ID, so an event that was in the last import and is not in this one should be taken down. The two-day window above means an event is never dropped before it has happened, wherever it is.
- Fetch it whole. There are no pages, so one request is the complete picture. That is what makes reading a missing event as removed safe: no event can go missing because a page failed or shifted mid-import.