Developer documentation

Travel API

Beta · free to use

A read-only JSON API over what Vibe of the City already publishes: a host’s guide and a city’s week. It exists so your own website can show the same live city data your guests see in the guide, without scraping a page or embedding an iframe.

What you get

The API carries no guest and no booking data. It returns what a host has published, and nothing that is still a draft.

Want an AI assistant to use this data, and your own trips and saved places? The same key works with our MCP server.

The key belongs to you, not to a property

A key is bound to your Vibe of the City account. One key reads every published host page and every live city.

That is deliberate. Agencies and developers work on several properties, and a host who hands their website to one should be able to revoke that agency’s key without breaking their own. The key says who is calling and what they have spent — never what they may see. What may be seen is decided by what the host published.

Creating a key

Sign in on vibeofthe.city and open Account → API keys. Name the key after what will use it, create it, and copy it straight away. The same page shows what each key spent today and revokes one.

Scripting it instead? The endpoints below take your session cookie:

// Signed in on vibeofthe.city, in your browser's console:
await fetch("/api/me/api-keys", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({ label: "my website" }),
}).then((r) => r.json());

// → { "key": { "id": "…", "keyPrefix": "votc_live_ab", "clientId": "cli_7Qn3xK2mWp8v", … }, "plaintextKey": "votc_live_…" }

The plaintext key is in that response only. We store a SHA-256 hash, so it cannot be shown again. Keep it on your server — never in a browser bundle, a mobile app or a public repository. Lost a key? Revoke it and mint a new one.

EndpointWhat it does
GET /api/me/api-keysYour live keys, with what each has spent today. Never the secrets.
POST /api/me/api-keysMints a key. Body: { "label": "my website" }.
DELETE /api/me/api-keys/{id}Revokes one, immediately and permanently.

At most five live keys per account.

Limits during the beta

The beta is free. It is still limited, because the weather and places data behind a call costs us money per lookup — a free thing with no ceiling stops being free.

LimitValueScope
Daily allowance1000 callsPer key, per UTC day
Burst60 calls, refilling 60 per minutePer key

Every successful response carries the state of your allowance, both as headers (X-RateLimit-Limit, X-RateLimit-Remaining,X-RateLimit-Reset) and in a meta block. Over the daily allowance the API answers 429 with Retry-After pointing at the next midnight UTC.

Need more? Write to us and say what you are building. Raising a key’s allowance is a one-line change on our side during the beta.

Calling it

Every call takes Authorization: Bearer votc_live_…. Responses are cached for five minutes at the edge, and answer in the language you ask for: lang=de,en or es, defaulting to English.

curl -H "Authorization: Bearer $VOTC_API_KEY" \
  "https://www.vibeofthe.city/api/public/v1/city/oldenburg-de/week?days=7&lang=de"

GET/api/public/v1/host/{slug}

A published host page. The slug is the one in its guide URL —/de/h/ferienwohnung-hindenburgstr-18. Draft and archived pages answer 404, whoever asks.

Links come back tagged ?via=api:<client id>, so a host can see which integration actually sends people back to the guide. The client id is the key’s non-secret public identifier — no part of the secret key appears in a shared link.

{
  "host": {
    "slug": "ferienwohnung-hindenburgstr-18",
    "name": "Ferienwohnung Hindenburgstr. 18",
    "citySlug": "oldenburg-de",
    "cityName": "Oldenburg",
    "kind": "stay",
    "accentHex": "#7c2f35",
    "logoUrl": "https://…/logo.png",
    "guideUrl": "https://www.vibeofthe.city/de/h/ferienwohnung-hindenburgstr-18?t=house&via=api:cli_7Qn3xK2mWp8v",
    "welcome": "Herzlich willkommen in der Hindenburgstraße 18.",
    "facts": [
      { "label": "Check-in", "value": "ab 15:00" },
      { "label": "Check-out", "value": "bis 10:00" }
    ],
    "house": [
      { "id": "wifi", "phase": "stay", "title": "WLAN", "body": "Netz und Passwort liegen auf dem Esstisch." }
    ],
    "tips": [
      {
        "name": "Schlossgarten",
        "kind": "park",
        "note": "Runde vor oder nach der Arbeit.",
        "lat": 53.1358,
        "lng": 8.2085,
        "url": "https://www.vibeofthe.city/de/places/schlossgarten?via=api:cli_7Qn3xK2mWp8v"
      }
    ],
    "languages": ["de", "en"],
    "location": {
      "name": "Ferienwohnung Hindenburgstr. 18",
      "address": "Hindenburgstraße 18, 26122 Oldenburg",
      "lat": 53.1378,
      "lng": 8.2060,
      "url": "https://www.vibeofthe.city/de/places/ferienwohnung-hindenburgstr-18-oldenburg?via=api:cli_7Qn3xK2mWp8v"
    }
  },
  "meta": {
    "plan": "beta-free",
    "dailyLimit": 1000,
    "remaining": 987,
    "resetAt": "2026-09-23T00:00:00.000Z",
    "docsUrl": "https://www.vibeofthe.city/docs/api"
  }
}

GET/api/public/v1/city/{slug}/week

The forecast and what is on over a window. days defaults to 7 and is clamped to 1–60; or pass from and to (ISO dates). A day with no forecast yet is left out rather than zero-filled. Events are drawn from the city’s fact layer — the weekly pulse and the annual calendar — so a 4–8 week window returns recurring and seasonal events (Feria, Christmas markets, holidays).

Narrow with tags=foodie,free (an event must carry all of them),min_score=60 (0–100) and sort=score. Page a long window withlimit (default 100, max 200) and offset; a pagingblock returns the total that matched. Addutm_source/utm_medium/utm_campaign and they ride along in every shareUrl.

Each event carries a stable id, a type ("event" or "notice"), persona tags, a 0–100score, highlight, a licensed image (or null), ashareUrl that opens the app or a web page, isFree, a venue’svenueLat/venueLng and instagram where its location is a place we know, timezone and updatedAt. A notice is a practical advisory — a closure, a transit change, a crowd surge — never a highlight; filter it out or show it apart. Per-viewer ranking stays out — a key is a machine.

{
  "city": {
    "citySlug": "oldenburg-de",
    "cityName": "Oldenburg",
    "timezone": "Europe/Berlin",
    "from": "2026-09-22",
    "days": [
      {
        "date": "2026-09-22",
        "tempMax": 17,
        "tempMin": 10,
        "precipitationMm": 0.4,
        "precipitationProbability": 20,
        "weatherCode": 3
      }
    ],
    "events": [
      {
        "title": "Wochenmarkt am Rathausmarkt",
        "detail": "Regionale Stände in der Innenstadt.",
        "startsOn": "2026-09-24",
        "endsOn": "2026-09-24",
        "startsAt": "07:00",
        "location": "Rathausmarkt",
        "category": "market",
        "type": "event",
        "sourceName": "Stadt Oldenburg",
        "sourceUrl": "https://…"
      }
    ],
    "paging": { "total": 1, "limit": 100, "offset": 0 },
    "generatedAt": "2026-09-22T05:00:00.000Z"
  },
  "meta": { "plan": "beta-free", "dailyLimit": 1000, "remaining": 986, "resetAt": "2026-09-23T00:00:00.000Z", "docsUrl": "https://www.vibeofthe.city/docs/api" }
}

GET/api/public/v1/city/{slug}/highlights

The big things on over a window (default the next eight weeks): festivals, holidays and marquee events, strongest-first. Takes from, to andtags. Same event shape as week.

GET/api/public/v1/city/{slug}/venues

The city’s notable places — landmarks, beaches, markets, viewpoints — each with its coordinates, persona tags, a score, a licensed image, a shareUrl to its place page and its official instagram handle where we know it. Narrow with tags, min_score, sortand limit.

GET/api/public/v1/city/{slug}/todos

The city’s things to do: the classic picks (kind: "place") and the guided activities (kind: "activity", which carry a structuredpriceFrom and currency).

Publishing lists

A lists:write key — minted for a city brand account (vibeof{city}), never a reader’s key — publishes editorial, re-pointable lists: “This weekend in Málaga” is seven picked events with a one-line tip each. A key only ever touches lists owned by its own account, and an Idempotency-Key on a POST replays the first result for a repeated key.

POST/api/public/v1/city/{slug}/lists

Create a list (draft or published). Each item carries exactly one ofevent_id, venue_id or todo_id, validated to belong to the city, plus an optional note. The response returnslist_id, public_url, share_url and the list’salias_urls. PUT /api/public/v1/lists/{id} replaces it; /publish and /archive change its state.

POST/api/public/v1/city/{slug}/aliases/{alias}

Point a fixed bio link (/{city}/this-weekend, /today, /this-week, /next-month, /free) at a list. It then 302s to that list, carrying UTM through, and falls back to the city’s live feed when nothing is pointed — so a bio link never 404s. GET /api/public/v1/lists/{id}/stats returns its 7/30-day numbers.

Errors

Every error is JSON in the shape { "error": "invalid_api_key" }, sometimes with extra fields such as resetAt or docsUrl.

CodeStatusMeaning
missing_api_key401No Authorization header, or it is not a Bearer token.
invalid_api_key401Unknown or revoked key.
quota_exceeded429The key's daily allowance is spent. Retry-After points at the reset.
rate_limited429Too many calls in a short burst. Retry-After is in seconds.
host_not_found404No published host page with that slug.
city_not_found404That city is not live.

How to use it well

While it is a beta

Fields will be added; existing ones will not change meaning or disappear without a new version prefix. If we have to break something, key holders hear about it by email first.

Questions, a bug, or a limit that is in your way: hello@vibeofthe.city.

See also the terms of service and the privacy policy.