为什么YouTube API需要这么长时间才能回复?

问题描述 投票:1回答:1

我使用youtube API在我的android项目中获取1个视频的标签。但是,服务器的响应时间太长(大约30秒)。 Chrome只需1秒钟即可加载youtube API。我尝试在项目上使用其他API,响应时间仅为1秒左右。如果可能,请告诉我原因和解决方案?

https://stackoverflow.com/search?q=YouTube+API+take+so+long+to+respond

enter image description here

android youtube-data-api android-youtube-api
1个回答
0
投票

Youtube API在服务器上具有身份验证。这意味着它首先对API密钥进行身份验证,然后给出结果。我认为这需要时间。我建议您使用jsoup。

© www.soinside.com 2019 - 2024. All rights reserved.