Developer API

Book accommodation across Italy through AI conversations. REST API, MCP Server, and ChatGPT plugin.

5 free requests/day REST API MCP Server ChatGPT Plugin

Quick Start

Three ways to integrate. All use the same underlying API and property database of 111,000+ Italian accommodations across 20+ cities.

One-liner test (curl)

curl -X POST https://www.directbookingsitaly.com/api/public/search \
  -H "Content-Type: application/json" \
  -d '{
    "city": "Rome",
    "check_in": "2026-09-01",
    "check_out": "2026-09-05",
    "adults": 2,
    "budget_max": 200,
    "guest_name": "Your Name",
    "guest_email": "you@example.com"
  }'

This returns an rfq_id and guest_token. Save both. Use them to poll for host quotes and accept bookings.

How it works

1. You submit a search with city, dates, guests, and budget.
2. We match and notify local hosts (email, WhatsApp) instantly.
3. Hosts respond with quotes (typically 1-24 hours).
4. You poll the status endpoint to see quotes.
5. You accept the best quote. Host gets notified and reaches out with booking details.

No API key required. No authentication beyond the guest_token returned per search. All prices in EUR.

REST API Reference

Base URL: https://www.directbookingsitaly.com/api/public

POST /search

Create an accommodation search. Notifies matching hosts automatically.

Request body

FieldTypeRequiredDescription
citystringYesCity name in English or Italian
check_instringYesArrival date (YYYY-MM-DD)
check_outstringYesDeparture date (YYYY-MM-DD)
guest_namestringYesGuest full name
guest_emailstringYesGuest email for communication
adultsintegerNoNumber of adults (default: 2)
childrenintegerNoNumber of children (default: 0)
budget_maxnumberNoMax EUR per night (default: 200)
budget_minnumberNoMin EUR per night (default: 0)
neighborhoodstringNoPreferred area (e.g. "Trastevere")
amenitiesstring[]No["wifi", "pool", "parking", "ac"]
min_starsintegerNoMinimum star rating 0-5
special_requestsstringNoFree text special requests

Response (201)

{
  "ok": true,
  "rfq_id": "c218834e-fb7f-...",
  "guest_token": "ad4108802d98738d...",
  "poll_url": "https://www.directbookingsitaly.com/api/public/status?rfq_id=...&guest_token=...",
  "hosts_notified": 5,
  "quota": { "used": 1, "limit": 5, "remaining": 4 },
  "message": "5 host(s) in Roma have been notified..."
}

Error: quota exceeded (429)

{
  "error": "Daily free limit reached (5 requests)...",
  "used": 5, "limit": 5,
  "buy_url": "https://www.directbookingsitaly.com/api/public/buy-requests?email=...",
  "price": "EUR 10 for 10 requests"
}
GET /status

Poll for host quotes. Call this periodically after submitting a search.

Query parameters

ParamTypeDescription
rfq_iduuidFrom search response
guest_tokenstringFrom search response

Response (200)

{
  "ok": true,
  "rfq": {
    "id": "c218834e-...",
    "city": "Roma",
    "check_in": "2026-09-01",
    "check_out": "2026-09-05",
    "adults": 2,
    "status": "active"
  },
  "quotes": [
    {
      "quote_id": "a1b2c3d4-...",
      "price_per_night": 145,
      "total_price": 580,
      "currency": "EUR",
      "cleaning_fee": 50,
      "host_message": "Welcome! Our apartment is in the heart of Trastevere...",
      "valid_until": "2026-04-25T20:00:00Z",
      "cancellation_policy": "moderate"
    }
  ],
  "message": "1 quote(s) available. Review and accept the best one."
}

Status values: active (processing), matched (quotes available or booking confirmed), expired, cancelled.

POST /accept

Accept a host's quote. Confirms the booking and declines other pending quotes.

Request body

FieldTypeDescription
quote_iduuidFrom status response quotes array
guest_tokenstringFrom search response

Response (200)

{
  "ok": true,
  "quote": {
    "quote_id": "a1b2c3d4-...",
    "price_per_night": 145,
    "total_price": 580,
    "currency": "EUR",
    "status": "accepted"
  },
  "message": "Quote accepted! The host will be notified..."
}

OpenAPI Spec

Full OpenAPI 3.0 spec available at: /openapi.yaml

MCP Server (for Claude)

Use this MCP server to let Claude (or any MCP-compatible AI) book Italian accommodation in conversation.

Install

# Clone and build
git clone https://github.com/JeanBap/direct-bookings-italy.git
cd direct-bookings-italy/mcp-server
npm install
npm run build

Add to Claude Desktop

Edit your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json on Mac):

{
  "mcpServers": {
    "direct-bookings-italy": {
      "command": "node",
      "args": ["/path/to/direct-bookings-italy/mcp-server/dist/index.js"]
    }
  }
}

Available tools

ToolDescription
dbi_search_accommodationSearch for accommodation in any Italian city. Returns rfq_id + guest_token.
dbi_check_statusCheck booking status and retrieve host quotes.
dbi_accept_quoteAccept a quote to confirm the booking.

Example conversation

User: Find me a place in Florence for 3 nights in October, max 150 EUR/night

Claude: [calls dbi_search_accommodation]
I've submitted your search for Florence (Firenze), Oct 1-4, 2 adults,
budget up to EUR 150/night. 3 hosts have been notified.
I'll check back for quotes shortly.

User: Any quotes yet?

Claude: [calls dbi_check_status]
One quote is available:
  - EUR 130/night (EUR 390 total + EUR 40 cleaning)
  - Host says: "Charming apartment near Santa Croce..."
  - Valid until tomorrow
Would you like to accept this quote?

User: Yes, accept it

Claude: [calls dbi_accept_quote]
Booking confirmed at EUR 130/night. The host will contact
you at your email with check-in details.

ChatGPT Plugin / OpenAI Actions

Use the OpenAPI spec to create a custom GPT action that can book Italian accommodation.

Plugin manifest

/.well-known/ai-plugin.json

OpenAPI spec

/openapi.yaml

Setup in ChatGPT

1. Go to ChatGPT and create a custom GPT.
2. Under "Actions", click "Import from URL".
3. Enter: https://www.directbookingsitaly.com/openapi.yaml
4. The three operations (searchAccommodation, checkStatus, acceptQuote) will be imported automatically.
5. Set authentication to "None".

For any OpenAPI-compatible platform

The spec works with any tool that consumes OpenAPI 3.0: Zapier, Make.com, n8n, LangChain, and others. Just point it at /openapi.yaml.

Pricing

Free tier

5 searches per email per day. No API key needed. No signup. Just start calling the API.

Paid tier

Need more? Purchase request packs:

EUR 10 for 10 requests (added to your daily allowance instantly)

When you hit the free limit, the API returns a buy_url in the 429 response. Open it to purchase via Stripe. Requests are credited to your email immediately after payment.

Each request can contact up to 200 matching hosts in the target city.

Rate limits

LimitValue
Free searches per email per day5
IP rate limit20 per hour
Max stay length90 nights
Max guests20 adults, 10 children
Budget rangeEUR 10 - 10,000 per night

Supported Cities

City names work in English or Italian. The API normalizes automatically (e.g. "Rome" becomes "Roma", "Florence" becomes "Firenze").

EnglishItalian
RomeRoma
MilanMilano
FlorenceFirenze
NaplesNapoli
VeniceVenezia
TurinTorino
GenoaGenova
Lake ComoComo
Bologna, Palermo, Catania, Bari, Verona, Amalfi, Sorrento, Positano, Taormina, Siena, Lucca, Pisa, Perugia

Any Italian city or town name works. The above just have built-in English aliases. Try smaller towns too; we have 111,000+ properties across the country.

Direct Bookings Italy · info@directbookingsitaly.com · Privacy

Source: github.com/JeanBap/direct-bookings-italy