Help us understand the problem. What is going on with this article?

Twitterのトレンドを取得する際に指定できる日本の都市

More than 1 year has passed since last update.

Twitterのapiを叩いてトレンドを取得する際にWOEIDを指定して、特定の地域のトレンドを取得することができます。
しかし、日本全国の都市を指定できる訳ではなくtwitter側で決められた場所だけです。
このAPIを叩けば指定可能な全てのWOEIDが取れるのですが、その中からいちいち日本の都市を探すのも面倒なので、指定できる日本の都市名とWOEIDを載せておきます(自分のためにも)

都市名 WOEID
Kitakyushu 1110809
Saitama 1116753
Chiba 1117034
Fukuoka 1117099
Hamamatsu 1117155
Hiroshima 1117227
Kawasaki 1117502
Kobe 1117545
Kumamoto 1117605
Nagoya 1117817
Niigata 1117881
Sagamihara 1118072
Sapporo 1118108
Sendai 1118129
Takamatsu 1118285
Tokyo 1118370
Yokohama 1118550
Okinawa 2345896
Osaka 15015370
Kyoto 15015372
Okayama 90036018
Japan 23424856
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした