{"uid":"cap_Lu6RxAkCwLbmNWMl3BPkL","slug":"anyapi-flights-search-6ddbc53a","name":"AnyAPI Flights Search","description":"1,200+ scraping and data APIs behind one key. Pay per request in real dollars. No subscriptions, nothing monthly, nothing to cancel.","url":"https://api.getanyapi.com/v1/run/flights.search","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"type":"object","properties":{"body":{"type":"object","title":"Google Flights search input","example":{"limit":3,"arrivalId":"LAX","departureId":"JFK","outboundDate":"2026-09-01"},"required":["departureId","arrivalId","outboundDate"],"properties":{"limit":{"type":"integer","maximum":20,"minimum":1,"description":"Maximum number of results to return (1–20, default 20). You are billed per result returned, so a lower limit costs less."},"currency":{"type":"string","default":"USD","description":"ISO currency code for prices (e.g. USD, EUR)."},"arrivalId":{"type":"string","description":"Arrival airport code, comma-separated for multiple (e.g. JFK)."},"returnDate":{"type":"string","description":"Return date in YYYY-MM-DD format for round trips (e.g. 2026-07-22)."},"departureId":{"type":"string","description":"Departure airport code, comma-separated for multiple (e.g. LAX)."},"outboundDate":{"type":"string","description":"Departure date in YYYY-MM-DD format (e.g. 2026-07-15)."}},"additionalProperties":false}}},"output":{"type":"object","properties":{"example":{"type":"object","required":["output","provider","costUsd"],"properties":{"items":{"type":"integer","description":"Number of result rows returned. For per-result SKUs the per-item cost is charged against this count; for input-priced SKUs the charge is per submitted input, independent of this count."},"output":{"type":"object","title":"Google Flights search output","required":["found","data"],"properties":{"data":{"oneOf":[{"type":"null"},{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"type":"object"},"description":"Flight itinerary records: airline, departure and arrival airports and times, stops, duration, and price."}},"additionalProperties":false}]},"found":{"type":"boolean"}},"additionalProperties":false},"costUsd":{"type":"number","description":"Amount charged in USD for this call."},"provider":{"type":"string","description":"Always \"AnyAPI\"."}}}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.015","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rxvFm3JAJLtspCa5rVadf","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.015","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches for available flights by scraping real-time flight data and returning results including routes, prices, and schedules","exampleAgentPrompt":"Search for round-trip flights from JFK to London Heathrow departing March 15 and returning March 22, for 2 passengers in economy class, and show me the cheapest options.","exampleUseCases":null,"resultDescription":"Returns a JSON object containing available flight listings for the queried route and dates, including airline, departure and arrival times, layover information, cabin class, and ticket prices.","failureModes":["No flights found for the given route or date — returns empty results","Invalid airport codes — returns error indicating bad input","Date in the past — may return error or empty results","Upstream scraping failure — intermittent errors when source site is unavailable","Rate limiting or payment failure — request rejected if wallet balance is insufficient"],"whenToPreferThis":"Use this endpoint when you need real-time flight search data without committing to a monthly subscription, paying only $0.015 per call. Ideal for agents that need occasional or bursty flight lookups without maintaining dedicated travel API credentials. Prefer this over direct airline APIs when you need a unified interface and per-request billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":3,"lastUsedAt":"2026-07-12T03:02:14.246Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:51:19.718Z","isFirstParty":false}