0

I have a question regarding the quota of the youtube data api. Currently I am getting all videos from a youtube channel I own (about 50 videos), using the youtube data api via react native.

When I check the quota, I see 100 queries used, and I know it is my own, but what I don't understand is why already 100 and not 1. Can someone explain why that is? Because in that way the quota (per day) is gone soon.

Thanks.

udarts
  • 745
  • 1
  • 8
  • 23

1 Answers1

0

Isn't it that you use the Search.list endpoint? This is known (see the linked doc) to be quite expensive: each call of it has a quota cost of 100 units! I suspect that you do confuse the 100 units of quota cost of one query with an actual number of 100 queries each of one unit cost.

Update:

Since confirming that you use the Search.list endpoint, I recommend to replace it with an inexpensive one: the PlaylistItems.list endpoint queried appropriately that have a quota cost of only 3 units. For that go see my answer to a related question.

stvar
  • 6,551
  • 2
  • 13
  • 28
  • Yes, I use the search endpoint: https://www.googleapis.com/youtube/v3/search?key=.....&channelId=........&part=snippet,id&order=date&maxResults=20 – udarts Jun 04 '20 at 20:47