一:此API目前支持以下基本接口:
- item_get-獲取58同城詳情數(shù)據(jù)
- item_search-獲取58同城搜索數(shù)據(jù)
- item_area-獲取58同城地區(qū)類(lèi)列表
二:wbtc.item_get
公共參數(shù) 注冊(cè)調(diào)用KEY
名稱(chēng) | 類(lèi)型 | 必須 | 描述 |
---|---|---|---|
key | String | 是 | 注冊(cè)調(diào)用key(必須以GET方式拼接在URL中) |
secret | String | 是 | 調(diào)用密鑰 |
api_name | String | 是 | API接口名稱(chēng)(包括在請(qǐng)求地址中)[item_search,item_get,item_search_shop等] |
cache | String | 否 | [yes,no]默認(rèn)yes,將調(diào)用緩存的數(shù)據(jù),速度比較快 |
result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回?cái)?shù)據(jù)格式,默認(rèn)為json,jsonu輸出的內(nèi)容中文可以直接閱讀 |
lang | String | 否 | [cn,en,ru]翻譯語(yǔ)言,默認(rèn)cn簡(jiǎn)體中文 |
version | String | 否 | API版本 |
三:請(qǐng)求參數(shù)
請(qǐng)求參數(shù):item_id=yewu/62605996697363x&city=北京
參數(shù)說(shuō)明:item_id:項(xiàng)目ID
city:城市名稱(chēng)
四:請(qǐng)求示例
# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 假設(shè)API封裝接口地址 # API_URL = "o0b.cn/ibrad "
# 請(qǐng)求示例 url 默認(rèn)請(qǐng)求參數(shù)已經(jīng)做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)
五:響應(yīng)示例
{
"item": {
"_ddf": "jasper",
"adress": "",
"adress_url": "",
"city": "北京",
"desc": "網(wǎng)絡(luò)銷(xiāo)售崗位職責(zé):1. 負(fù)責(zé)公司產(chǎn)品的線(xiàn)上銷(xiāo)售與推廣;2. 操作管理網(wǎng)上貿(mào)易平臺(tái)并發(fā)布產(chǎn)品信息;3. 收集同行及競(jìng)品動(dòng)態(tài);4. 完成每日銷(xiāo)售任務(wù)。職位要求:1. 市場(chǎng)營(yíng)銷(xiāo)相關(guān)專(zhuān)業(yè),大專(zhuān)及以上學(xué)歷;2. 有1年以上網(wǎng)絡(luò)銷(xiāo)售經(jīng)驗(yàn)優(yōu)先;3. 熟悉電商操作,精通各類(lèi)網(wǎng)絡(luò)銷(xiāo)售技巧;4. 溝通能力強(qiáng),責(zé)任心強(qiáng),人品端正;5. 55歲以?xún)?nèi),有夢(mèng)想、有事業(yè)心者優(yōu)先。工作時(shí)間:根據(jù)業(yè)務(wù)需求靈活安排薪資福利:薪資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": "網(wǎng)絡(luò)銷(xiāo)售",
"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"
}
注釋?zhuān)?8 同城不同業(yè)務(wù)場(chǎng)景的詳情數(shù)據(jù) API 返回值有所不同