Search code examples
youtube-apiyoutube-data-api

Does minimize requests fields saves more quota?


Since YouTube Data API comes with quota limitation, so we could trace our quota based on sent requests with given quota in the documentation.

But the documentation only comes down to "part" level instead of "fields" level, so for example...

YouTube_Service_Public.search().list(
    part="snippet",
    channelId=channel_id,
    maxResults=50,
    order="date",
    type="video",
    fields="items(etag,id/videoId,snippet(publishedAt,thumbnails/default,title))"
).execute()
YouTube_Service_Public.search().list(
    part="snippet",
    channelId=channel_id,
    maxResults=50,
    order="date",
    type="video"
).execute()

Does the first request cost less quota than the latter?

or do they cost equally 100 quotas since they all request "snippet" part?


Solution

  • Quota cost would be the same. The fields parameter is just to reduce bandwidth usage.