VenuesAPI

VenuesAPI

The venue directory + outreach-list backend for Kickoff HQ — a JSON API of sports-showing venues (pubs, bars, clubs), searchable by name, city and country, importable from CSV/.xlsx, with stable external IDs (extId) to key your own outreach data against.

Base URL
https://venuesapi.jimfolio.space (local dev: http://localhost:3014)

Public, keyless endpoints

EndpointWhat it returns
GET /v1/health{"ok":true} liveness check
GET /v1/public/venues Venue list/search with q, city, country, limit (max 50), offset. Returns the same rows as the private list minus email fields — emails are private outreach data and never appear on the public surface. Rate-limited to 120 req/min per IP.

Try it in the live venue browser, or:

curl "https://venuesapi.jimfolio.space/v1/public/venues?country=NZ&limit=5"

Authentication

Everything else under /v1 requires a Bearer API key:

Authorization: Bearer va_xxxxxxxx

Keys look like va_<32 chars> and are minted via POST /v1/admin/keys (admin scope) or the mint_key tool in the venuesapi MCP server. The raw key is shown exactly once at mint time — only its sha256 hash is stored server-side. Lose it and you revoke + re-mint.

ScopeCan do
readGET /v1/venues, GET /v1/venues/:id
writePOST/PATCH/DELETE /v1/venues, POST /v1/import
adminGET/POST /v1/admin/keys, revoke keys (implies read + write)

Need a key? Ask an admin on the project — anyone with an admin-scoped key can mint one for you with just the scopes you need.

Quickstart

Health check (no auth):

curl https://venuesapi.jimfolio.space/v1/health
# {"ok":true}

List venues with a read key:

curl -H "Authorization: Bearer $VENUES_API_KEY" \
  "https://venuesapi.jimfolio.space/v1/venues?city=Canberra&limit=5"

Get one venue — the :id accepts either the uuid id or the stable extId (e.g. AU-00001):

curl -H "Authorization: Bearer $VENUES_API_KEY" \
  https://venuesapi.jimfolio.space/v1/venues/AU-00001

Same search, keyless (email fields stripped):

curl "https://venuesapi.jimfolio.space/v1/public/venues?q=rugby&country=NZ"

In JavaScript:

const res = await fetch(
  "https://venuesapi.jimfolio.space/v1/public/venues?country=NZ&limit=10"
);
const venues = await res.json();   // plain array, paginate with limit/offset

Importing data

POST /v1/import (write scope) accepts a CSV or .xlsx upload and upserts venues — rows with an email are keyed on lower(email), rows without one on ext_id. Column mapping is overridable with a map JSON query param. See the OpenAPI spec for the full field list.

MCP + skill

The venuesapi MCP server exposes the same surface as tools (list_venues, get_venue, create_venue, update_venue, mint_key, …), and a venues-api skill documents the workflows — handy if you drive this from an AI coding assistant.

Notes