Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8997803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:56:18+00:00 2026-06-15T23:56:18+00:00

I am trying to access Google api client (Ruby) without Oauth.. I have found

  • 0

I am trying to access Google api client (Ruby) without Oauth..
I have found this info:

http://thecodeabode.blogspot.com.au/2012/07/google-api-ruby-client-authorizing-with.html

But unfortunately, if I follow the instructions (Here is what I do):

 require 'google/api_client'
 client = Google::APIClient.new(:key => "MYKEY",:authorization => nil)    
 yt = client.discovered_api("youtube", "v3")
 result = client.execute(
   :api_method => yt.search.list,
   :parameters => {
     :key => "MYKEY",
     :q => "dogs",
     :part => "topicDetails"
   }
 )

I get

“Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup”

What is wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:56:19+00:00Added an answer on June 15, 2026 at 11:56 pm

    In a nutshell, all of the discovery-based APIs require your calls to be identified. The error you’re getting is what I usually see when a Google API can’t identify your app. You can usually make a handful of unidentified calls, but you’ll almost certainly run into the much-lower “unidentified” quota pretty quickly. You can either authenticate with OAuth (which identifies your app) or you can specify an API key (which identifies your app) or you can do both.

    This is done by setting client.key = "<your api key>" or by passing it into the client constructor (as you’ve done). You should probably also set client.user_ip = request.remote_ip (or whatever gets the IP address of the client in your framework of choice), particularly if you’re not authenticating with OAuth.

    It looks like you’re already setting the API key from your example, but it’s possible you’ve got a typo or the key from the wrong API project or you’re running into per-user limits, which setting the user_ip would resolve. Another thing it’s important to understand is that quotas may be specified in terms of queries per day, but then enforced per minute or per hour or over some other time period. So you might have a 10k QPD quota, but that’s only 415 QPH or 7 QPM. I don’t know how the YouTube quotas are enforced, but it’s something to keep in mind.

    One thing you shouldn’t need to do is set the :key in the :parameters argument to your API call. If you want to set it on a per-request basis, that’s just passed in directly as another optional parameter to execute. That should be handled automatically by the client in your case. Probably best to drop that from your code since you’ve already set it in the constructor.

    Final result should be:

    require 'google/api_client'
    client = Google::APIClient.new(:key => "MYKEY", :authorization => nil)    
    yt = client.discovered_api("youtube", "v3")
    result = client.execute(
      :api_method => yt.search.list,
      :authenticated => false,
      :user_ip => request.remote_ip,
      :parameters => {
        :q => "dogs",
        :part => "topicDetails"
      }
    )
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

With the open source project google-api-ruby-client , I'm trying to run the OAuth 2.0
I'm using the Zend_Gdata_Photos PHP client to access the Google Picasa API, trying to
I'm trying to access my Google spreadsheets using the GData API. I have followed
I'm trying to use Google's Custom Search API through the Google API Ruby client
I'm trying to use the google-api-client gem to access the Google Search API for
I have a Google Search Appliance and am trying to access the API to
I'm trying to access a google app through the Python Client using this code
I'm trying to get access to the Google Drive API using RestKit on iOS
I am trying to access our site's Web usage statistics through Google Analytics API.
I am trying to access Google+ APIs with Oauth 2.0 in iPhone Application. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.