{"uid":"cap_BO4TcuT2IVYLqVvR3F0zb","slug":"x402engine-flight-search-api-70aa4efd","name":"x402engine Flight Search API","description":"Search flights via Google Flights (SerpApi). Returns best flights, prices, airlines, and price insights.","url":"https://x402engine.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.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":2,"rating":{"score":"1.00","successRate":"1.00","reviews":2,"stars":"5.0","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"2.0000","medianCents":"2.0000","p90Cents":"2.0000","minCents":"2.0000","maxCents":"2.0000","p95Cents":"2.0000","sampleCount":7,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/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_L-gbHjpI1NexvzojXOf5b","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":"Searches for available flights between two airports on a given date, with optional filters for stops, class, price, and passengers, billed per call via USDC micropayment.","exampleAgentPrompt":"Find me nonstop economy flights from JFK to LAX on May 15 for 2 adults — show options under $400 USD.","exampleUseCases":[{"title":"Budget solo trip planning","prompt":"Search for the cheapest one-stop flights from Chicago O'Hare to London Heathrow departing June 10, economy class, for 1 adult — show anything under $700 USD."},{"title":"Family round-trip vacation search","prompt":"Find round-trip flights from SFO to JFK for 2 adults and 1 child, departing July 4 and returning July 11, economy class — what are my options?"},{"title":"Business travel in premium cabin","prompt":"Look up business class flights from LAX to NRT departing September 3 for 1 adult — I want nonstop only if possible, priced in USD."}],"resultDescription":"Returns a list of available flights matching the search criteria, including airline, departure and arrival times, number of stops, travel class, price in the requested currency, and flight duration. Results are filtered by any optional parameters such as max price, stop count, or travel class provided in the query.","failureModes":["Missing required parameters (origin, destination, departureDate) returns a 400 validation error","Invalid IATA airport codes return no results or an error","Dates in the past or invalid date format (not YYYY-MM-DD) return an error","No flights found for the given route/date combination returns an empty result set","Payment failure or insufficient USDC balance returns HTTP 402","Rate limiting or upstream flight data provider outage returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to search for real-time flight availability and pricing between two specific airports on a given date, especially in a pay-per-call context without a subscription. It is well-suited for travel agents, trip-planning bots, or any workflow where the agent needs live flight data billed as a microtransaction in USDC on Base, MegaETH, or Solana rather than through a traditional API key subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":7,"lastUsedAt":"2026-09-08T00:05:16.155Z","lastSuccessfullyRanAt":"2026-09-08T00:05:16.155Z","lastHealthCheckAt":"2026-09-14T05:14:00.166Z","isFirstParty":false}