Partner API reference

Fetch one venue's upcoming events for server-rendered display on its website. See custom builds for an implementation example.

Request and authentication

GET https://events.extrachill.com/wp-json/extrachill/v1/partner/events?limit=20
X-Extrachill-Partner-Key: <your-key>

limit is an integer from 1 to 50, default 20. The venue comes from the key, not a venue parameter. Each key grants access to one venue. Ask the Extra Chill team for a key, or to rotate or revoke one.

Keep the key server-side only. Store it in a server environment variable or secret store. Never ship it to browsers, client components, public environment variables, HTML, or public repositories. Call this endpoint from your server, not from browser JavaScript.

Response

This illustrative success response uses the complete contract; nullable fields contain JSON null, not the string "null":

{
  "venue": {
    "id": 1524,
    "name": "Lo-Fi Brewing",
    "slug": "lo-fi-brewing",
    "url": "https://events.extrachill.com/venue/lo-fi-brewing/",
    "booking_embed_url": null
  },
  "events": [
    {
      "id": 123,
      "title": "Example show",
      "url": "https://events.extrachill.com/event/example-show/",
      "start": "2026-12-01T20:00:00-05:00",
      "end": null,
      "timezone": "America/New_York",
      "performers": ["Example band"],
      "price": "$10",
      "image": null,
      "excerpt": "An evening of live music.",
      "status": "EventScheduled",
      "ticket": {
        "url": "https://events.extrachill.com/event/example-show/",
        "label": "Get Tickets",
        "kind": "info"
      },
      "schema": {
        "@context": "https://schema.org",
        "@type": "MusicEvent",
        "name": "Example show",
        "startDate": "2026-12-01T20:00:00-05:00"
      }
    }
  ],
  "generated_at": "2026-12-01T12:00:00+00:00",
  "cache_ttl": 300
}

The example's schema is abbreviated; render the complete object returned by the API rather than reconstructing it.

Top-level fields

FieldTypeMeaning
venueobjectThe venue associated with the key.
eventsarray of objectsUpcoming events; an empty array is a successful response with no shows.
generated_atISO 8601 stringResponse generation time.
cache_ttlintegerCache lifetime in seconds; currently 300.

Venue fields

FieldTypeMeaning
idintegerExtra Chill venue ID.
namestringDisplay name.
slugstringVenue slug.
urlURL stringVenue page on Extra Chill.
booking_embed_urlURL string or nullOptional hosted booking iframe URL.

Event fields

FieldTypeMeaning
idintegerExtra Chill event ID.
titlestringEvent title.
urlURL stringEvent page on Extra Chill.
startISO 8601 stringStart date/time with offset.
endISO 8601 string or nullEnd date/time, if available.
timezonestringIANA venue timezone, such as America/New_York; use it for display.
performersarray of stringsPerformer names.
pricestring or nullDisplay price, such as $10; not a numeric checkout amount.
imageURL string or nullFeatured flyer when allowed; otherwise the schema image, if available. When the flyer is used and schema is present, the flyer appears first in schema.image.
excerptplain-text string or nullShort event description; not HTML.
statusstringSchema.org event status, such as EventScheduled.
ticketobjectTicket action described below.
schemaobjectSchema.org MusicEvent JSON-LD, including @context: https://schema.org and @type: MusicEvent. Emit the full object server-side.

Ticket fields

FieldTypeMeaning
urlURL string or nullBuy/action destination. Omit the button when null.
labelstringButton text, such as Get Tickets or RSVP.
kindstringOne of checkout, external, rsvp, info, or none.

Use ticket.url as-is. Non-null ticket URLs point to Extra Chill event pages. For checkout and external, fans use the event page to check out or reach the outside seller. Do not replace these URLs with a seller's direct URL or construct checkout URLs yourself.

Free events with an external registration link use kind: rsvp and label: RSVP. Their ticket.url includes the stable, unsigned ec_rsvp=1 query parameter. Preserve it when rendering the link. It highlights the Going button but does not record attendance: the fan must press Going and sign in or create an account if needed. The organizer's registration link remains available on the event page.

Errors

  • 401: missing, invalid, revoked, or otherwise unusable key. The JSON error code is extrachill_partner_key_invalid (for example, { "code": "extrachill_partner_key_invalid" }). Check the server's secret and request rotation if needed; do not expose credentials in an error page.
  • 400: bad request, such as an invalid limit. Correct the request rather than repeatedly retrying it. No additional error-code contract is specified here.

Treat non-2xx responses as errors, not event data. A failed request is not the same as a successful empty events array.

Caching

Respect cache_ttl and the response header Cache-Control: private, max-age=300. Cache server-side per key and request arguments; do not share authenticated API responses in a public cache. Refresh after five minutes under the current contract. Never log the key. You may keep a last-known-good copy for outages, but do not treat authentication failure as a successful refresh.

The WordPress plugin has its own 15-minute local cache and outage fallback.

Booking embed

When venue.booking_embed_url is non-null, append &parent-origin=<your https origin> with the origin URL-encoded. For example, an origin is https://www.example.com, without a page path. A URL builder can safely set the parent-origin query parameter on the supplied URL without discarding its existing parameters (including booking-embed=1). The venue must have that exact origin on its booking embed allowlist; ask the team to configure it.

Render the booking URL in an iframe only. If it is null, omit the embed. Booking is the one iframe surface; events must be server-rendered HTML and JSON-LD, never iframed.

Did this help?

0 Online Now
1545 Total Members
← Back to Documentation