C/2/place/nearby users/list/biz

跳转到: 导航, 搜索

place/nearby_users/list/biz

获取附近的人。

URL

https://c.api.weibo.com/2/place/nearby_users/list/biz.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求所有商业接口:

    • 50000次/小时/IP;

请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false 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
        },
        ...
    ]
}
//失败返回
{
    "request": "/place/nearby_users/list/biz.json",
    "error_code": XXXXX,
    "error": "error message."
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

其他



Language: [[{{{2/uri}}}|中文]]


api评价