Last active
December 14, 2015 13:15
-
-
Save belltailjp/0e4b63313d99184237f5 to your computer and use it in GitHub Desktop.
Example of Livedoor weather API call (Nagoya-city)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl "http://weather.livedoor.com/forecast/webservice/json/v1?city=230010" | jq '.' | |
{ | |
"pinpointLocations": [ | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2310000", | |
"name": "名古屋市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320200", | |
"name": "岡崎市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320300", | |
"name": "一宮市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320400", | |
"name": "瀬戸市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320500", | |
"name": "半田市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320600", | |
"name": "春日井市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320800", | |
"name": "津島市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2320900", | |
"name": "碧南市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321000", | |
"name": "刈谷市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321101", | |
"name": "豊田市西部" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321200", | |
"name": "安城市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321300", | |
"name": "西尾市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321500", | |
"name": "犬山市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321600", | |
"name": "常滑市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321700", | |
"name": "江南市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2321900", | |
"name": "小牧市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322000", | |
"name": "稲沢市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322200", | |
"name": "東海市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322300", | |
"name": "大府市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322400", | |
"name": "知多市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322500", | |
"name": "知立市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322600", | |
"name": "尾張旭市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322700", | |
"name": "高浜市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322800", | |
"name": "岩倉市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2322900", | |
"name": "豊明市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323000", | |
"name": "日進市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323200", | |
"name": "愛西市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323300", | |
"name": "清須市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323400", | |
"name": "北名古屋市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323500", | |
"name": "弥富市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323600", | |
"name": "みよし市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323700", | |
"name": "あま市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2323800", | |
"name": "長久手市" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2330200", | |
"name": "東郷町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2334200", | |
"name": "豊山町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2336100", | |
"name": "大口町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2336200", | |
"name": "扶桑町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2342400", | |
"name": "大治町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2342500", | |
"name": "蟹江町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2342700", | |
"name": "飛島村" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2344100", | |
"name": "阿久比町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2344200", | |
"name": "東浦町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2344500", | |
"name": "南知多町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2344600", | |
"name": "美浜町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2344700", | |
"name": "武豊町" | |
}, | |
{ | |
"link": "http://weather.livedoor.com/area/forecast/2350100", | |
"name": "幸田町" | |
} | |
], | |
"link": "http://weather.livedoor.com/area/forecast/230010", | |
"forecasts": [ | |
{ | |
"dateLabel": "今日", | |
"telop": "曇り", | |
"date": "2015-12-14", | |
"temperature": { | |
"min": null, | |
"max": null | |
}, | |
"image": { | |
"width": 50, | |
"url": "http://weather.livedoor.com/img/icon/8.gif", | |
"title": "曇り", | |
"height": 31 | |
} | |
}, | |
{ | |
"dateLabel": "明日", | |
"telop": "曇のち雨", | |
"date": "2015-12-15", | |
"temperature": { | |
"min": { | |
"celsius": "9", | |
"fahrenheit": "48.2" | |
}, | |
"max": { | |
"celsius": "16", | |
"fahrenheit": "60.8" | |
} | |
}, | |
"image": { | |
"width": 50, | |
"url": "http://weather.livedoor.com/img/icon/13.gif", | |
"title": "曇のち雨", | |
"height": 31 | |
} | |
}, | |
{ | |
"dateLabel": "明後日", | |
"telop": "晴時々曇", | |
"date": "2015-12-16", | |
"temperature": { | |
"min": null, | |
"max": null | |
}, | |
"image": { | |
"width": 50, | |
"url": "http://weather.livedoor.com/img/icon/2.gif", | |
"title": "晴時々曇", | |
"height": 31 | |
} | |
} | |
], | |
"location": { | |
"city": "名古屋", | |
"area": "東海", | |
"prefecture": "愛知県" | |
}, | |
"publicTime": "2015-12-14T17:00:00+0900", | |
"copyright": { | |
"provider": [ | |
{ | |
"link": "http://tenki.jp/", | |
"name": "日本気象協会" | |
} | |
], | |
"link": "http://weather.livedoor.com/", | |
"title": "(C) LINE Corporation", | |
"image": { | |
"width": 118, | |
"link": "http://weather.livedoor.com/", | |
"url": "http://weather.livedoor.com/img/cmn/livedoor.gif", | |
"title": "livedoor 天気情報", | |
"height": 26 | |
} | |
}, | |
"title": "愛知県 名古屋 の天気", | |
"description": { | |
"text": " 東海道沖には低気圧があって停滞しています。\n\n 東海地方は、おおむね曇りとなっています。\n\n 今夜は、東海道沖の低気圧の影響で曇りで、静岡県では雨の降る所がある\nでしょう。\n\n 明日は、東シナ海の低気圧が、日本海や太平洋沿岸を北東に進むため、お\nおむね曇りで夕方から次第に雨となる見込みです。", | |
"publicTime": "2015-12-14T16:37:00+0900" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment