Booking-ready cheapest-link resolver
Resolve a property + dates to the single cheapest bookable link (with price and OTA) as clean JSON — for a concierge bot, a "book now" button, or an internal tool.
What it does
The job it gets done
Sometimes you do not want a report — you want the answer: the one cheapest bookable link for this property on these dates, as a clean object a bot or a button can act on. This workflow calls the flagship price-compare endpoint, keeps only offers that carry a bookable URL, sorts by total price, and returns the single cheapest — OTA, price, currency, deep link, and the savings versus the median. It is the "resolve to a deal link" primitive behind a concierge assistant, a checkout CTA, or an internal booking tool.
How it works
Step by step
- 1
Provide the property and dates
Give the workflow a property name (plus an optional location to disambiguate), check-in / check-out, occupancy and a currency.
- 2
Compare every OTA offer
It calls GET /v1/price-compare, which resolves the property and returns every OTA offer for the dates, each with a bookable url, plus computed min and median.
- 3
Resolve to the single cheapest link
The transform keeps only offers that carry a bookable URL, sorts by total price, and returns the single cheapest as a clean object — OTA, price, deep link, and savings vs. median.
- 4
Return / deliver the deal link
The compact JSON is returned to a webhook (for a bot or a "book now" button) or posted to Slack/Telegram — a one-call primitive you can drop into any surface.
What you'll need
Two ways to run it
Using an AI agent
Just your ScoutingAPI key. Your agent is the brain — it calls the endpoint and reports the result itself, so there's no separate AI key to buy. Install the SKILL.md below.
Using n8n
A running n8n instance, the workflow JSON below, a ScoutingAPI Header Auth credential, and a delivery credential (e.g. Slack) — or swap the last node. The transform is plain JavaScript, so no LLM key is required.
Try it live
Run the core call now — sandbox, 0 credits
Exercise the endpoint this workflow is built on against the deterministic sandbox — a real 200, zero credits, no sign-up.
/v1/price-compareRuns against the deterministic Google Hotels sandbox fixture — a real 200, zero credits.
Run the call to see a live, deterministic sandbox response.
curl -sS "https://api.scoutingapi.com/v1/price-compare" \
-H "Authorization: Bearer $SCOUTINGAPI_KEY"Code samples
The same call, every way that matters
curl -sS "https://api.scoutingapi.com/v1/price-compare?name=Hotel%20X%20Sibenik&location=Sibenik,HR&checkIn=2026-07-13&checkOut=2026-07-20¤cy=EUR" \
-H "Authorization: Bearer $SCOUTINGAPI_KEY"Get it for your platform
Download & import
Typical cost
≈ 22 credits per run.
price-compare· 22 credits per call
Failed & empty calls are always free; sandbox calls cost 0. Live costs are on the pricing page.
FAQ
Common questions
Get your free key — no card
300 credits, the full API, the sandbox, and the native MCP server. Power this workflow and more.
No credit card · failed calls cost 0 credits