Skip to content
This repository has been archived by the owner on Sep 22, 2018. It is now read-only.

Weibo Private API

xavieryao edited this page Nov 2, 2014 · 5 revisions

All APIs are analysed by dumping TCP packets using Charles.

  • POST /2/attitudes/create.json
param type description
access_token string N/A
attitude string smile
id int N/A
  • POST /2/attitudes/destroy.json
param type description
access_token string N/A
id int N/A
  • GET /2/search/user.json
param type description
access_token string N/A
count int N/A
page int N/A
q string query string
sdomain int 1 (unknown)
sintro int 1 (unknown)
snick int 1 (unknown)
stag int 1 (unknown)

Response Example:

{
	"users": [{
		"allow_all_act_msg": false,
		"allow_all_comment": true,
		"avatar_hd": "http:\/\/ww2.sinaimg.cn\/crop.0.0.688.688.1024\/bc72084agw1ejlhqk6j37j20j60j6aeq.jpg",
		"avatar_large": "http:\/\/tp3.sinaimg.cn\/3161589834\/180\/40063401591\/1",
		"bi_followers_count": 257,
		"block_app": 1,
		"block_word": 0,
		"city": "1000",
		"class": 1,
		"cover_image": "http:\/\/ww2.sinaimg.cn\/crop.0.0.980.300\/bc72084agw1ei4mpucm8yj20r808cmzp.jpg",
		"cover_image_phone": "http:\/\/ww4.sinaimg.cn\/crop.0.0.0.0\/bc72084ajw1ehytwgzwv5j20hs0hstac.jpg",
		"created_at": "Tue Jan 22 16:57:38 +0800 2013",
		"description": "\/\/\u5657\u54c8\u54c8\u54c8\u6700\u53f3\u8282\u64cd\u6bc1\u4e09\u89c2\u65e0\u6cd5\u76f4\u89c6 \/\/ \u5fae\u4fe1\uff1ajiecao_store \/\/@\u8282\u64cd\u8d29\u5e97 \u5e97\u957f \/\/",
		"domain": "phhzy",
		"favourites_count": 6,
		"follow_me": false,
		"followers_count": 37156,
		"following": false,
		"friends_count": 314,
		"gender": "m",
		"geo_enabled": false,
		"id": 3161589834,
		"idstr": "3161589834",
		"lang": "zh-cn",
		"location": "\u5176\u4ed6",
		"mbrank": 4,
		"mbtype": 12,
		"name": "\u5657\u54c8\u54c8\u54c8\u6700\u53f3",
		"online_status": 0,
		"profile_image_url": "http:\/\/tp3.sinaimg.cn\/3161589834\/50\/40063401591\/1",
		"profile_url": "phhzy",
		"province": "100",
		"ptype": 0,
		"screen_name": "\u5657\u54c8\u54c8\u54c8\u6700\u53f3",
		"star": 0,
		"status": {
			"annotations": [{
				"client_mblogid": "iPhone-96E52CB4-7A5D-47AF-8578-FCEDA0D255C0"
			}],
			"attitudes_count": 0,
			"bmiddle_pic": "http:\/\/ww3.sinaimg.cn\/bmiddle\/bc72084ajw1ejts6v5s36j20hs0d7mya.jpg",
			"comments_count": 0,
			"created_at": "Fri Aug 29 20:31:48 +0800 2014",
			"darwin_tags": [],
			"favorited": false,
			"geo": null,
			"id": 3749003323811424,
			"idstr": "3749003323811424",
			"in_reply_to_screen_name": "",
			"in_reply_to_status_id": "",
			"in_reply_to_user_id": "",
			"mid": "3749003323811424",
			"mlevel": 0,
			"original_pic": "http:\/\/ww3.sinaimg.cn\/large\/bc72084ajw1ejts6v5s36j20hs0d7mya.jpg",
			"pic_ids": ["bc72084ajw1ejts6v5s36j20hs0d7mya"],
			"reposts_count": 0,
			"source": "<a href=\"http:\/\/app.weibo.com\/t\/feed\/9ksdit\" rel=\"nofollow\">iPhone\u5ba2\u6237\u7aef<\/a>",
			"text": "\u771f\u662f\u4e00\u4e2a\u597d\u5efa\u8bae\u554a",
			"thumbnail_pic": "http:\/\/ww3.sinaimg.cn\/thumbnail\/bc72084ajw1ejts6v5s36j20hs0d7mya.jpg",
			"truncated": false,
			"visible": {
				"list_id": 0,
				"type": 0
			}
		},
		"statuses_count": 6113,
		"url": "",
		"verified": false,
		"verified_reason": "",
		"verified_reason_url": "",
		"verified_source": "",
		"verified_source_url": "",
		"verified_trade": "",
		"verified_type": -1,
		"weihao": ""
	}/** Ignored 9 more **/]
}
  • /2/search/statuses.json
param type description
access_token string N/A
count int N/A
page int N/A
q string query string

Response Example:

{
	"statuses": [{
		"created_at": "Fri Aug 29 21:15:26 +0800 2014",
		"id": 3749014304975772,
		"mid": "3749014304975772",
		"idstr": "3749014304975772",
		"text": "\u8fd8\u6709\u4e00\u4e2a\u53eb\u8ba9\u4f60\u6eda\u3002\/\/@\u82b1\u5403\u4e86\u9896\u706b\u866b:\u6eda\u728a\u5b50\u54c8\u54c8\u54c8\u54c8\u54c8",
		"source": "<a href=\"http:\/\/app.weibo.com\/t\/feed\/c66T5g\" rel=\"nofollow\">Android\u5ba2\u6237\u7aef<\/a>",
		"favorited": false,
		"truncated": false,
		"in_reply_to_status_id": "",
		"in_reply_to_user_id": "",
		"in_reply_to_screen_name": "",
		"pic_ids": [],
		"geo": null,
		"user": {
			"id": 2778011457,
			"idstr": "2778011457",
			"class": 1,
			"screen_name": "\u534e\u4e2btou_",
			"name": "\u534e\u4e2btou_",
			"province": "32",
			"city": "5",
			"location": "\u6c5f\u82cf \u82cf\u5dde",
			"description": "\u706b\u661f\u6751\u3002",
			"url": "",
			"profile_image_url": "http:\/\/tp2.sinaimg.cn\/2778011457\/50\/5703042593\/0",
			"cover_image_phone": "http:\/\/ww2.sinaimg.cn\/crop.0.0.640.640\/7c85468fjw1e8yqdl0qy8j20hs0hswfq.jpg",
			"profile_url": "u\/2778011457",
			"domain": "",
			"weihao": "",
			"gender": "f",
			"followers_count": 5368,
			"friends_count": 87,
			"statuses_count": 1891,
			"favourites_count": 28,
			"created_at": "Sun Sep 30 08:29:58 +0800 2012",
			"following": false,
			"allow_all_act_msg": false,
			"geo_enabled": true,
			"verified": false,
			"verified_type": -1,
			"ptype": 0,
			"allow_all_comment": true,
			"avatar_large": "http:\/\/tp2.sinaimg.cn\/2778011457\/180\/5703042593\/0",
			"avatar_hd": "http:\/\/ww2.sinaimg.cn\/crop.0.0.480.480.1024\/a5951741jw8ejd6rw846dj20dc0dcwf8.jpg",
			"verified_reason": "",
			"verified_trade": "",
			"verified_reason_url": "",
			"verified_source": "",
			"verified_source_url": "",
			"follow_me": false,
			"online_status": 1,
			"bi_followers_count": 21,
			"lang": "zh-cn",
			"star": 0,
			"mbtype": 2,
			"mbrank": 1,
			"block_word": 0,
			"block_app": 0,
			"ulevel": 0,
			"badge_top": "",
			"extend": {
				"privacy": {
					"mobile": 1
				},
				"mbprivilege": "0000000000000000000000000000000000000000000000000000000000000000"
			}
		},
		"pid": 3749002472382878,
		"retweeted_status": {
			"created_at": "Fri Aug 29 17:40:33 +0800 2014",
			"id": 3748960227767482,
			"mid": "3748960227767482",
			"idstr": "3748960227767482",
			"text": "#\u534e\u6668\u5b87\u65b0\u6b4cLetYouGo# \u4e09\u5b9d\u51fa\u4e16\u4e00\u65e5\u4e0d\u5230\uff0c\u8fd9\u4e48\u9ad8\u5927\u4e0a\u7684\u82f1\u6587\u540d\uff0c\u8c01\u7ed9\u8d77\u4e2a\u4e2d\u6587\u540d\uff1f\u770b\u5230\u5c0f\u6b4c\u7684\u7ffb\u8bd1\uff0c\u4f60\u4eec\u6709\u4ec0\u4e48\u60f3\u8bf4\u7684 [\u62a0\u9f3b\u5c4e][\u7f9e\u55d2\u55d2]\uff08\u76ae\u4e0b\u7684\u56fe\u7f16\uff0c\u4f60\u8ba9\u5c0f\u6b4c\u7206\u7c97\u771f\u7684\u597d\u5417 \uff09[\u62dc\u62dc][\u522b\u70e6\u6211]",
			"source": "<a href=\"http:\/\/app.weibo.com\/t\/feed\/3G5oUM\" rel=\"nofollow\">iPhone 5s<\/a>",
			"favorited": false,
			"truncated": false,
			"in_reply_to_status_id": "",
			"in_reply_to_user_id": "",
			"in_reply_to_screen_name": "",
			"pic_ids": ["e72bbfb9jw1ejtn2q4l1pj20hs1rh0yu"],
			"thumbnail_pic": "http:\/\/ww4.sinaimg.cn\/thumbnail\/e72bbfb9jw1ejtn2q4l1pj20hs1rh0yu.jpg",
			"bmiddle_pic": "http:\/\/ww4.sinaimg.cn\/bmiddle\/e72bbfb9jw1ejtn2q4l1pj20hs1rh0yu.jpg",
			"original_pic": "http:\/\/ww4.sinaimg.cn\/large\/e72bbfb9jw1ejtn2q4l1pj20hs1rh0yu.jpg",
			"geo": null,
			"user": {
				"id": 3878404025,
				"idstr": "3878404025",
				"class": 1,
				"screen_name": "\u534e\u6668\u5b87\u5168\u7403\u6b4c\u8ff7\u4f1a\u5b98\u535a",
				"name": "\u534e\u6668\u5b87\u5168\u7403\u6b4c\u8ff7\u4f1a\u5b98\u535a",
				"province": "11",
				"city": "1",
				"location": "\u5317\u4eac \u4e1c\u57ce\u533a",
				"description": "\u534e\u6668\u5b87\u5168\u7403\u6b4c\u8ff7\u4f1a\u5b98\u65b9\u5fae\u535a & \u534e\u6668\u5b87\u5168\u7403\u540e\u63f4\u4f1a\u5b98\u65b9\u5fae\u535a",
				"url": "",
				"profile_image_url": "http:\/\/tp2.sinaimg.cn\/3878404025\/50\/40050569907\/1",
				"cover_image": "http:\/\/ww2.sinaimg.cn\/crop.0.0.980.300\/e72bbfb9gw1ei4r6d0hi6j20r808cwjl.jpg",
				"cover_image_phone": "http:\/\/ww4.sinaimg.cn\/crop.0.0.0.0\/e72bbfb9jw1ejaccwfxyuj20hs0hswg8.jpg",
				"profile_url": "u\/3878404025",
				"domain": "",
				"weihao": "",
				"gender": "m",
				"followers_count": 40638,
				"friends_count": 132,
				"statuses_count": 3226,
				"favourites_count": 79,
				"created_at": "Thu Jan 09 17:04:28 +0800 2014",
				"following": false,
				"allow_all_act_msg": false,
				"geo_enabled": true,
				"verified": false,
				"verified_type": -1,
				"ptype": 0,
				"allow_all_comment": true,
				"avatar_large": "http:\/\/tp2.sinaimg.cn\/3878404025\/180\/40050569907\/1",
				"avatar_hd": "http:\/\/ww1.sinaimg.cn\/crop.152.162.1760.1760.1024\/e72bbfb9gw1eetslizsfzj21kw1kw19g.jpg",
				"verified_reason": "",
				"verified_trade": "",
				"verified_reason_url": "",
				"verified_source": "",
				"verified_source_url": "",
				"follow_me": false,
				"online_status": 1,
				"bi_followers_count": 75,
				"lang": "zh-cn",
				"star": 0,
				"mbtype": 12,
				"mbrank": 4,
				"block_word": 0,
				"block_app": 1,
				"ulevel": 0,
				"badge_top": "",
				"extend": {
					"privacy": {
						"mobile": 0
					},
					"mbprivilege": "0000000000000000000000000000000000000000000000000000000000000000"
				}
			},
			"annotations": [{
				"client_mblogid": "iPhone-D3B15018-61F9-4BB8-BC53-EE06F850E1EB"
			}],
			"reposts_count": 838,
			"comments_count": 193,
			"attitudes_count": 624,
			"mlevel": 0,
			"visible": {
				"type": 0,
				"list_id": 0
			},
			"darwin_tags": []
		},
		"annotations": [{
			"client_mblogid": "4d145d09-dc6b-4097-8317-904eb204eed2"
		}],
		"reposts_count": 0,
		"comments_count": 0,
		"attitudes_count": 0,
		"mlevel": 0,
		"visible": {
			"type": 0,
			"list_id": 0
		},
		"darwin_tags": [],
		"category": 31
	} /* Ignored 19 more */ ],
	"total_number": 4146461936
}
  • GET /2/direct_messages/public/messages.json
    Direct messages from unfollowed users.
param type description
access_token string N/A
count int N/A

Response Example:

{
	"direct_messages": [{
		"id": 3747430929726788,
		"idstr": "3747430929726788",
		"created_at": "Mon Aug 25 12:23:40 +0800 2014",
		"text": "你qq多少?帮我看看吧",
		"sys_type": 0,
		"sender_id": 2020462053,
		"recipient_id": 2121014783,
		"sender_screen_name": "极风之客",
		"recipient_screen_name": "一抔学渣",
		"sender": {
			"id": 2020462053,
			"idstr": "2020462053",
			"class": 1,
			"screen_name": "极风之客",
			"name": "极风之客",
			"province": "37",
			"city": "3",
			"location": "",
			"description": "极客。互联网创业,正在由技术向管理转型。 ubuntu使用者,android 开发者,Internet探索者,IT爱好者。",
			"url": "http://www.ckrn.net",
			"profile_image_url": "http://tp2.sinaimg.cn/2020462053/50/5663506072/1",
			"cover_image_phone": "http://ww1.sinaimg.cn/crop.0.0.640.640/7c85468fjw1e8yqchu1r6j20hs0hs40q.jpg",
			"profile_url": "ckuer",
			"domain": "ckuer",
			"weihao": "",
			"gender": "m",
			"followers_count": 478,
			"friends_count": 1358,
			"statuses_count": 3060,
			"favourites_count": 196,
			"created_at": "Mon Apr 18 22:10:19 +0800 2011",
			"following": false,
			"allow_all_act_msg": false,
			"geo_enabled": true,
			"verified": true,
			"verified_type": 0,
			"remark": "",
			"ptype": 0,
			"allow_all_comment": false,
			"avatar_large": "http://tp2.sinaimg.cn/2020462053/180/5663506072/1",
			"avatar_hd": "http://tp2.sinaimg.cn/2020462053/180/5663506072/1",
			"verified_reason": "淄博极风万佳网络文化有限公司 网吧老板",
			"verified_trade": "",
			"verified_reason_url": "",
			"verified_source": "",
			"verified_source_url": "",
			"follow_me": false,
			"online_status": 0,
			"bi_followers_count": 137,
			"lang": "zh-cn",
			"star": 0,
			"mbtype": 2,
			"mbrank": 1,
			"block_word": 0,
			"block_app": 0,
			"ability_tags": "内容资讯,电子商务,社交媒体,互联网营销,互联网技术,运营商,开发者,游戏应用"
		},
		"recipient": {
			"id": 2121014783,
			"idstr": "2121014783",
			"class": 1,
			"screen_name": "一抔学渣",
			"name": "一抔学渣",
			"province": "15",
			"city": "2",
			"location": "",
			"description": "爱Coding 爱M记 最爱Bing. 傲娇腹黑技术宅,软萌高冷小清新。",
			"url": "http://xavieryao.github.io/",
			"profile_image_url": "http://tp4.sinaimg.cn/2121014783/50/5699613280/1",
			"profile_url": "xavieryao",
			"domain": "xavieryao",
			"weihao": "",
			"gender": "m",
			"followers_count": 1929,
			"friends_count": 243,
			"statuses_count": 9126,
			"favourites_count": 43,
			"created_at": "Thu May 05 23:01:30 +0800 2011",
			"following": false,
			"allow_all_act_msg": false,
			"geo_enabled": true,
			"verified": false,
			"verified_type": 220,
			"remark": "",
			"ptype": 0,
			"allow_all_comment": true,
			"avatar_large": "http://tp4.sinaimg.cn/2121014783/180/5699613280/1",
			"avatar_hd": "http://ww3.sinaimg.cn/crop.0.0.639.639.1024/7e6c1dffjw8ei3aucsyf8j20hs0hr3yw.jpg",
			"verified_reason": "",
			"verified_trade": "",
			"verified_reason_url": "",
			"verified_source": "",
			"verified_source_url": "",
			"follow_me": false,
			"online_status": 0,
			"bi_followers_count": 165,
			"lang": "zh-cn",
			"star": 0,
			"mbtype": 2,
			"mbrank": 2,
			"block_word": 0,
			"block_app": 0
		},
		"mid": "3747430929726788",
		"isLargeDm": false,
		"source": "<a href=\"http://app.weibo.com/t/feed/69yt1V\" rel=\"nofollow\">微博 weibo.com</a>",
		"status_id": 0,
		"geo": null,
		"dm_type": 1,
		"media_type": 0,
		"ip": 1875705606,
		"matchKeyword": false,
		"topublic": false,
		"pushToMPS": false,
		"oriImageId": 0
	}, /* Ignored 29 more */],
   "total_number": 45
  • POST /2/statuses/upload_pic.json
param type description
access_token string N/A
pic binary N/A

Example Response:

{
	"pic_id": "7e6c1dffjw1ekmswlfw0pj21jk15on2u",
	"thumbnail_pic": "http://ww2.sinaimg.cn/thumbnail/7e6c1dffjw1ekmswlfw0pj21jk15on2u.jpg",
	"bmiddle_pic": "http://ww2.sinaimg.cn/bmiddle/7e6c1dffjw1ekmswlfw0pj21jk15on2u.jpg",
	"original_pic": "http://ww2.sinaimg.cn/large/7e6c1dffjw1ekmswlfw0pj21jk15on2u.jpg"
}
  • POST /2/account/profile/basic_update.json
param type description
access_token string N/A
description string N/A
gender enum m/f
screen_name string N/A
url string N/A
  • GET 2/statuses/bilateral_timeline.json
    Bilateral follower timeline
param type description
access_token string N/A
baseup int N/A
count int N/A
since_id int N/A
trim_user int N/A
page int N/A

Dumped and Combined by Xavier Yao

Clone this wiki locally