Sky Scrapper

免费增值
通过 apiheya | 已更新 14 days ago | Travel
人气

9.9 / 10

延迟

5,881ms

服务等级

100%

Health Check

100%

返回所有讨论

Is there a way to limit the number of results we get from searchFlights endpoint?

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t
4 months ago

Hi,

We were working with this API. Although it works really well but the problem we are facing is that the searchFlights endpoint takes almost 20 secs to fetch the results which is alot unfortunately for our use case.
Is there a way we can limit the number of responses from this endpoint se we may get faster results?

Thanks.

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t Commented 4 months ago

Hello, Any update in this regard will be greatly appreciated Thanks.

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t Commented 4 months ago

Hello,

Do you have any update in this regard?

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t Commented 4 months ago

Sorry for the late response. But we are currently subscribed to the pro plan and we may switch to the ultra plan in the future.

Rapid account: Apiheya
apiheya Commented 4 months ago

Hello,

Certainly, we can provide an API for you, but it will take at least 2 working days to develop. Do you have a plan that you subscribe to?

Regards.

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t Commented 4 months ago

Interested in that API for sure. Can you detail how I can access it? Thanks again for your response.

Rapid account: Apiheya
apiheya Commented 4 months ago

Yes, that’s correct, but you cannot limit the number of recodes. Initially, it may send as many records as it can. Let’s say there are 300 records total. The first request can give 20 or so, while the next request can give 150 records. To fetch all 300 records, you must call the same API multiple times.

Rapid account: Sami Z Sly Si 9 T
sami-ZSlySi_9t Commented 4 months ago

Thank you for getting back to me.

If I understand correctly, is there a possibility that we can poll the API uptil a certain number of results are obtained and then not send any more requests. Let me know if that’s possible on your end.
Or let me know if there’s a possibility for us to implement this strategy.

Thank you again.
Hope to hear from you soon.

Rapid account: Apiheya
apiheya Commented 4 months ago

Hello,

Skyscanner has an API where you need to poll (request the same API again) until it has completed getting all the data. Our current approach involves making multiple API calls on our end to prevent the user from polling on their end. This is causing the search for flights to take a long time. If you wish to conduct a poll on your end, please inform me. We can give you access to that API. To obtain complete records, it’s important to call the same API 2-3 times.

Best Regards.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论