GateHopper Public API
Show GateHopper events on your own site or app. The API lists the public events on GateHopper with their dates, venues, ticket types and prices. You don't need an API key.
Organizers can also connect their own tools, such as a spreadsheet, CRM or reporting app, with the Organizer API: read-only access to their own events, order summaries and sales with an API key.
1. Overview
- Base URL:
https://api.gatehopper.com - Authentication: none for the public events endpoints in sections 2 to 8. The Organizer API needs an API key.
- Browsers: CORS is open to all origins, so you can call the public endpoints from a web page. Organizer API keys work only from a server.
- Format: JSON. Times are ISO 8601 in UTC, and each event has a
timezonefor showing local times. - What's included: events that are published and public. Draft, private and removed events never appear.
Every response has the same envelope: success, then either data or error, and a timestamp.
2. Quick Start
Fetch the next events in Vancouver:
curl "https://api.gatehopper.com/events?location=Vancouver&limit=10"Or from JavaScript, in a browser or Node:
const res = await fetch(
"https://api.gatehopper.com/events?" + new URLSearchParams({ location: "Vancouver", limit: "10" })
);
const { data } = await res.json();
for (const event of data.events) {
console.log(event.title, event.start_datetime, `https://gatehopper.com/events/${event.slug}`);
}3. List Events
GET/events
Events that are upcoming or under way, soonest first. Ticket types aren't included in the list: fetch the event for those.
Query parameters
All optional. An invalid value is ignored rather than rejected.
| Parameter | Type | Description |
|---|---|---|
event_phase | string | upcoming (not started), ongoing (under way) or all. Default all. Events that have ended are never listed. |
search | string | Text matched against the title and description, ignoring case. |
location | string | Text matched against the venue name, city and province, ignoring case. |
tags | string | Comma-separated, such as market,holiday. An event matches if it has any of them. |
price_min | number | Lowest min_ticket_price to include. |
price_max | number | Highest min_ticket_price to include. Use 0 for free events only. |
start_date_from | ISO 8601 | Only events starting at or after this time. |
start_date_to | ISO 8601 | Only events starting at or before this time. |
sort_by | string | start_datetime (default), created_at or title. |
sort_order | string | asc (default) or desc. |
limit | integer | Events per page. Default 48, maximum 200. |
offset | integer | Events to skip. Default 0. |
Response
{
"success": true,
"data": {
"events": [
{
"event_id": "f0ea282b-2635-4e23-b1e5-b27ddbea0822",
"slug": "our-best-to-you-handmade-market-saskatoon",
"title": "Our Best to You Handmade Market Saskatoon",
"description": "<p>Saskatoon's largest craft market...</p>",
"tags": ["market", "holiday"],
"start_datetime": "2026-11-20T16:00:00.000Z",
"end_datetime": "2026-11-22T23:00:00.000Z",
"timezone": "America/Regina",
"min_ticket_price": "4.00",
"currency": "CAD",
"featured_image_url": "https://images.gatehopper.com/.../cover.jpg",
"logo_url": null,
"event_phase": "ongoing",
"location": {
"location_id": "b1c7b993-af9f-4bc0-a95e-e3833fd502bb",
"name": "WTC Saskatoon at Prairieland Park - Hall E",
"address": {
"street1": "503 Ruth Street West",
"street2": "",
"city": "Saskatoon",
"state_province": "SK",
"postal_code": "S7K 4E4",
"country": "CA"
},
"coordinates": { "latitude": 52.098, "longitude": -106.678 }
},
"created_at": "2026-08-10T22:08:25.034Z"
}
],
"meta": { "total": 7, "limit": 10, "offset": 0, "has_more": false }
},
"timestamp": "2026-11-20T22:30:00.000Z"
}Event fields
| Field | Type | Description |
|---|---|---|
event_id | uuid | Stable ID for the event. |
slug | string | URL name. The event page is https://gatehopper.com/events/{slug}. |
title | string | |
description | string | null | The organizer's description, usually as sanitized HTML. Older events may hold plain text. |
tags | string[] | null | |
start_datetime / end_datetime | ISO 8601 | In UTC. |
timezone | string | IANA time zone of the event, such as America/Vancouver. Use it to show local times. |
min_ticket_price | string | null | Cheapest ticket as a decimal string, after any automatic promotion. "0.00" means free. |
currency | string | ISO 4217, such as CAD. |
featured_image_url | url | null | Cover image. |
logo_url | url | null | Event logo, if the organizer added one. |
event_phase | string | upcoming, ongoing or past. |
location | object | null | Venue: name, address and coordinates. null for events without a venue. |
created_at | ISO 8601 |
Paging through every event
meta.total counts every matching event, and meta.has_more says whether another page follows:
async function allEvents(params = {}) {
const events = [];
for (let offset = 0; ; offset += 200) {
const query = new URLSearchParams({ ...params, limit: "200", offset: String(offset) });
const { data } = await (await fetch("https://api.gatehopper.com/events?" + query)).json();
events.push(...data.events);
if (!data.meta.has_more) return events;
}
}4. Get an Event
GET/events/{event_id or slug}
One event, by its event_id or its slug. Events that have ended can still be fetched, so links you saved keep working. Returns 404 for an event that doesn't exist or isn't public.
curl "https://api.gatehopper.com/events/our-best-to-you-handmade-market-saskatoon"The response has every field from the list, plus:
| Field | Type | Description |
|---|---|---|
event_sessions | TicketType[] | The ticket types buyers can see. See Ticket types and availability below. |
vendor_id | uuid | The organizer's account ID. |
vendor_name | string | null | The organizer's name. |
resolved_external_links | object[] | The organizer's links, each with a label and url. |
date_time_details | string | null | Extra schedule information as sanitized HTML, such as daily opening hours. |
announcement | object | null | A notice currently shown on the event page, as { text }. |
ticket_terms | object | null | Terms buyers accept at checkout, or null if there are none. |
5. Ticket Types and Availability
Each entry in event_sessions is a ticket type buyers can choose. Hidden ticket types are never included.
{
"session_id": "f846e8dd-1f3f-4dbb-81a8-b89a2ef4dbc2",
"session_name": "General Admission (18-64)",
"session_description": "Come anytime! Valid Nov 20-22, 2026.",
"session_price": 8,
"promotion": {
"badge_label": "Early Bird 25% Off",
"price": 6,
"ends_at": null,
"combinable": false
},
"effective_sale_status": "on_sale",
"current_inventory": null,
"sale_start_datetime": "2026-09-08T18:00:00+00:00",
"sale_end_datetime": "2026-11-22T21:00:00+00:00",
"start_datetime": "2026-11-20T16:00:00+00:00",
"end_datetime": "2026-11-22T23:00:00+00:00",
"display_order": 1,
"slot_mode": "legacy",
"timeslots": [ ... ]
}| Field | Type | Description |
|---|---|---|
session_id | uuid | Stable ID for the ticket type. |
session_name | string | Such as General Admission. |
session_price | number | Price before any promotion. Fees and taxes are added at checkout. |
promotion | object | Only while an automatic promotion applies: badge_label, the promoted price and ends_at. |
effective_sale_status | string | Whether it can be bought now. See the table below. |
current_inventory | integer | null | Tickets left, or null when there's no limit. |
sale_start_datetime / sale_end_datetime | ISO 8601 | null | When sales open and close. |
start_datetime / end_datetime | ISO 8601 | null | When the ticket is valid. |
slot_mode | string | per_slot means buyers choose a timeslot, and each one in timeslots has its own sale_status and remaining. |
display_order | integer | The order the event page lists ticket types in. |
Sale status
Use effective_sale_status to decide whether to show a buy button. It already accounts for sale dates, sold-out tickets and the organizer's settings.
| Value | Meaning | |
|---|---|---|
on_sale | Can be bought now. | |
scheduled | Sales haven't opened yet. See sale_start_datetime. | |
sale_ended | Sales have closed. | |
sold_out | None left. | |
off_sale | Paused by the organizer. |
Other values, such as event_cancelled and event_ended, mean the ticket can't be bought. Treat any value other than on_sale as not available.
6. Linking to GateHopper
Tickets are bought on GateHopper. Send buyers to the event page, where they choose their tickets and check out:
https://gatehopper.com/events/{slug}Prices from the API don't include fees or taxes, which depend on the order and are shown at checkout. If you show a price, label it as a starting price, such as “From $4.00”.
7. Errors
Errors use the usual HTTP status codes, 404 for an unknown event and 5xx for a problem on our side, with a body like this:
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Event not found or not public"
},
"timestamp": "2026-11-20T22:30:01.124Z"
}Check error.code in your code. error.message is for people, and its wording can change. If you get a 5xx, wait and try again.
8. Good Practice
- Cache responses. Event details rarely change minute to minute. Refreshing every few minutes is plenty for a listing.
- Ignore fields you don't know. We add fields without changing the version. Fields not documented here are used by gatehopper.com and may change or disappear, so don't rely on them.
- Show organizer content safely.
description,date_time_detailsandticket_terms.textare HTML. We sanitize them, but run them through your own HTML sanitizer before putting them on your page. - Use the images as they are. Image URLs point at
images.gatehopper.comand can be used directly. - Keep usage reasonable. Heavy or abusive traffic may be limited without notice. Use of the API is subject to our Terms of Use, including the GateHopper API section.
9. OpenAPI Spec
The full API description is available as an OpenAPI 3.1 file. Load it into Postman or Insomnia, or use it to generate a client:
https://gatehopper.com/developers/openapi.json10. Organizer API
An organizer, or a developer they work with, can read the organization's own events, order summaries and sales from their own tools. Every endpoint is read-only: a key can't create, change, refund, check in or sell anything, and it only ever sees the organization that made it. Order summaries never include buyer names, emails or phone numbers.
Getting a key
- Ask GateHopper to turn on API access. It's off for every organization until our staff switch it on. Contact us to ask.
- An account admin creates the key in the organizer dashboard under Settings → API keys, choosing what it can read. Editors and viewers can't see keys, and GateHopper staff never create them, so only your team ever handles one.
- Copy it straight away. The key is shown once. We keep only a scrambled copy, so a lost key can't be shown again: revoke it and make another.
- Keys expire after 90 days. The organization's admins get an email 14 days and 1 day before, and the API keys page offers Make replacement with the same name and scopes. The old key keeps working until it expires or is revoked, so you can swap without a gap.
- Up to 10 active keys per organization. Use one per tool, so you can revoke one without breaking the others.
Keys and everything you read with them are covered by the GateHopper API section of our Terms of Use: keep keys secret, read only your own organization's data, stay within the rate limits, and handle the data lawfully.
Authentication
Send the key as a bearer token in the Authorization header. Production keys start with gh_live_; staging keys start with gh_test_, and each environment refuses the other's keys.
curl "https://api.gatehopper.com/v1/events?status=published&limit=50" \
-H "Authorization: Bearer gh_live_…"- Server-side only. Requests with an
Originheader, which browsers always send, are refused with403 browser_not_allowed. Never put a key in a web page, a browser extension or a mobile app. - Header only. A key in the query string is refused, so keys don't end up in URL logs.
- Keep it secret. Store it in an environment variable or a secrets manager, never in source control. If it might have leaked, revoke it on the API keys page: it stops working on the next request.
Scopes
A key reads only what its scopes allow. Choose the fewest your tool needs.
| Scope | What it can read | |
|---|---|---|
events:read | scope | The organization's events, drafts included, and each event's ticket types with how many have sold. |
orders:read | scope | Order summaries: number, status, amounts, ticket counts, payment method and times. Never buyer names, emails, phone numbers or addresses. |
reports:read | scope | Sales for each event: totals, and a breakdown by ticket type and by day. |
Endpoints
All under https://api.gatehopper.com.
| Endpoint | Scope | Description |
|---|---|---|
GET /v1/events | events:read | The organization's events, drafts included, newest start first. Filter with status: draft, published, cancelled or completed. |
GET /v1/events/{event_id} | events:read | One event, with its ticket_types. |
GET /v1/events/{event_id}/sales | reports:read | Sales for one event: summary, by_ticket_type and by_day (days in the event's time zone). |
GET /v1/orders | orders:read | Order summaries, newest first. Filter with event_id, status (pending, confirmed, cancelled or expired), and created_from / created_to (ISO 8601, inclusive). Complimentary orders are left out. |
GET /v1/orders/{order_id} | orders:read | One order summary, with tickets_by_type. |
Lists take page (from 1) and limit (default 50, at most 100), and return the items in data with paging in meta. A single event, order or sales report comes back as { "data": { … } }. Ignore fields you don't know: we add fields without changing the version.
An order list:
{
"data": [
{
"order_id": "6f1c2a8e-4b1d-4c55-9a0e-2f7f2d3c1b90",
"order_number": "K7QX4M2P",
"event_id": "f0ea282b-2635-4e23-b1e5-b27ddbea0822",
"status": "confirmed",
"currency": "CAD",
"subtotal": "24.00",
"discount": "0.00",
"fees": "2.10",
"taxes": "1.31",
"total": "27.41",
"ticket_count": 3,
"tickets_refunded": 0,
"payment_method": "card",
"checkout_type": "guest",
"created_at": "2026-11-20T18:04:11.000Z",
"updated_at": "2026-11-20T18:04:40.000Z"
}
],
"meta": { "total": 214, "page": 1, "limit": 50, "pages": 5, "has_more": true }
}Event fields
| Field | Type | Description |
|---|---|---|
event_id | uuid | |
slug | string | null | The public page is https://gatehopper.com/events/{slug} once the event is published. |
title | string | |
status | string | draft, published, cancelled or completed. |
phase | string | null | upcoming, ongoing or past. |
is_public | boolean | Whether the event is listed publicly. |
start_datetime / end_datetime | ISO 8601 | null | In UTC. |
timezone | string | null | IANA time zone, such as America/Vancouver. |
currency | string | null | ISO 4217, such as CAD. |
location_name | string | null | The venue's name. |
created_at / updated_at | ISO 8601 | null | |
ticket_types | object[] | Single event only. Each has ticket_type_id, name, price, currency, quantity (tickets on offer, or null when capacity is set per time slot) and sold. |
Order fields
Orders never carry the buyer's name, email, phone number or address, nor any payment card details.
| Field | Type | Description |
|---|---|---|
order_id | uuid | |
order_number | string | The number the buyer sees on their confirmation. |
event_id | uuid | null | |
status | string | pending, confirmed, cancelled or expired. |
subtotal / discount / fees / taxes / total | string | Amounts in currency as strings with two decimals, such as "27.41". |
ticket_count | integer | Tickets in the order. |
tickets_refunded | integer | How many of them were refunded. |
payment_method | string | null | |
checkout_type | string | logged_in or guest. |
created_at / updated_at | ISO 8601 | null | |
tickets_by_type | object[] | Single order only. Each has ticket_type_id, name, quantity and checked_in. |
Sales
Amounts are strings with two decimals. returns is the value of refunded tickets, and capacity is null when the event has no limit.
{
"data": {
"event_id": "f0ea282b-2635-4e23-b1e5-b27ddbea0822",
"currency": "CAD",
"timezone": "America/Regina",
"summary": {
"tickets_sold": 412, "tickets_refunded": 3, "checked_in": 288, "capacity": 600,
"gross_sales": "3296.00", "discounts": "120.00", "returns": "24.00", "net_sales": "3152.00",
"service_fees": "289.40", "taxes": "157.60", "total_sales": "3599.00"
},
"by_ticket_type": [
{
"ticket_type_id": "f846e8dd-1f3f-4dbb-81a8-b89a2ef4dbc2", "name": "General Admission",
"tickets_sold": 380, "tickets_refunded": 3,
"gross_sales": "3040.00", "discounts": "120.00", "returns": "24.00", "net_sales": "2896.00"
}
],
"by_day": [
{ "date": "2026-11-20", "tickets_sold": 140, "net_sales": "1072.00", "checked_in": 96, "capacity": 200 }
]
}
}Fetching every order for an event, pausing when rate limited:
// Node, a server job or a script: never a web page.
const headers = { Authorization: `Bearer ${process.env.GATEHOPPER_API_KEY}` };
async function allOrders(eventId) {
const orders = [];
for (let page = 1; ; page++) {
const query = new URLSearchParams({ event_id: eventId, limit: "100", page: String(page) });
const res = await fetch("https://api.gatehopper.com/v1/orders?" + query, { headers });
if (res.status === 429) {
await new Promise((r) => setTimeout(r, Number(res.headers.get("Retry-After") ?? 60) * 1000));
page--;
continue;
}
if (!res.ok) throw new Error((await res.json()).error.code);
const { data, meta } = await res.json();
orders.push(...data);
if (!meta.has_more) return orders;
}
}Rate limit
Each key may make 120 requests a minute. Past that you get 429 rate_limited with a Retry-After header giving the seconds to wait. Cache what you can, and page through lists rather than fetching each item.
Errors
{
"error": {
"code": "insufficient_scope",
"message": "This API key does not have the orders:read scope."
}
}| Code | Status | Meaning |
|---|---|---|
invalid_api_key | 401 | No key, a key in the wrong form, a key for the other environment, a key sent in the URL, or a revoked key. Also when GateHopper has turned API access off for the organization. |
api_key_expired | 401 | The key is more than 90 days old. Make a replacement. |
insufficient_scope | 403 | The key can't read this. Make a key with the scope it needs. |
browser_not_allowed | 403 | The request carried an Origin header, as browsers send. Call the API from a server. |
not_found | 404 | No such event or order in this organization. IDs from another organization, and IDs that aren't valid, get this too. |
invalid_request | 400 | A query parameter is invalid, such as a limit over 100, an unknown status, an event_id that isn't a UUID or a malformed date. |
rate_limited | 429 | More than 120 requests in a minute. Wait for the seconds in Retry-After, then retry. |
unavailable | 503 | We couldn't check the key or its limit just then. Wait and try again. |
internal_error | 500 | A problem on our side. Wait and try again. |
Check error.code in your code; error.message is for people and its wording can change. We watch for unusual use, such as a key called from a browser or from many networks at once, and may contact the organization about it.
11. Coming Next
We're looking at what the Organizer API does next, such as notifying your tools when an order comes in. Attendee lists aren't included yet because they hold buyers' personal details. If you'd use any of this, tell us what you'd build.