{
  "response": {
    "Key": "SFO-ES",
    "orig": {
      "code": "SFO",
      "type": "airport",
      "city": "San Francisco",
      "fullCity": "San Francisco, California",
      "airport": "San Francisco Intl Airport"
    },
    "dest": {
      "code": "ES",
      "type": "country",
      "country": "Spain"
    },
    "faq": {
      "q0": {
        "question": "Which cities in Spain can I fly to from San Francisco?",
        "answer": "From San Francisco you can fly non-stop to Barcelona on Iberia. For Madrid, you will connect through hubs like Dallas, New York or European gateways. Barcelona suits Catalonia and Costa Brava trips, while Madrid gives easy access to Andalusia and central Spain."
      },
      "q1": {
        "question": "How long is the flight from San Francisco to Spain?",
        "answer": "From San Francisco to Spain, a non-stop flight to Madrid typically takes around 11 hours eastbound and close to 12 hours westbound. One-stop itineraries to Madrid or Barcelona usually run 13 to 15 hours total, while reaching cities like Malaga or Valencia often adds another 1 to 2 hours."
      },
      "q2": {
        "question": "Are there direct flights from San Francisco to Spain?",
        "answer": "Non-stop flights from San Francisco to Spain are limited or seasonal, so most trips involve one connection. Common routings go via Madrid, Barcelona or major European hubs such as London, Paris or Amsterdam, with total travel times typically between 12 and 15 hours depending on the layover."
      },
      "q3": {
        "question": "Which airlines fly from San Francisco to Spain?",
        "answer": "From SFO to Spain, fly nonstop on Iberia or connect via European hubs with United, Delta, American, British Airways, Lufthansa, or Air France."
      },
      "q4": {
        "question": "When is the cheapest time to fly from San Francisco to Spain?",
        "answer": "The cheapest months to fly from San Francisco to Spain are March, April, September, and October, while peak summer (June–July) and December holidays bring the highest fares. Booking about 6 to 9 weeks ahead typically yields the best prices, and midweek flights tend to be cheaper than weekend departures, with early-morning or late-evening times often offering lower fares. Peak summer and major holidays like Christmas and New Year's are usually the most expensive periods.",
        "methodology": "This 'good deal' estimate shows a representative best price for each departure date across roughly a 12-month window (about 3 months back and 9 months forward). It is built from real flight prices found by Priceline users searching this route, accumulated into a price history for each departure date. Rather than weighting all of that history equally, we apply exponential time decay so recent prices dominate — a price seen yesterday counts almost in full, one from about a month ago roughly a third, and prices from a few months back very little — giving a figure that tracks today's market instead of a stale long-run average. Clear price outliers are removed before any calculation, departure dates with no observations are filled in from nearby dates, and the resulting curve is lightly smoothed so it reads as a clean seasonal trend rather than day-to-day noise. This booking-window guidance is built from the same real flight prices found by Priceline users searching this route, re-grouped by how many days before departure each price was seen (from the departure day out to about 180 days ahead) across the route's price history. At each booking lead time we report the 25th-percentile price — the cheaper end of what travelers were quoted, rather than the rock-bottom minimum (which can be a fluke) or the average (which is pulled up by expensive last-minute fares). The buy-or-wait advice then applies a risk premium that grows as departure approaches, since seat availability shrinks and prices become less predictable; using that adjusted curve we flag windows where waiting is likely to save a meaningful amount (at least $20 or 5%) versus windows where booking now is the better call. Isolated single-day recommendations are filtered out, so the advice only reflects a window that holds for several days in a row."
      },
      "q5": {
        "question": "How far in advance should I book flights from San Francisco to Spain?",
        "answer": "For flights from San Francisco to Spain, the optimal booking window is typically 6 to 9 weeks before departure, when average fares drop to around $803, though the absolute cheapest single day to book is about 30 days out at $795.",
        "methodology": "This booking-window guidance is built from the same real flight prices found by Priceline users searching this route, re-grouped by how many days before departure each price was seen (from the departure day out to about 180 days ahead) across the route's price history. At each booking lead time we report the 25th-percentile price — the cheaper end of what travelers were quoted, rather than the rock-bottom minimum (which can be a fluke) or the average (which is pulled up by expensive last-minute fares). The buy-or-wait advice then applies a risk premium that grows as departure approaches, since seat availability shrinks and prices become less predictable; using that adjusted curve we flag windows where waiting is likely to save a meaningful amount (at least $20 or 5%) versus windows where booking now is the better call. Isolated single-day recommendations are filtered out, so the advice only reflects a window that holds for several days in a row."
      },
      "q6": {
        "question": "What are the most popular cities to visit in Spain?",
        "answer": "Spain's top cities from SFO are Barcelona for Gaudí and beaches, Madrid for art and nightlife, Seville for flamenco and history, and Granada for the Alhambra. All connect easily via high-speed train or short domestic flights."
      },
      "q7": {
        "question": "Do I need a visa to travel from San Francisco to Spain?",
        "answer": "As a U.S. citizen flying from San Francisco to Spain for a short tourist trip, you do not need a visa for stays up to 90 days within the Schengen area. However, an electronic travel authorization called ETIAS is expected to be required in the near future, so check current entry requirements before departure."
      },
      "q8": {
        "question": "Which airports in Spain are best to fly into from San Francisco?",
        "answer": "From San Francisco, Barcelona El Prat and Madrid Barajas are the best options. Barcelona often has more nonstop flights and is ideal for the Mediterranean coast, while Madrid provides the most extensive high-speed train connections and domestic flights to other regions. For southern beach resorts, consider connecting through Madrid to Malaga."
      },
      "q12": {
        "question": "When is the best time of year to visit Spain?",
        "answer": "For Spain, March to June and September to early November offer mild weather and fewer crowds than summer, especially in Barcelona, Madrid and Seville."
      }
    }
  }
}