openapi: 3.0.3
info:
  title: Hitchspot Public API
  version: 1.1.0
  description: |
    Read-only access to public wedding venue listings on Hitchspot (hitchspot.co),
    a marketplace for wedding venues on Vancouver Island and in British Columbia.
    No authentication. Only live listings are returned (active, approved by
    Hitchspot, not test data). Prices are Canadian dollars.

    Rate limit: 60 requests per minute per IP address across all /api paths.
    Over the limit you get HTTP 429 and RateLimit-* headers tell you when to retry.

    Responses carry Access-Control-Allow-Origin: * and Cache-Control: public, max-age=60.

    You cannot create inquiries or bookings through this API yet. An agent
    inquiry API and an MCP server are planned; see https://hitchspot.co/for-agents.

    Please link to the venue page (https://hitchspot.co/venues/{id}) when you
    show a venue to someone.
  contact:
    name: Hitchspot
    url: https://hitchspot.co/for-agents
    email: support@hitchspot.co

servers:
  - url: https://hitchspot.co/api
    description: Production

paths:
  /venues/search:
    get:
      summary: Search wedding venues
      description: |
        Returns every live venue that matches all the filters given, up to 100.
        There is no pagination. All filters are optional; with none you get all
        live venues (up to 100).
      operationId: searchVenues
      tags:
        - Venues
      parameters:
        - in: query
          name: keywords
          schema:
            type: string
          description: Case-insensitive substring match on the venue name or description.
          example: barn
        - in: query
          name: location
          schema:
            type: string
          description: "City filter. Only the text before the first comma is used, matched case-insensitively as a substring of the venue's city (\"Victoria, BC\" matches Victoria)."
          example: Victoria
        - in: query
          name: city
          schema:
            type: string
          description: Same as location. Used when location is absent.
          example: Nanaimo
        - in: query
          name: guests
          schema:
            type: integer
            minimum: 1
          description: Only venues whose maximum capacity is at least this many guests.
          example: 120
        - in: query
          name: minGuests
          schema:
            type: integer
            minimum: 1
          description: Same as guests.
          example: 120
        - in: query
          name: minPrice
          schema:
            type: integer
            minimum: 1
          description: Only venues whose price is at least this many dollars (CAD).
          example: 2000
        - in: query
          name: maxPrice
          schema:
            type: integer
            minimum: 1
          description: Only venues whose price is at most this many dollars (CAD).
          example: 6000
        - in: query
          name: max_price
          schema:
            type: integer
            minimum: 1
          description: Same as maxPrice. Used when maxPrice is absent.
          example: 6000
        - in: query
          name: category
          schema:
            type: string
          description: "Exact, case-sensitive match on the venue's category as the venue entered it, for example Barn, Garden, Vineyard, Beach, Wedding Hall, Historic, Hotel, Restaurant."
          example: Barn
        - in: query
          name: date
          schema:
            type: string
            format: date
          description: "YYYY-MM-DD. Leaves out venues with a confirmed booking (or one awaiting its deposit) on that date. It does not yet account for dates a venue has blocked or put on hold, so confirm a date with /venues/{id}/availability."
          example: "2027-06-19"
        - in: query
          name: policies
          schema:
            type: string
          description: "Comma-separated. alcohol = alcohol allowed; outside_catering = outside catering allowed; insurance = venue requires event insurance. All listed must hold."
          example: alcohol,outside_catering
        - in: query
          name: amenities
          schema:
            type: string
          description: "Comma-separated amenity ids, all required: parking, kitchen, wifi, bridal-suite, tables-chairs, wheelchair-accessible. Any unknown id makes the result empty."
          example: parking,bridal-suite
        - in: query
          name: hosts
          schema:
            type: string
            enum: [both, reception, ceremony]
          description: "What the couple needs. reception = venues that host receptions (reception only, or ceremony and reception); ceremony = venues that host ceremonies (ceremony only, or both); both = venues that host the ceremony and the reception. Any other value is ignored."
          example: reception
        - in: query
          name: region
          schema:
            type: string
            enum: [victoria, nanaimo, vancouver, cowichan]
          description: "A region page's venues: those whose town is one of the region's towns (the same rule as https://hitchspot.co/venues/{region}). An unknown region returns no venues."
          example: victoria
      responses:
        "200":
          description: Matching venues.
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/VenuePublic'
                  count:
                    type: integer
                    description: Number of venues in results.
              example:
                results:
                  - id: 31
                    name: Cedar Hill Barn
                    description: A timber barn above the Saanich Inlet with a covered ceremony deck.
                    city: Victoria
                    state: BC
                    country: Canada
                    countryCode: CA
                    category: Barn
                    maxGuests: 150
                    hosts: both
                    price: 4500
                    images:
                      - https://example.supabase.co/storage/v1/object/public/venue-images/31/a.jpg
                    amenities:
                      - id: 1
                        name: Parking
                        icon: car
                    requiresInsurance: false
                    insuranceNotes: null
                    operatingHours: null
                    cancellationTerms: null
                    cancellationLines: []
                    cancelNotes: null
                    packages: []
                    priceDisplay: menu
                    typicalSpendMin: null
                    typicalSpendMax: null
                    offPeak: null
                    latitude: 48.4284
                    longitude: -123.3656
                    geo:
                      lat: 48.4284
                      lng: -123.3656
                count: 1
        "429":
          $ref: '#/components/responses/RateLimited'
        "500":
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: search_failed

  /venues/{id}:
    get:
      summary: Get one venue
      description: |
        Public details for one live venue. A venue that is not live (draft,
        under review, suspended, or test data) answers 404, the same as an
        unknown id. The street address is not published.
      operationId: getVenue
      tags:
        - Venues
      parameters:
        - $ref: '#/components/parameters/VenueId'
      responses:
        "200":
          description: The venue.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/VenuePublic'
                  - type: object
                    properties:
                      rating:
                        type: number
                        nullable: true
                        description: Average review rating, or null when there are no reviews.
              example:
                id: 31
                name: Cedar Hill Barn
                description: A timber barn above the Saanich Inlet with a covered ceremony deck.
                city: Victoria
                state: BC
                country: Canada
                countryCode: CA
                category: Barn
                maxGuests: 150
                hosts: both
                price: 4500
                images:
                  - https://example.supabase.co/storage/v1/object/public/venue-images/31/a.jpg
                amenities: []
                requiresInsurance: false
                insuranceNotes: null
                operatingHours: null
                cancellationTerms: null
                cancellationLines: []
                cancelNotes: null
                packages: []
                priceDisplay: menu
                typicalSpendMin: null
                typicalSpendMax: null
                offPeak: null
                latitude: 48.4284
                longitude: -123.3656
                geo:
                  lat: 48.4284
                  lng: -123.3656
                rating: null
        "400":
          description: The id is not a number.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: invalid_id
        "404":
          description: No live venue with this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: not_found
        "429":
          $ref: '#/components/responses/RateLimited'
        "500":
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: fetch_failed

  /venues/{id}/availability:
    get:
      summary: Check one date
      description: |
        Whether a couple can ask for this date. `available` is true when the
        date is open or on hold. `status` says which: available, unavailable,
        or hold. `hold` means the date is tentatively taken by another couple;
        you may still inquire, but it may not come free. The reason a date is
        unavailable (booked, blocked by the venue, closed) is never shown.
      operationId: checkDate
      tags:
        - Availability
      parameters:
        - $ref: '#/components/parameters/VenueId'
        - in: query
          name: date
          required: true
          schema:
            type: string
            format: date
          description: The date to check, YYYY-MM-DD.
          example: "2027-06-19"
      responses:
        "200":
          description: The date's status.
          content:
            application/json:
              schema:
                type: object
                properties:
                  venue_id:
                    type: integer
                  date:
                    type: string
                    format: date
                  available:
                    type: boolean
                    description: True when a couple may still request this date (status available or hold).
                  status:
                    $ref: '#/components/schemas/DayStatus'
              example:
                venue_id: 31
                date: "2027-06-19"
                available: true
                status: hold
        "400":
          description: Bad id or date.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                invalid_id:
                  value:
                    error: invalid_id
                date_required:
                  value:
                    error: date_required
                invalid_date_format:
                  value:
                    error: invalid_date_format
                invalid_date:
                  value:
                    error: invalid_date
        "404":
          description: No live venue with this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: venue_not_found
        "429":
          $ref: '#/components/responses/RateLimited'
        "500":
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: availability_check_failed

  /venues/{id}/availability-month:
    get:
      summary: Availability for a whole month
      description: |
        One status per calendar day of the month: available, unavailable, or
        hold. `hold` means tentatively taken by another couple (a couple may
        still inquire). The reason a day is unavailable is never shown.
        This is the same data the calendar on the venue page shows.
      operationId: getMonthAvailability
      tags:
        - Availability
      parameters:
        - $ref: '#/components/parameters/VenueId'
        - in: query
          name: month
          schema:
            type: string
            pattern: '^\d{4}-(0[1-9]|1[0-2])$'
          description: The month, YYYY-MM. Defaults to the current month.
          example: 2027-06
      responses:
        "200":
          description: Day-by-day status for the month.
          content:
            application/json:
              schema:
                type: object
                properties:
                  month:
                    type: string
                    description: The month returned, YYYY-MM.
                  days:
                    type: object
                    description: Keys are dates (YYYY-MM-DD), one per day of the month.
                    additionalProperties:
                      $ref: '#/components/schemas/DayStatus'
                  isOwner:
                    type: boolean
                    description: Always false for an anonymous caller.
                  availabilities:
                    type: array
                    items: {}
                    description: Legacy field, always empty for anonymous callers. Ignore it.
                  confirmedBookings:
                    type: array
                    items: {}
                    description: Legacy field, always empty for anonymous callers. Ignore it.
              example:
                month: 2027-06
                days:
                  "2027-06-01": available
                  "2027-06-02": available
                  "2027-06-19": hold
                  "2027-06-26": unavailable
                  "2027-06-30": available
                isOwner: false
                availabilities: []
                confirmedBookings: []
        "400":
          description: Bad id or month.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              examples:
                invalid_id:
                  value:
                    message: Invalid venue id
                invalid_month:
                  value:
                    message: Invalid month. Expected YYYY-MM.
        "404":
          description: No live venue with this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
              example:
                message: Venue not found
        "429":
          $ref: '#/components/responses/RateLimited'

components:
  parameters:
    VenueId:
      in: path
      name: id
      required: true
      schema:
        type: integer
      description: Venue id, as in https://hitchspot.co/venues/{id}.
      example: 31

  responses:
    RateLimited:
      description: More than 60 requests in a minute from your IP. Wait and retry.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              code:
                type: string
              message:
                type: string
          example:
            error: Too Many Requests
            code: RATE_LIMITED
            message: You have exceeded the 60 requests per minute limit.

  schemas:
    DayStatus:
      type: string
      enum: [available, unavailable, hold]
      description: "available = open. unavailable = taken or closed (reason not shown). hold = tentatively taken by another couple; you may still inquire."

    VenuePublic:
      type: object
      properties:
        id:
          type: integer
        name:
          type: string
        description:
          type: string
        city:
          type: string
        state:
          type: string
          description: Province or state, as entered (for example BC).
        country:
          type: string
        countryCode:
          type: string
          nullable: true
          description: ISO country code, for example CA.
        category:
          type: string
          description: Venue type as the venue entered it (for example Barn, Garden).
        maxGuests:
          type: integer
          description: Maximum guest capacity.
        hosts:
          type: string
          enum: [both, reception, ceremony]
          description: "What couples can book here. both = ceremony and reception; reception = reception only (the ceremony happens somewhere else); ceremony = ceremony only (the reception happens somewhere else)."
        price:
          type: integer
          description: "The number search filters and sorts by, whole Canadian dollars: the lowest package's comparable total (price x minimum people or hours), the lower end of the typical spend range, or the venue's single price."
        priceDisplay:
          type: string
          enum: [menu, typical]
          description: "menu: couples see From the cheapest package. typical: couples see Most couples spend typicalSpendMin to typicalSpendMax."
        typicalSpendMin:
          type: integer
          nullable: true
          description: Whole Canadian dollars.
        typicalSpendMax:
          type: integer
          nullable: true
          description: Whole Canadian dollars.
        packages:
          type: array
          description: "Up to 6 packages in the venue's order. basis is flat, per_person, per_hour or minimum_spend; prices are whole Canadian dollars; offPeakPrice applies on the offPeak dates."
          items:
            type: object
            properties:
              id:
                type: string
              name:
                type: string
              description:
                type: string
                nullable: true
              basis:
                type: string
                enum: [flat, per_person, per_hour, minimum_spend]
              price:
                type: integer
              minPeople:
                type: integer
                nullable: true
              maxPeople:
                type: integer
                nullable: true
              minHours:
                type: integer
                nullable: true
              offPeakPrice:
                type: integer
                nullable: true
              includes:
                type: array
                items:
                  type: string
              otherIncludes:
                type: string
                nullable: true
              taxIncluded:
                type: boolean
              gratuityIncluded:
                type: boolean
        offPeak:
          type: object
          nullable: true
          description: "Off-peak dates: weekdays (0 = Sunday to 6 = Saturday) and months (1 to 12). A date is off-peak when its weekday or its month is listed."
        images:
          type: array
          items:
            type: string
            format: uri
          description: Up to 6 photo URLs.
        amenities:
          type: array
          items:
            type: object
            properties:
              id:
                type: integer
              name:
                type: string
              icon:
                type: string
        requiresInsurance:
          type: boolean
          description: The venue requires the couple to carry event insurance.
        insuranceNotes:
          type: string
          nullable: true
        operatingHours:
          type: object
          nullable: true
          description: "Per weekday (monday..sunday): open and close times as HH:MM, or null."
        cancellationTerms:
          type: object
          nullable: true
          description: "The venue's cancellation terms: preset (flexible, standard, strict, custom), depositRefundable, tiers (value, unit of months/weeks/days, refundPercent; furthest from the date first) and finalRefundPercent. A refund is the venue's to make."
        cancellationLines:
          type: array
          items:
            type: string
          description: The cancellation terms in plain sentences, then the venue's notes.
        cancelNotes:
          type: string
          nullable: true
        latitude:
          type: number
          nullable: true
        longitude:
          type: number
          nullable: true
        geo:
          type: object
          nullable: true
          description: The same coordinates as latitude/longitude, or null when the venue has none.
          properties:
            lat:
              type: number
            lng:
              type: number

    Error:
      type: object
      properties:
        error:
          type: string
          description: Error code.

    Message:
      type: object
      properties:
        message:
          type: string

tags:
  - name: Venues
    description: Search and details
  - name: Availability
    description: Which dates are open
