SerpAPI
| Metadata | Value |
|---|---|
| Category | web |
| Capabilities | http |
| Website | https://serpapi.com |
Returns shapes
Section titled “Returns shapes”offer[]— fromsearch_offers,list_offers,get_offer
Connections
Section titled “Connections”api
Readme
Section titled “Readme”Structured Google search results — starting with Google Flights.
- Sign up at https://serpapi.com/users/sign_up
- Get your API key from https://serpapi.com/manage-api-key
- Add credential in AgentOS Settings
Google Flights
Section titled “Google Flights”Search for flight offers using airport IATA codes and dates. Results are offers — priced itineraries containing one or more flight segments.
search_offers
Section titled “search_offers”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}})list_offers
Section titled “list_offers”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_offer
Section titled “get_offer”Get return flight offers after selecting an outbound (round trip flow).
run({ skill: "serpapi", tool: "get_offer", params: { departure_token: "W1siUEVLIi..."}})get_booking_options
Section titled “get_booking_options”Get booking links and prices for a selected itinerary.
run({ skill: "serpapi", tool: "get_booking_options", params: { booking_token: "WyJDalJJ..."}})get_price_insights
Section titled “get_price_insights”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"}})Airport Codes
Section titled “Airport Codes”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.
Pricing
Section titled “Pricing”- Free tier: 100 searches/month
- Developer: $75/month, 5,000 searches
- Production: $150/month, 15,000 searches