ROUNDHERE / DEVELOPER DOCUMENTATION

Roundhere APIv1

Events, places and categories.
A shared source of local event data, starting in Buxton, Darlington and Bishop's Stortford.

Start here

Read listings through the public JSON endpoints. Collection workers use an API key to create and update records. The admin viewer lets the team inspect events, places and categories. Its Sources table can start collection jobs that import events.

01

Authentication

Reading data is public. Creating, updating and deleting records requires a server-side write key:

Authorization: Bearer <your-api-key>

Send JSON bodies with Content-Type: application/json. Keep write keys in collectors or other trusted services, outside browser code.

Admin sign-in uses an email magic link for approved team members. Links expire after 15 minutes and work once. Sessions last seven days. The data viewer is read-only; use API keys to generate a named key for a collector or development setup.

A generated key is shown once and permits creating, updating and deleting records. Save it securely; the portal lists its creator and last-used time and lets the team revoke it. Session cookies do not directly authorize JSON writes or backups. The original shared write key also continues to work for existing integrations.

02

Endpoints

Use events, places or categories for {resource}.

MethodPathPurposeAccess
GET/v1/{resource}List recordsPublic
GET/v1/{resource}/{id}Read one recordPublic
POST/v1/{resource}Create a recordWrite key
PATCH/v1/{resource}/{id}Update supplied fieldsWrite key
DELETE/v1/{resource}/{id}Delete a recordWrite key
GET/healthDatabase health and deployed revisionPublic
GET/admin/backupDownload a consistent SQLite backupBackup key

The backup key is separate from the write key and the admin session.

03

Data model

All records have a generated UUID id and UTC timestamps created_at and updated_at. These fields are read-only.

TableRequired fieldsOptional fields
Eventsname, place_id, category_id, start_date, source_urldescription, start_time, end_date, end_time, source_id, external_event_id, series_key, source_categories, event_kind (scheduled or period; defaults to scheduled)
Placesname, townaddress, postcode, website_url, place_type, opening_hours, source_id, external_place_id, refreshed_at, draw
Categoriesname (unique, ignoring ASCII case)None

Dates use YYYY-MM-DD; event times use HH:MM in Europe/London. Unknown optional values stay null. Each event row is one occurrence. Set an end date for overnight or multi-day events. event_kind distinguishes point-in-time listings (scheduled, such as gigs, quiz nights and wine tastings) from spanning seasonal or promotional windows (period, such as festive menus or booking windows).

Places may record an establishment place_type (such as restaurant, pub, bar or cafe, at most 100 characters) and normalized opening_hours (at most 1000 characters). Source-refreshed places pair source_id and external_place_id together (or leave both null for manual places) and record a UTC refreshed_at timestamp. Optional draw says how far people travel for the venue's events: local, town or regional. It is set by people; null means not yet reviewed.

Imported events use source_id to reference their Sources row and external_event_id for the performance’s identifier in that source’s system. Supply both together or leave both null for manual records. Each pair is unique. Optional series_key groups occurrences of one listing (such as every slot of a ticketed show) within a source_id; it is the source’s own parent identifier, and each occurrence is still a separate event. Optional source_categories is the source’s own genres, categories or tags exactly as published, separated by semicolons (for example Live Music; Family, at most 1000 characters); Roundhere’s own category_id is separate. Sources and Imports (collection_runs) have separate signed-in viewer tabs, showing every stored field with search and pagination. Source settings (timezone, look-ahead window, optional venue filter, crawl limits and category mappings) live in the database. New imports retain a config_snapshot of their settings and date window. They have no public JSON endpoints.

Create the place and category before creating an event. Referenced places and categories cannot be deleted while events use them.

04

Filters & pagination

All lists accept q for literal name search (also description for events), limit (1–100, default 50), and offset (default 0).

Events additionally accept town, place_id, category_id, source_url, source_id, event_kind (scheduled or period), from and to. Date ranges are inclusive and include overlapping multi-day events. Places also accept town and place_type.

GET /v1/events?town=Buxton&from=2026-11-01&to=2026-11-30&limit=25

List responses include the total number of matching records:

{
  "data": [],
  "pagination": {
    "total": 0,
    "limit": 50,
    "offset": 0
  }
}

Single-record responses and successful creates/updates return { "data": { … } }.

05

Examples

Read event listings

curl "https://round-here.uk/v1/events?town=Buxton"

Create a place

curl --request POST 'https://round-here.uk/v1/places' \
  --header "Authorization: Bearer $WRITE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"name":"Example venue","town":"Buxton"}'

Create an event

Use the IDs returned after creating a place and category. The following is an illustrative request body:

{
  "name": "Example concert",
  "place_id": "<place-id>",
  "category_id": "<category-id>",
  "start_date": "2026-11-20",
  "start_time": "19:30",
  "source_url": "https://example.com/listing"
}

PATCH accepts only the fields being changed. Use null to clear an optional value. IDs, timestamps, unknown fields, invalid dates and blank strings are rejected.

For manual events, submitting the same source URL, place, event name, date and time twice returns 409. Imported events instead have a unique source/external ID pair. Find the existing record with the source_url filter and PATCH it. Listings from different sources may still need deduplication.

06

Errors & status codes

Errors return { "error": "A description of the problem." }.

200
Successful read or update
201
Record created; Location header points to it
204
Deleted successfully; no response body
400
Invalid input or query parameters
401
Missing or invalid API key
404
Record or endpoint not found
409
Duplicate record or relationship conflict
413
Request body exceeds 64 KB
415
Request body must use application/json