Search code examples
iosobjective-chttp-referer

Can I use the Google AJAX Feed API REST interface from a native iPhone App?


Google states the following in the AJAX Feed API docs:"Applications MUST always include a valid and accurate http referrer header in their requests."

I am building a native iPhone application and would like to use the Google AJAX Feed API's REST interface from my app's native objective-c code. Is the API only for use on websites, or can I use it from a native app? In the case that I can use it from the native app, what would my http referrer header be?


Solution

  • If you look at the sign up page it refers repeatedly to "your web site" and says the key is only valid for the site you sign up with, so it's fairly clear cut from Google's point of view they only intend it to be used for websites.

    I'm surprised there's no explicit discussion of this in the T&Cs though. My interpretation is you can use it within the letter of the terms, but not within the spirit.