I've written a short script in the Google Spreadsheet script editor to pull subscriber counts from a YouTube channel:

```
   function YouTubeSubs(channel){

   results = YouTube.Channels.list("statistics", {"forUsername":channel});

   return(results.items[0]['statistics']['subscriberCount']);
   }

```

And it works fine in the script editor - when I log the output or debug, it gives me the correct subscriber count.

But when I put it into the spreadsheet for use, such as **=YouTubeSubs('channelName')**, it's giving me this error:

**Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.**

I've used the YouTube API before so I'm not sure why it's happening in this situation. Any ideas?