Bulk Ingest & Delta Sync

Import events into your own database once, then request only what changed on a schedule.

Use this guide when your application keeps its own copy of JamBase events instead of calling the API on every user request.

The process has two parts: an initial import of the events you need, and scheduled updates that use dateModifiedFrom to fetch changes, including cancellations and removals.

Quick reference

The settings most integrations need.

TopicGuidance
Events per requestperPage defaults to 40 and allows up to 100. Use perPage=100.
Number of pagesVaries with each run. Read pagination.totalPages from the response and continue until you reach it.
Refresh scheduleEvery 15 minutes to once a day. Twice a day works well for most applications.
CheckpointA UTC (RFC 3339) timestamp recorded when the run starts, before the first request.
OverlapSubtract 5 minutes from the checkpoint for the upcoming-events feed. Historical loops use 24 to 48 hours.
When to saveSave the new checkpoint only after every page has been fetched and applied.
Record keyUpsert on identifier (for example, jambase:12345678).
Status changesCancellations are updates to eventStatus. Removals arrive as rows with deletionStatus.

Initial import

Page through the events you need once and store each one.

Record the current UTC time before the first request. That timestamp becomes the checkpoint for your first scheduled update, so anything modified while the import runs is picked up next time.

checkpoint = now in UTC // capture BEFORE the first request
page = 1
repeat:
GET /v3/events?perPage=100&page={page}
upsert each event by identifier
stop when page >= pagination.totalPages
page = page + 1
save checkpoint // only after every page succeeded
  • Without date parameters, /v3/events returns upcoming and ongoing events. Past events require a separate, licensed historical import (see Historical data).
  • To limit the import, add filters such as geoCountryIso2, geoStateIso, geoMetroId, geoCityId, eventDateFrom / eventDateTo, or eventDataSource. Keep the same filters on every page and on later updates.
  • If you only follow a few artists, you can skip the full import and request /v3/artists/id/{source}:{id}?expandUpcomingEvents=true for each one instead.

Scheduled updates

On each run, request the events modified since your last checkpoint.

Choose a schedule

ScheduleTypical use
Every 15 to 60 minutesApps that show same-day changes, such as livestream finders
Twice a dayMost production apps, recommenders, and assistants
Once a dayPersonal projects, newsletters, low-volume aggregators

For a twice-daily update, run the job roughly every 12 hours (for example, 00:00 and 12:00 UTC). Each run starts from the checkpoint saved by the previous successful run, so a late or skipped run only makes the next one larger.

Run an update

runStart = now in UTC // becomes the next checkpoint
from = checkpoint minus 5 minutes // overlap
page = 1
repeat:
GET /v3/events?dateModifiedFrom={from}&perPage=100&page={page}
if removals.complete is false -> stop; do not save the checkpoint
(re-import and reconcile, see below)
for each row:
deletionStatus "deleted" or "trashed" -> delete it from your store
deletionStatus "merged" -> repoint it to mergedInto
no deletionStatus -> upsert by identifier (incl. eventStatus)
stop when page >= pagination.totalPages
page = page + 1
save checkpoint = runStart // only after every page succeeded

How many pages to expect

The number of pages depends on how many records changed since the checkpoint, not on the size of the catalog. Responses contain full event objects, and removal rows count toward perPage and pagination.totalItems. Updates filtered by artist or venue count only the removal rows that match the filter.

For example, if 2,350 rows changed since the last run, a request with perPage=100 reports pagination.totalPages: 24. A quiet period can return a single page. Each page is one request against your quota.

Checkpoint rules

  • Store the checkpoint in UTC and send it in RFC 3339 format. The dateModifiedFrom bound is inclusive.
  • Use the time the run started as the next checkpoint, not the time it finished.
  • Subtract 5 minutes when you send it. Records seen twice are harmless because you upsert.
  • Save the new checkpoint only after every page succeeds. If a run stops early, keep the previous checkpoint and run again.
  • To recover from missed runs, run the same loop from the last saved checkpoint. A gap of several days needs nothing special.
  • Use dateModifiedFrom, not datePublishedFrom. Publication time does not change when an event is cancelled, rescheduled, or updated.

Cancellations and removals

A cancelled event stays in the catalog. A removed event arrives as a removal row.

Every live event carries eventStatus. Write it on every upsert and decide how each value appears in your product.

eventStatusMeaningSuggested handling
scheduledExpected on the current start date.Show normally.
postponedDelayed with no confirmed new date.Keep and label it; do not promise the current date.
rescheduledMoved to a confirmed new date.Update the date; show previousStartDate when present.
cancelledWill not take place, but remains a live record.Keep it; hide or label it in upcoming views.

Records removed from the catalog appear on dateModifiedFrom requests as compact removal rows with a deletionStatus field. Delete rows marked deleted or trashed, and repoint rows marked merged to mergedInto. Without dateModifiedFrom, removal rows appear only for removed JamBase IDs you ask for by ID. Subscriptions limited to upcoming events get event removal rows only for shows dated today or later.

Updates filtered by artistId or venueId carry only the removal rows that match the filter. Updates filtered by name carry none, and the top-level removals.scope says none. A list of JamBase IDs (eventId on events, artistId on artists, venueId on venues) returns the removal rows of the listed IDs that were removed, after the live rows, and no others. If you sync per artist or per venue, also run one unfiltered dateModifiedFrom update to be sure you see every removal; geo and date filters are fine.

If a page fails with 503 and error code removals_unavailable, wait as long as its Retry-After header says and retry the same page. Do not save a checkpoint after it.

Deleted and trashed rows remain available on the delta feeds for 90 days; merged rows do not expire. If removals.complete is false, your checkpoint is older than removals.availableFrom: run a fresh initial import and reconcile it with your store. If you look up a removed event, artist or venue by its JamBase ID directly, the API returns 200 with its removal row, with no time limit (check for deletionStatus); lookups by another source's ID get 400 with error code identifier_invalid. A list of JamBase IDs skips removed IDs in the live rows and returns their removal rows after them, so a list where every ID was removed returns 200 with only removal rows. Details: Deleted Items.

Example (TypeScript)

An optional sketch of one scheduled update. Adapt it to your language and storage.

This example shows the order of operations. It is not a complete program: you provide the storage functions below, plus scheduling, logging, and alerting.

Function you supplyPurpose
loadCheckpoint()Return the saved UTC checkpoint, or null before the first run.
saveCheckpoint(date)Store the next checkpoint durably.
upsertEvent(event)Insert or update one live event, keyed on identifier.
deleteEvent(identifier)Remove a deleted or trashed event.
repointEvent(identifier, mergedInto)Move references from a merged event to its surviving record.
// Illustrative sketch, not a complete program. You supply the storage
// functions: loadCheckpoint, saveCheckpoint, upsertEvent, deleteEvent,
// and repointEvent.
const BASE_URL = "https://api.data.jambase.com/v3";
const PER_PAGE = 100;
const OVERLAP_MS = 5 * 60 * 1000; // upcoming feed: 5 minutes
const MAX_ATTEMPTS = 5;
const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));
async function getPage(url: string, apiKey: string) {
for (let attempt = 1; attempt <= MAX_ATTEMPTS; attempt++) {
const res = await fetch(url, { headers: { Authorization: `Bearer ${apiKey}` } });
if (res.ok) {
// Over the daily geo + historical allowance, a historical page served on the
// standard path omits older past events: treat it as incomplete.
if (res.headers.has("X-JBD-Geo-Historical-Fallback")) {
throw new Error("Historical fallback: retry this page after the UTC daily reset");
}
const body = await res.json();
if (!body?.success || !body.pagination) throw new Error("Incomplete response");
return body;
}
if (res.status === 429) {
const problem = await res.clone().json().catch(() => ({}));
if (String(problem.type ?? "").endsWith("/quota-exceeded")) {
throw new Error("Quota exceeded; retrying will not help");
}
if (problem.code === "geo_historical_allowance_exceeded") {
// Retry-After runs to UTC midnight: pause this loop, keep the checkpoint.
throw new Error("Daily geo + historical allowance used: retry after the UTC reset");
}
}
const retryable = res.status === 429 || res.status >= 500;
if (!retryable || attempt === MAX_ATTEMPTS) {
throw new Error(`HTTP ${res.status} after ${attempt} attempt(s)`);
}
const retryAfterSec = Number(res.headers.get("Retry-After"));
const waitMs = retryAfterSec > 0 ? retryAfterSec * 1000 : 2000 * 2 ** (attempt - 1);
await sleep(waitMs + Math.random() * 1000); // add jitter
}
}
export async function runUpdate(apiKey: string) {
const runStart = new Date(); // next checkpoint
const checkpoint: Date | null = await loadCheckpoint(); // stored in UTC
const params = new URLSearchParams({ perPage: String(PER_PAGE) });
if (checkpoint) {
const from = new Date(checkpoint.getTime() - OVERLAP_MS);
params.set("dateModifiedFrom", from.toISOString());
}
let page = 1;
let totalPages = 1;
do {
params.set("page", String(page));
const body = await getPage(`${BASE_URL}/events?${params}`, apiKey);
// complete === false: the checkpoint is older than removals.availableFrom,
// so some removals are no longer kept. Stop without saving; clear the
// checkpoint so the next run re-imports, and reconcile your store.
if (body.removals?.complete === false) {
throw new Error("Checkpoint too old for removal rows: re-import and reconcile");
}
for (const row of body.events ?? []) {
if (row.deletionStatus === "deleted" || row.deletionStatus === "trashed") {
await deleteEvent(row.identifier);
} else if (row.deletionStatus === "merged") {
await repointEvent(row.identifier, row.mergedInto);
} else {
await upsertEvent(row); // keep eventStatus and previousStartDate
}
}
totalPages = body.pagination.totalPages;
page += 1;
} while (page <= totalPages);
await saveCheckpoint(runStart); // only after every page succeeded
}

With no saved checkpoint, the same function performs the initial import. The retry logic honors Retry-After, retries only 429 and 5xx responses, and stops after five attempts so a persistent problem surfaces instead of looping.

Pacing and retries

Limits apply to your whole company, not to each key or worker.

  • Fetch pages in order, one request at a time. Parallel requests do not raise your limits.
  • Hourly limits, per-minute limits, and a separate limit on simultaneous catalog and update requests are shared by all of your keys, workers, teammates, and REST and MCP clients.
  • If you split work (for example, one worker per country), give each worker its own checkpoint, add workers gradually, and slow all of them down when any receives a 429.
  • On a 429, wait at least Retry-After seconds plus random jitter, then retry the same page. A quota-exceeded 429 is not retryable.
  • Retry 5xx responses and timeouts with exponential backoff. Do not retry other 4xx responses; fix the request instead.
  • Treat a response without success or pagination as a failed page. Do not save a checkpoint after a failed or incomplete page.
  • If failures continue after a bounded number of attempts, stop the run and contact us about pacing rather than adding workers.

Full details, including response codes and headers: Rate Limits.

Historical data

Past events need a licensed, explicitly bounded request and their own checkpoint.

A plain dateModifiedFrom update covers upcoming and ongoing events only. Changes to events whose dates have passed never appear in it, and neither a geographic filter nor dateModifiedFrom on its own requests history.

If your plan includes historical access, keep historical work in a separate loop:

  • Request an explicit past eventDateFrom / eventDateTo window inside your licensed range. With geo + historical search, add a geographic filter such as geoCountryIso2; without one, also send expandPastEvents=true. Keep the same bounds on every page.
  • Partition large imports by country and date range and page through one partition at a time. Ask support for the list of countries with data in your range. The United Kingdom is GB, not UK.
  • To pick up corrections to past events, add dateModifiedFrom to the same bounded requests. Keep a separate checkpoint for each partition and overlap it by 24 to 48 hours, because the historical index can lag by up to about a day.
  • Single artist or venue timelines with expandPastEvents=true keep their plan and scope requirements.

Plan windows, entitlements, and request shapes: Historical Data.

Streams and other feeds

The same update loop works on the other list endpoints, with a few differences.

  • Festivals. Festival removals appear on /v3/events with "@type": "Festival". /v3/festivals and /v3/festival-collections send no removal rows.
  • Artists and venues. /v3/artists and /v3/venues send deleted and merged removal rows. Venue rows say "@type": "Venue".
  • Streams. /v3/streams accepts dateModifiedFrom for updates, but stream removal rows are not currently sent and past streams are not available. To confirm that a stored stream was removed, look it up by ID and check for 400 identifier_invalid.
  • Warehouse delivery. If you need the full archive delivered to a warehouse or object storage instead of paging the API, ask us about Enterprise data feeds.

Related

Last updated Nov 16, 2026