第19行: | 第19行: | ||
{{api_args|endbirth|false|int|与参数startbirth一起定义过滤年龄段,数值为年龄大小,默认为空。}} | {{api_args|endbirth|false|int|与参数startbirth一起定义过滤年龄段,数值为年龄大小,默认为空。}} | ||
{{api_args|offset|false|int|传入的经纬度是否是纠偏过,0:没纠偏、1:纠偏过,默认为0。}}| | {{api_args|offset|false|int|传入的经纬度是否是纠偏过,0:没纠偏、1:纠偏过,默认为0。}}| | ||
+ | apiToolPara=key1=lat&value1=39.98437&key2=long&value2=116.30987| | ||
result= | result= | ||
<pre> | <pre> |
2012年9月4日 (二) 16:55的版本
place/nearby_users/list
获取附近的人
URL
https://api.weibo.com/2/place/nearby_users/list.json
支持格式
JSON
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
访问级别:高级接口(需要授权)
频次限制:是
关于频次限制,参见 接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
lat | true | float | 动态发生的纬度,有效范围:-90.0到+90.0,+表示北纬,默认为0.0。 |
long | true | float | 动态发生的经度,有效范围:-180.0到+180.0,+表示东经,默认为0.0。 |
count | false | int | 单页返回的记录条数,最大为50,默认为20。 |
page | false | int | 返回结果的页码,默认为1。 |
range | false | int | 查询范围半径,默认为2000,最大为11132。 |
sort | false | int | 排序方式,0:按时间、1:按距离、2:按社会化关系,默认为2。 |
filter | false | int | 用户关系过滤,0:全部、1:只返回陌生人、2:只返回关注人,默认为0。 |
gender | false | int | 性别过滤,0:全部、1:男、2:女,默认为0。 |
level | false | int | 用户级别过滤,0:全部、1:普通用户、2:VIP用户、7:达人,默认为0。 |
startbirth | false | int | 与参数endbirth一起定义过滤年龄段,数值为年龄大小,默认为空。 |
endbirth | false | int | 与参数startbirth一起定义过滤年龄段,数值为年龄大小,默认为空。 |
offset | false | int | 传入的经纬度是否是纠偏过,0:没纠偏、1:纠偏过,默认为0。 |
注意事项
无
调用样例及调试工具
返回结果
JSON示例
{ "users": [ { "id": "2702966545", "idstr": "2702966545", "screen_name": "CiCi丶红", "name": "CiCi丶红", "province": "33", "city": "1", "location": "浙江 杭州", "description": "", "url": "", "profile_image_url": "http://tp2.sinaimg.cn/2702966545/50/5628863789/1", "profile_url": "u/2702966545", "domain": "", "weihao": "", "gender": "m", "followers_count": 0, "friends_count": 0, "statuses_count": 1, "favourites_count": 0, "created_at": "Sun Apr 08 00:00:00 +0800 2012", "following": false, "allow_all_act_msg": false, "geo_enabled": true, "verified": false, "verified_type": -1, "remark": "", "allow_all_comment": true, "avatar_large": "http://tp2.sinaimg.cn/2702966545/180/5628863789/1", "verified_reason": "", "follow_me": false, "online_status": 0, "bi_followers_count": 0, "lang": "zh-cn", "distance": 1300, "last_at": "2012-04-09 22:37:44", "lon": "120.008758", "lat": "30.008058" }, ... ], "total_number": 11, "states": [ { "id": "1076063077", "state": 7 }, ... ] }
关于错误返回值与错误代码,参见 错误代码说明
返回字段说明
无
其他
无
相关问题
{{{relat_qa}}}
到 帮助中心 查看更多问题或提问