Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

YouTube search for any query cost 100 queries?

$
0
0

Looking by this page -

https://developers.google.com/youtube/v3/determine_quota_cost

Under the "search" function I see that it costs 100 queries per use. I don't know if "search" means the q query parameter in the endpoint, and this is why I am trying to figure out. When I am using the following network call in my app -

interface YoutubeApi {    const val BASE_URL = "https://youtube.googleapis.com/"    @GET("youtube/v3/search?part=snippet&maxResults=3")    suspend fun searchYoutubeVideos(        @Query("q") searchQuery : String,        @Query("key") apiKey : String    ) : NetworkResponse<YoutubeSearchResultModel,String>}

My call always results in costing 100 queries, regardless of me asking only for 3 objects, which is pretty expensive. Am I doing something wrong or this is how it works and this is the price for each search in the YouTube API?


Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>