{"uid":"cap_y4768E3CQDWIFjblSegPh","slug":"rafid-intelligence-network-flight-compare-api-52ec8458","name":"Rafid Intelligence Network — Flight Compare API","description":"Rafid Agent API provides structured intelligence and paid APIs for AI agents across property, company and risk, supplier, finance, document, website, automotive, logistics, recruitment, trading, voice, video and business-planning workflows.","url":"https://api.rafidsystem.com/api/v1/x402/travel/flight-compare?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"fastest":null,"cheapest":null,"dataMode":"live","provider":{"name":"letsfg","status":"ok","upstreamLatencyMs":0},"comparison":{"priceRange":null,"durationRangeMinutes":null},"searchedAt":"2026-10-04T00:00:00.000Z","fewestStops":null,"methodology":{"type":"deterministic_weighted_comparison","scope":"Returned offers only","weights":{"priceWeight":0.5,"stopsWeight":0.15,"durationWeight":0.25,"reliabilityWeight":0.1},"missingSignals":"Missing signals excluded"},"reasonCodes":["NO_FLIGHT_RESULTS"],"recommended":null,"alternatives":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Y5MxTbJPPGbNJKU6-Whm8","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares flight options across providers and returns structured recommendations ranked by price, duration, stops, and reliability using deterministic weighted scoring.","exampleAgentPrompt":"Can you compare flights from London Heathrow to New York JFK departing on December 10th for 2 passengers in economy, and tell me which option is cheapest, fastest, and has the fewest stops?","exampleUseCases":[{"title":"Business trip flight optimization","prompt":"I need to fly from Dubai to Singapore for a business meeting on March 15th — can you compare all available flights and tell me which one offers the best balance of price, travel time, and fewest layovers?"},{"title":"Budget traveler lowest fare search","prompt":"What's the absolute cheapest flight from Paris CDG to Bangkok BKK on November 22nd for one person in economy? Show me the price range and any alternatives too."},{"title":"Time-sensitive fastest route comparison","prompt":"I have a tight schedule — compare flights from Los Angeles LAX to Toronto YYZ on February 5th and tell me which one gets me there the fastest, even if it costs a bit more."}],"resultDescription":"Returns a structured JSON object containing: the cheapest, fastest, and fewest-stops flight options; a recommended flight based on deterministic weighted scoring (price 50%, duration 25%, stops 15%, reliability 10%); a list of alternative options; price range and duration range across all results; provider name and upstream latency; search timestamp; methodology details; and reason codes (e.g. NO_FLIGHT_RESULTS) if no results are found.","failureModes":["NO_FLIGHT_RESULTS returned when no flights found for the route/date combination — all ranked fields return null","Upstream provider (letsfg) unavailable — provider status field indicates error","Invalid route or date parameters cause empty comparison results","Missing required body fields result in schema validation error","Live data mode may return stale or incomplete results during provider outages"],"whenToPreferThis":"Choose this endpoint when you need a structured, scored comparison of flight options rather than raw search results — it is ideal for AI agents that need to present a clear recommendation (cheapest, fastest, or best overall) without doing their own ranking logic. Prefer this over raw flight search APIs when deterministic weighted scoring with reason codes is needed for downstream decision-making in travel planning workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:04:26.853Z","isFirstParty":false,"canonicalSlug":"rafid-intelligence-network-flight-compare-api-52ec8458"}