Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

yahoo new weather api url not working?

Hello team,

Please help me to create new yahoo weather API and help to Create a proxy to find sunset time for a given city

The city name should be passed in request url. (Ex: http://myproxyurl.com/sunset/city/Bangalore)

Solved Solved
1 12 2,727
1 ACCEPTED SOLUTION

Hi @pratheek hipparagi, PFA proxy for your reference. I have tried to cover most of the point,

yahoo-rev1-2018-06-05.zip

  1. I am passing two query params in request URL, city & format
  2. Extracting them & forming the query required for Yahoo
  3. Used APIkey policy in the header
  4. Used Quota with an ApiKey identifier & allows 10pm
  5. Instead of using KVM for backend URL I have used Target Server (Why do you want to use KVM for backend URL?)
  6. there is no need to use JSON-XML policy, because the Yahoo API does it for us.
org-env.apigee.net/weather/v1?format=json&city=Hyderabad
org-env.apigee.net/weather/v1?format=xml&city=Chennai
use a Header with valid APIKEY

This is one approach, we can implement the same in various approaches like,

  • we can pass city dynamic values within {uriParams}
  • we can pass format values using Content-type, Accept Headers.

View solution in original post

12 REPLIES 12
Top Solution Authors