0

weather.yahooapis.com/forecastjson NOT FOUND?

Hi all,

I've noticed that my site stopped displaying weather content that I have been pulling from http://weather.yahooapis.com/forecastjson using YQL. It seems that this URL is no longer available? forecastrss is still there (which only displays forecast for 2 days), but forecastjson is no longer available.

Can anyone confirm? I am pretty sure there are lots of other developers who depended on this to pull weather data.

Thanks in advance.

select * from json where url='http://weather.yahooapis.com/forecastjson?w=12797154&d=5&u=f'
cbfunc({
 "query": {
  "count": 0,
  "created": "2012-10-07T06:29:08Z",
  "lang": "en-US",
  "diagnostics": {
   "publiclyCallable": "true",
   "url": {
    "execution-start-time": "1",
    "execution-stop-time": "6",
    "execution-time": "5",
    "http-status-code": "404",
    "http-status-message": "Not Found",
    "proxy": "DEFAULT",
    "content": "http://weather.yahooapis.com/forecastjson?w=12797154&d=5&u=f"
   },
   "error": "Invalid JSON document http://weather.yahooapis.com/forecastjson?w=12797154&d=5&u=f",
   "user-time": "6",
   "service-time": "5",
   "build-version": "30549"
  },
  "results": null
 }
});

by
9 Replies
  • same here!
    0
  • same here!!!
    0
  • same here.
    0
  • Hi All,

    Not sure where you found: http://weather.yahooapis.com/forecastjson but forecastjson is not an officially supported endpoint.

    Please use: 
     SELECT * FROM weather.forecast WHERE woeid="12797154" and u="f"


    Thanks -Paul

    0
  • Thank you for the reply Paul,

    But is there a way to have a 5-day forecast with that query? The only reason I've used forecastjson was that I could pass d=5 to have a 5-day forecast, it doesn't seem to be the case with other supported APIs.

    In a nutshell, I need a service that supports both WOEID and 5-day forecast, forecastjson used to be able to do all that, until it stopped working.

    Would appreciate any pointers/help if this can be achieved with other supported weather endpoints by Yahoo.

    Thanks.


    QUOTE(Paul Donnelly @ 8 Oct 2012 12:09 PM)
    Hi All,

    Not sure where you found: http://weather.yahooapis.com/forecastjson but forecastjson is not an officially supported endpoint.

    Please use: 
     SELECT * FROM weather.forecast WHERE woeid="12797154" and u="f"


    Thanks -Paul

    0
  • btw "SELECT * FROM weather.forecast WHERE woeid="12797154" and u="f"" has two days forecast.
    0
  • hi everyone! can anyone help here? if I go to the url for my json call in browser i get data, but try to output to console, alert, or element I get nothing. run some ajax error catching and I get 'unknown error'. var url = http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid=%2222664085%22and%20u=%22f%22&format=json&callback=c

    $.getJSON(url, function(data) {
        console.log('t');
        console.log(data);
    }).error(function(e, x, settings, exception) {
                var message;
                var statusErrorMap = {
                    '400' : "Server understood the request but request content was invalid.",
                    '401' : "Unauthorised access.",
                    '403' : "Forbidden resouce can't be accessed",
                    '500' : "Internal Server Error.",
                    '503' : "Service Unavailable"
                };
                if (x.status) {
                    message =statusErrorMap[x.status];
                                    if(!message){
                                          message="Unknow Error \n.";
                                      }
                }else if(exception=='parsererror'){
                    message="Error.\nParsing JSON Request failed.";
                }else if(exception=='timeout'){
                    message="Request Time out.";
                }else if(exception=='abort'){
                    message="Request was aborted by the server";
                }else {
                    message="Unknow Error \n.";
                }
                console.log(message);
                     }).success(function() { alert("second success"); });
    
    0
  • actually below seemed to work, even though I've been trying for hours and I thought I had tried this already

    var query = escape('select item from weather.forecast where woeid="22664085"');
    var  url = "<http://query.yahooapis.com/v1/public/yql?q=>" + query + "&format=json&callback=?";
    $.getJSON(url, function(data) {
         console.log(data);
    }
    
    0
  • ...without the '< >' brackets on the url, put there by the interface

    0

Recent Posts

in YQL