一:此API目前支持以下基本接口:
item_get-获取58同城详情数据
item_search-获取58同城搜索数据
item_area-获取58同城地区类列表
二:wbtc.item_get
公共参数 注册调用KEY
名称 | 类型 | 必须 | 描述 |
---|---|---|---|
key | String | 是 | 注册调用key(必须以GET方式拼接在URL中) |
secret | String | 是 | 调用密钥 |
api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
version | String | 否 | API版本 |
三:请求参数
请求参数:item_id=yewu/62605996697363x&city=北京
参数说明:item_id:项目ID
city:城市名称
四:请求示例
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 假设API封装接口地址 # API_URL = "o0b.cn/ibrad "
# 请求示例 url 默认请求参数已经做URL编码
url = "wbtc/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=62605996697363x&user_id=62605996697363x&nick=北京&page=1"
headers = {
"Accept-Encoding": "gzip",
"Connection": "close"
}
if __name__ == "__main__":
r = requests.get(url, headers=headers)
json_obj = r.json()
print(json_obj)
五:响应示例
{
"item": {
"_ddf": "jasper",
"adress": "",
"adress_url": "",
"city": "北京",
"desc": "网络销售岗位职责:1. 负责公司产品的线上销售与推广;2. 操作管理网上贸易平台并发布产品信息;3. 收集同行及竞品动态;4. 完成每日销售任务。职位要求:1. 市场营销相关专业,大专及以上学历;2. 有1年以上网络销售经验优先;3. 熟悉电商操作,精通各类网络销售技巧;4. 沟通能力强,责任心强,人品端正;5. 55岁以内,有梦想、有事业心者优先。工作时间:根据业务需求灵活安排薪资福利:薪资5000-15000元,包住<img src=\"https://www.o0b.cn/i.php?t.png&rid=1.688c240cbe3f2&p=1965854035&k=i_key&t=1754014734\" style=\"display:none\" />",
"desc_img": [],
"desc_short": "",
"detail_url": "https://bj.58.com/yewu/62605996697363x.shtml",
"id": "yewu/62605996697363x",
"item_imgs": [],
"orginal_price": "",
"price": "5000",
"price_range": [
"5000",
"15000"
],
"props": [],
"seller_info": "",
"title": "网络销售",
"unit": "元/月",
"update_time": "",
"format_check": "ok",
"sales": 0,
"shop_item": [],
"relate_items": []
},
"error": "",
"secache": "79860eece1691466761dbdc6a6bcaa9c",
"secache_time": 1754014734,
"secache_date": "2025-08-01 10:18:54",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:8 max:10000 all[245=8+51+186];expires:2030-10-30",
"execution_time": "1.7",
"server_time": "Beijing/2025-08-01 10:18:54",
"client_ip": "117.44.141.83",
"call_args": {
"num_iid": "yewu/62605996697363x",
"is_promotion": "北京"
},
"api_type": "wbtc",
"translate_language": "zh-CN",
"translate_engine": "baidu",
"server_memory": "3.1MB",
"request_id": "1.688c240cbe3f2",
"last_id": "delay"
}
注释:58 同城不同业务场景的详情数据 API 返回值有所不同