Skip to content

SerpAPI

MetadataValue
Categoryweb
Capabilitieshttp
Websitehttps://serpapi.com
  • offer[] — from search_offers, list_offers, get_offer
  • api

Structured Google search results — starting with Google Flights.

  1. Sign up at https://serpapi.com/users/sign_up
  2. Get your API key from https://serpapi.com/manage-api-key
  3. Add credential in AgentOS Settings

Search for flight offers using airport IATA codes and dates. Results are offers — priced itineraries containing one or more flight segments.

Search for flight offers between airports.

run({ skill: "serpapi", tool: "search_offers", params: {
departure_id: "AUS",
arrival_id: "JFK",
outbound_date: "2026-04-15",
return_date: "2026-04-22"
}})

One way:

run({ skill: "serpapi", tool: "search_offers", params: {
departure_id: "SFO",
arrival_id: "LHR",
outbound_date: "2026-05-01",
type: 2
}})

With filters:

run({ skill: "serpapi", tool: "search_offers", params: {
departure_id: "LAX",
arrival_id: "NRT",
outbound_date: "2026-06-01",
return_date: "2026-06-15",
travel_class: 3,
stops: 1,
sort_by: 2,
max_price: 3000
}})

Get recommended/best offers (Google’s picks). May not always be available.

run({ skill: "serpapi", tool: "list_offers", params: {
departure_id: "AUS",
arrival_id: "LHR",
outbound_date: "2026-04-15",
return_date: "2026-04-22"
}})

Get return flight offers after selecting an outbound (round trip flow).

run({ skill: "serpapi", tool: "get_offer", params: {
departure_token: "W1siUEVLIi..."
}})

Get booking links and prices for a selected itinerary.

run({ skill: "serpapi", tool: "get_booking_options", params: {
booking_token: "WyJDalJJ..."
}})

Check if prices are high or low for a route.

run({ skill: "serpapi", tool: "get_price_insights", params: {
departure_id: "AUS",
arrival_id: "JFK",
outbound_date: "2026-04-15",
return_date: "2026-04-22"
}})

Common codes for reference:

  • AUS — Austin-Bergstrom
  • JFK — New York JFK
  • LAX — Los Angeles
  • SFO — San Francisco
  • ORD — Chicago O’Hare
  • LHR — London Heathrow
  • CDG — Paris Charles de Gaulle
  • NRT — Tokyo Narita
  • HND — Tokyo Haneda

Search for codes at IATA or on Google Flights.

  • Free tier: 100 searches/month
  • Developer: $75/month, 5,000 searches
  • Production: $150/month, 15,000 searches