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 8538877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:13:39+00:00 2026-06-11T11:13:39+00:00

I was using Google Weather API to fetch weather info, but apparently Google had

  • 0

I was using Google Weather API to fetch weather info, but apparently Google had stopped its service. And I am trying to switch to Yahoo Weather API now.

var WOEID = 2502265;  //random WOEID
$.ajax({
    url: "http://weather.yahooapis.com/forecastjson?w=" + WOEID + "&u=c",
    dataType: 'json',
    success: function(data) {
        console.log(data);
    }
});

However, is there a way that I can get the WOEID by JavaScript only? Because back then I can just do

http://www.google.com/ig/api?hl=en&weather=NYC

and that’s it.

It says on the Yahoo weather API page,

To find your WOEID, browse or search for your city from the Weather home page. The WOEID is in the URL for the forecast page for that city. You can also get the WOEID by entering your zip code on the home page.

But I want to get it by JavaScript, not manually go to weather.yahoo.com and find out the WOEID.

Don’t care about the Cross-Origin Policy because I am using it in an Chrome extension and it does not apply.

  • 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-11T11:13:40+00:00Added an answer on June 11, 2026 at 11:13 am

    Okay I got to know from your comments what exactly you want

    You have a place name and you want to get the WOEID of that place name using javascript ajax calls

    The url to get that is not defined any where you have to use GeoPlanet service to resolve a place to a WOEID

    http://where.yahooapis.com/v1/places.q('Place name')?appid=[yourappidhere] 
    

    OR you have to use Direct YQL some what like this ( use percent encoding in the url for your city name ) appropriately and try doing an ajax call to this

    http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.places%20where%20text%3D%22Place%20name%22&format=xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I developed a weather app using google weather API but from today it stopped
I was using the Google Weather API from quite sometimes but from Yesterday, I
In my application i want to get the weather report I'm using http://www.google.com/ig/api?weather= for
i want to parse google weather API using NSXML so please give me some
I am currently having difficulty using the Google weather API in JavaScript using Mootools.
Possible Duplicate: it's a google weather api?how to parse such kind of data using
I'm using SAX to pull information from the google weather API and I'm having
I decided to pull information from Google's Weather API - The code I'm using
I have created an app for weather reports by using this http://www.google.com/ig/api?weather=paris . It
I am retrieving Google's weather API XML and using PHP. I'm retrieving the weather

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.