Get the FREE Ultimate OpenClaw Setup Guide →
J

MoltFlights

Verified

@Jhalmari

npx machina-cli add skill @Jhalmari/moltflights --openclaw
Files (1)
SKILL.md
6.6 KB

MoltFlights — Flight Search Skill

Search cheap flights using the MoltFlights API. Returns structured JSON with real-time prices and direct booking links.

No API key required. No authentication. Just call the endpoint.


Tools

moltflights_search — Search Flights

GET https://moltflights.com/api/search?origin=HEL&destination=BKK&date=2026-03-15
ParameterRequiredTypeDescription
originyesstringIATA airport code (e.g. HEL)
destinationyesstringIATA airport code (e.g. NRT)
datenostringDeparture date YYYY-MM-DD
returnDatenostringReturn date YYYY-MM-DD (round-trip)
adultsnointegerNumber of adults, 1–9 (default: 1)
childrennointegerChildren ages 2–12, 0–8 (default: 0)
infantsnointegerInfants under 2, 0–8 (default: 0)

If date is omitted, the API returns the cheapest flights for the upcoming month.

moltflights_autocomplete — Look Up Airport Codes

GET https://moltflights.com/api/autocomplete?term=bangkok
ParameterRequiredTypeDescription
termyesstringCity or airport name (min 2 characters)

Example: Search Flights

curl "https://moltflights.com/api/search?origin=HEL&destination=BKK&date=2026-03-15"

Response

{
  "meta": {
    "source": "MoltFlights",
    "origin": "HEL",
    "destination": "BKK",
    "date": "2026-03-15",
    "adults": 1,
    "children": 0,
    "infants": 0,
    "results": 12
  },
  "data": [
    {
      "airline": "Finnair",
      "flight_number": "809",
      "price": "€432",
      "price_per_person": "€432",
      "departure": "2026-03-15T10:30:00",
      "return_at": "",
      "transfers": 1,
      "origin": "HEL",
      "destination": "BKK",
      "book_link": "https://www.aviasales.com/search/..."
    }
  ]
}

Each result includes a book_link — a direct booking URL the user can open.


Example: Round-Trip with Passengers

curl "https://moltflights.com/api/search?origin=JFK&destination=CDG&date=2026-06-01&returnDate=2026-06-15&adults=2&children=1"

The price field shows the total for all seat-occupying passengers. price_per_person shows the per-person price.


Common Use Cases

1. Find the cheapest flight to a destination

Search without a specific date to get the cheapest options for the whole month:

curl "https://moltflights.com/api/search?origin=LHR&destination=TYO"

2. Compare prices across dates

Run multiple searches for different dates and compare:

for date in 2026-04-01 2026-04-08 2026-04-15; do
  echo "=== $date ==="
  curl -s "https://moltflights.com/api/search?origin=HEL&destination=BKK&date=$date" | head -20
done

3. Price monitoring / alerts (cron job)

Check a route daily and alert when price drops below a threshold:

# Run daily via cron: 0 8 * * * /path/to/check-price.sh
PRICE=$(curl -s "https://moltflights.com/api/search?origin=HEL&destination=BKK&date=2026-05-01" \
  | grep -o '"price":"€[0-9]*"' | head -1 | grep -o '[0-9]*')

if [ "$PRICE" -lt 400 ]; then
  echo "Deal found: HEL→BKK for €$PRICE"
fi

4. Multi-city search

Search several routes and pick the cheapest:

for dest in BKK TYO BCN LIS; do
  echo "=== HEL → $dest ==="
  curl -s "https://moltflights.com/api/search?origin=HEL&destination=$dest" \
    | grep -o '"price":"€[0-9]*"' | head -1
done

Common IATA Codes

CodeCityCodeCity
HELHelsinkiLHRLondon
JFKNew YorkCDGParis
NRTTokyo NaritaBKKBangkok
BCNBarcelonaFCORome
SINSingaporeDXBDubai
LAXLos AngelesSFOSan Francisco
BERBerlinAMSAmsterdam
ISTIstanbulLISLisbon

Don't know the code? Use the moltflights_autocomplete tool:

curl "https://moltflights.com/api/autocomplete?term=bangkok"

Error Handling

  • 400 — Missing origin or destination parameter
  • Empty data array — No flights found for this route/date. Try a different date or omit the date for flexible search.

Tips

  • Prices are in EUR (€)
  • Results are sorted: exact date matches first, then nearby dates by price
  • Omitting date gives you the cheapest flights across the whole upcoming month
  • The API is free and requires no authentication
  • Responses are cached for 5 minutes

Source

git clone https://clawhub.ai/Jhalmari/moltflightsView on GitHub

Overview

MoltFlights lets you search for cheap flights via its API, returning real-time prices and direct booking links. It also supports route tracking and price alerts, with an autocomplete endpoint to look up IATA airport codes. No API key is required—just call the endpoint.

How This Skill Works

Send a GET request to /api/search with origin, destination, and optional date, adults, children, and infants to receive a structured JSON of prices, flight details, and direct booking links. If you omit date, the API returns the cheapest flights for the upcoming month. Use /api/autocomplete to resolve city or airport names to IATA codes for accurate queries.

When to Use It

  • You know your exact travel date and want to compare prices across airlines for that route.
  • You want the cheapest options when your travel dates are flexible by omitting the date.
  • You’re booking for a group and need accurate passenger counts (adults, children, infants).
  • You need to quickly look up IATA airport codes or city names before searching.
  • You’re building a travel tool to monitor routes and price movements (price alerts).

Quick Start

  1. Step 1: Call moltflights_search with origin and destination (and optional date).
  2. Step 2: Read the JSON response for price, flights, and the direct booking link.
  3. Step 3: Open the book_link to complete your booking.

Best Practices

  • Always include origin and destination codes; use autocomplete to avoid typos.
  • Specify date for precise options; omit date to see cheapest monthly options.
  • Set adults, children, and infants to get correct pricing and seat availability.
  • Cross-check results against the direct booking links before final purchase.
  • Cache frequent searches to reduce repeated API calls and improve responsiveness.

Example Use Cases

  • GET /api/search?origin=HEL&destination=BKK&date=2026-03-15
  • GET /api/search?origin=JFK&destination=LHR (no date) to fetch cheapest options for the month
  • GET https://moltflights.com/api/autocomplete?term=bangkok
  • GET /api/search?origin=LAX&destination=NRT&returnDate=2026-04-01&adults=2&children=1
  • Set up a route price alert for HEL→BKK to monitor dips and student deals

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers