airbnb · Capability

Airbnb Homes API — Calendar

Airbnb Homes API — Calendar. 2 operations. Lead operation: Get Listing Calendar. Self-contained Naftiko capability covering one Airbnb business surface.

Run with Naftiko AirbnbCalendar

What You Can Do

GET
Getlistingcalendar — Get Listing Calendar
/v1/listings/{listing-id}/calendar
PUT
Updatelistingcalendar — Update Listing Calendar
/v1/listings/{listing-id}/calendar

MCP Tools

get-listing-calendar

Get Listing Calendar

read-only idempotent
update-listing-calendar

Update Listing Calendar

idempotent

Capability Spec

homes-calendar.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Airbnb Homes API — Calendar
  description: 'Airbnb Homes API — Calendar. 2 operations. Lead operation: Get Listing Calendar. Self-contained Naftiko capability
    covering one Airbnb business surface.'
  tags:
  - Airbnb
  - Calendar
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AIRBNB_API_KEY: AIRBNB_API_KEY
capability:
  consumes:
  - type: http
    namespace: homes-calendar
    baseUri: https://api.airbnb.com/v2
    description: Airbnb Homes API — Calendar business capability. Self-contained, no shared references.
    resources:
    - name: listings-listing_id-calendar
      path: /listings/{listing_id}/calendar
      operations:
      - name: getlistingcalendar
        method: GET
        description: Get Listing Calendar
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: start_date
          in: query
          type: string
          description: The start date for the calendar range in ISO 8601 format.
          required: true
        - name: end_date
          in: query
          type: string
          description: The end date for the calendar range in ISO 8601 format.
          required: true
      - name: updatelistingcalendar
        method: PUT
        description: Update Listing Calendar
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.AIRBNB_API_KEY}}'
  exposes:
  - type: rest
    namespace: homes-calendar-rest
    port: 8080
    description: REST adapter for Airbnb Homes API — Calendar. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/listings/{listing-id}/calendar
      name: listings-listing-id-calendar
      description: REST surface for listings-listing_id-calendar.
      operations:
      - method: GET
        name: getlistingcalendar
        description: Get Listing Calendar
        call: homes-calendar.getlistingcalendar
        with:
          start_date: rest.start_date
          end_date: rest.end_date
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatelistingcalendar
        description: Update Listing Calendar
        call: homes-calendar.updatelistingcalendar
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: homes-calendar-mcp
    port: 9090
    transport: http
    description: MCP adapter for Airbnb Homes API — Calendar. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-listing-calendar
      description: Get Listing Calendar
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: homes-calendar.getlistingcalendar
      with:
        start_date: tools.start_date
        end_date: tools.end_date
      outputParameters:
      - type: object
        mapping: $.
    - name: update-listing-calendar
      description: Update Listing Calendar
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: homes-calendar.updatelistingcalendar
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.