---
title: "天气预报接口（中国天气网）"
author: "rayloo"
date: "2011-04-22T11:21:00Z"
tags: []
slug: "untitled"
draft: false
lastmod: "2011-04-22T11:21:00Z"
id: 1019401
url: "https://rayloo.iteye.com/blog/1019401"
---

中国天气weather.com  
http://m.weather.com.cn/data/101110101.html（六天预报）

http://www.weather.com.cn/data/sk/101110101.html（实时天气信息）

其中101110101是城市的代码，获得城市代码进入

[http://www.weather.com.cn](http://www.weather.com.cn/)  
在搜索框上输入你要需要获得天气的城市，点击查询，即可在地址栏获得相应城市编号，然后替换  
http://m.weather.com.cn/data/101110101.html