{"uid":"cap_6nDoau6iE0RXWvZpHOoZt","slug":"x402-gateway-production-up-railway-app-421a1e6d","name":"x402-gateway-production.up.railway.app Flight Search","description":"Search flights via Google Flights (SerpApi). Returns best flights, prices, airlines, and price insights.","url":"https://x402-gateway-production.up.railway.app/api/travel/flights","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["origin","destination","departureDate"],"properties":{"stops":{"type":"string","description":"0=Nonstop only, 1=Up to 1 stop, 2=Up to 2 stops"},"adults":{"type":"string","default":"1","description":"Number of adult passengers"},"origin":{"type":"string","example":"JFK","description":"Departure airport IATA code"},"children":{"type":"string","description":"Number of children"},"currency":{"type":"string","default":"USD","description":"Currency code (e.g. USD, EUR)"},"maxPrice":{"type":"string","description":"Maximum price filter"},"returnDate":{"type":"string","description":"Return date for round trips (YYYY-MM-DD)"},"destination":{"type":"string","example":"LAX","description":"Arrival airport IATA code"},"travelClass":{"type":"string","default":"1","description":"1=Economy, 2=Premium Economy, 3=Business, 4=First"},"departureDate":{"type":"string","example":"2026-04-15","description":"Departure date (YYYY-MM-DD)"}},"additionalProperties":false}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.020000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wIEDTbmCeDWNs3Z5g-_a_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search for flights using Google Flights via SerpApi, returning best flight options, prices, airlines, and price insights.","exampleAgentPrompt":"Search Google Flights for round-trip tickets from JFK to London Heathrow, departing June 15 and returning June 22, for 2 passengers in economy class — show me the best prices and airlines.","exampleUseCases":[{"title":"Find cheap flights to Paris","prompt":"Find me the cheapest one-way flights from Chicago O'Hare to Paris Charles de Gaulle departing next Friday for one passenger in economy — show me the best options with prices and any price insights on whether it's a good time to book."},{"title":"Compare business class flights to Tokyo","prompt":"Search for round-trip business class flights from Los Angeles to Tokyo Narita, departing March 10 and returning March 24, for 2 passengers — I want to see the top airlines, prices, and whether current fares are considered high or low for this route."},{"title":"Best last-minute flights from Miami","prompt":"Look up available flights from Miami to New York JFK for tomorrow morning, just one passenger in economy — what are the best options and are the prices typical for this route right now?"}],"resultDescription":"A list of best flight options including airline names, departure and arrival times, layovers, prices per passenger, total prices, and price insights (e.g. whether current prices are low, typical, or high for the route).","failureModes":["Invalid or unrecognized airport/city codes return an error","Dates in the past or improperly formatted may cause lookup failure","SerpApi rate limits or outages result in upstream errors","No flights available for the requested route/date combination","Missing required parameters (origin, destination, date) result in a 400-level error"],"whenToPreferThis":"Choose this endpoint when you need real-time flight search data powered by Google Flights, including price insights and best-flight recommendations, as a lightweight $0.02 pay-per-call alternative to direct SerpApi integration or full travel booking APIs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-18T15:51:33.220Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T11:43:51.252Z","isFirstParty":false}