You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

SkyScanner RapidAPI未返回返程航班问题求助

Troubleshooting Missing Return Flight Data in Skyscanner Browsequotes API Call

Hey there! I’ve worked with the Skyscanner API via RapidAPI a few times, so let’s break down why you’re not seeing return flight quotes in your response.

First, let’s look at the core issue: your request includes the inboundpartialdate parameter, but the returned Quotes array only has an outbound flight entry. Here are the most likely reasons and fixes:

1. No Available Return Flight Quotes for Your Selected Date

The Browsequotes API only returns quotes where both outbound and inbound flights exist and have pricing data for your specified dates. For your query (outbound 2019-12-01, inbound 2019-12-10), it’s possible that:

  • The carriers serving this route (like Alaska Airlines, jetBlue) don’t operate return flights on 2019-12-10
  • Skyscanner’s database doesn’t have pricing data for that specific inbound date yet

Fix: Try adjusting the inbound date to a nearby day (e.g., 2019-12-08 or 2019-12-11) or use a broader date range like 2019-12 (instead of a specific day) to see if any return quotes show up.

2. Verify Parameter Format & Usage

Double-check that your inboundpartialdate is formatted correctly (you’re using YYYY-MM-DD, which is right), but keep in mind:

  • The inboundpartialdate is a "partial" date, so using just the year and month (2019-12) will return all possible return flights in December 2019. This is a good way to confirm if there are any return options at all for your route.
  • Make sure your market (UK), currency (GBP), and language (en-US) parameters are compatible with the route you’re querying—though this is less likely to be the issue here since you’re getting outbound data.

3. Rule Out Code/Request Issues

To confirm it’s not a problem with your Go code, test the same API call using a tool like Postman or curl. Here’s a sample curl command you can use (replace YOUR_API_KEY with your actual RapidAPI key):

curl --request GET \
  --url 'https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/browsequotes/v1.0/UK/GBP/en-US/SFO-sky/JFK-sky/2019-12-01?inboundpartialdate=2019-12-10' \
  --header 'X-RapidAPI-Key: YOUR_API_KEY' \
  --header 'X-RapidAPI-Host: skyscanner-skyscanner-flight-search-v1.p.rapidapi.com'

If the curl response also lacks return quotes, it’s definitely an API data availability issue, not your code.

4. Try the BrowseRoutes API as an Alternative

If Browsequotes isn’t giving you the return data you need, consider using Skyscanner’s BrowseRoutes API instead. This endpoint is designed to show all available route combinations (including round-trip) for a given origin/destination and date range, which might surface return options that Browsequotes misses.

Final Thoughts

Most likely, the issue is simply that there are no return flight quotes available for your exact inbound date. Adjusting the date or using a broader range should help you see if round-trip options exist for that route.

内容的提问来源于stack exchange,提问作者CJW

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 08:46:59