Cloudflare Worker providing catalog-related routes
- Description:
Cloudflare Worker providing catalog-related routes
- Source:
Methods
(route) EventDetails()
- Description:
Route:
Method Path GET /workers/catalogs/events/:eventId Retrieves event details for a specified event.
- Source:
Example
// Request event details for event 123456
GET /workers/catalogs/events/123456
(route) NearbyEvents() → {SearchEventsDataFeedResponse}
- Description:
Route:
Method Path GET /workers/catalogs/events/nearby Returns a filtered list of events occurring near a user-supplied location.
Query Parameters:
Name Type Attributes Default Description lat number Geographic latitude. long number Geographic longitude. favoritePerformers string optional Pipe-delimited list of performer names. Used to flag or prune events by artist affinity. maxDaysUntilEvent number optional Upper-bound (inclusive) on event dates—expressed in days from "today". maxFavoriteEvents number optional Caps the number of `is_favorited === true` events returned. trackedEvents string optional Pipe-delimited list of event IDs to exclude (already tracked by the user). minEvents number optional 5 Minimum number of events required for a successful payload. Fewer than this triggers a **400**. maxEvents number optional Hard cap on total events after all processing. eventTags string optional Pipe-delimited list of event-tag types (e.g. `"HotEvent|FeaturedEvent"`). uniquePerformerEvents boolean optional false When `true`, ensures each main performer appears only once. filterTbdEvents boolean optional false When `true`, removes events whose names contain a "TBD" placeholder.
- Source:
Example
// Nearest concert or sports events within the next 10 days, filtered by favourite artists
GET /workers/catalogs/events/nearby?lat=40.7128&long=-74.0060&maxDaysUntilEvent=10&favoritePerformers=Artist1|Artist2
Returns:
JSON payload identical to the
TickPick /events/nearby/datafeed response schema but post-filtered.
(route) SearchInventory(queryParams) → {Object}
- Description:
Route:
Method Path GET /workers/catalogs/inventory Searches inventory records based on provided criteria. Optionally includes detailed event information for each inventory record.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
queryParams |
Object | The search criteria Properties
|
Throws:
-
-
400 - Invalid query parameters
- Type
- HTTPException
-
-
-
404 - Inventory not found
- Type
- HTTPException
-
-
-
500 - Internal server error
- Type
- HTTPException
-
Returns:
200 - Search results
- Type
- Object
(route) UpdateEvent(eventId, requestBody) → {Object|string|Object|Object}
- Description:
Route:
Method Path PATCH /workers/catalogs/events/:eventId Updates an event catalog entry, including probabilities and event data. If the event has probabilities, they will be enriched with timestamps.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eventId |
string | The unique identifier of the event |
||||||||||||
requestBody |
Object | The update payload Properties
|
Throws:
-
-
401 - Unauthorized
- Type
- HTTPException
-
-
-
404 - Event not found
- Type
- HTTPException
-
-
-
500 - Internal server error
- Type
- HTTPException
-
Returns:
-
200 - Success response
- Type
- Object
-
200.message - Success message
- Type
- string
-
200.data - Updated event data
- Type
- Object
-
200.metadata - Metadata including lastUpdated and expiresAt timestamps
- Type
- Object
(route) UpdateInventory(inventoryId, requestBody) → {Object|string|InventoryResponse}
- Description:
Route:
Method Path PATCH /workers/catalogs/inventory/:inventoryId Updates probability values for a specific inventory record. Automatically enriches probability values with timestamps. Uses JSON patch to merge with existing probability data.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
inventoryId |
string | The unique identifier of the inventory record |
||||||||||||||||||||||||
requestBody |
Object | The update payload Properties
|
Throws:
-
-
401 - Unauthorized
- Type
- HTTPException
-
-
-
404 - Inventory not found
- Type
- HTTPException
-
-
-
500 - Internal server error
- Type
- HTTPException
-
Returns:
-
200 - Success response
- Type
- Object
-
200.message - Success message
- Type
- string
-
200.data - Updated inventory record
- Type
- InventoryResponse