添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am planning to develop an iOS weather application that is non-commercial which retrieves JSON feed from Yahoo's Weather API.

Documentation: https://developer.yahoo.com/weather/

However, I don't understand the purpose of needing an API-Key? I am successful in retrieving weather data by calling this URL with parameters and it gives back a JSON data. (Note: The URL below is from the JS example but same concept as if it were Objective-C)

https://query.yahooapis.com/v1/public/yql?q=select wind from weather.forecast where woeid in (select woeid from geo.places(1) where text='chicago, il')&format=json&callback=callbackFunction

The documentation says non-commercial use is restricted to 2000 queries per day, but how is this tracked if no unique keys were ever used? What is the correct "legal" way in using this API?

I found this old question being asked, however the answer wasn't sufficient: Does Yahoo Weather API needs an Consumer API Key?

Any input would be appreciated!

Side Note - Any other FREE weather api tool that do not limit queries and are for non-commercial publication use recommend will also be accepted as an answer

Upon further research, Yahoo offers both a public and OAuth APIs for developers. The public API that is related by querying the URL given above limits users to 2,000 queries per hour per IP Address.

https://developer.yahoo.com/yql/guide/usage_info_limits.html

Hi, im using the public api but if i try to request two times in 10 seconds im getting a null weather, is necesary the api key? – Pablo Cegarra Jan 7, 2017 at 12:43 I don't think there's a rate limit besides the 2,000 queries per hour. How are you requesting the JSON feed? – Miket25 Jan 9, 2017 at 20:17 It seens a problem from yahoo, see thise forum: forums.developer.yahoo.net/discussion/11869/… forums.developer.yahoo.net/discussion/12201/… – Pablo Cegarra Jan 10, 2017 at 6:45

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.