中国一级特黄大片完整版_国产三A片_欧 美 禁 18_日本V视频,欧美成人精品视频网址,婷婷五月天直播,国产在线美腿视频,五月丁香久久,免费的韩日视频,成在人线AV无码高潮喷水,女人自慰黄区免费看

葫蘆AI智能平臺 API 文檔

為開發(fā)者提供強大的電子元器件數(shù)據(jù)API服務,,支持25,000,000+元器件數(shù)據(jù)查詢

OAuth2 認證 REST API 實時數(shù)據(jù)

產品詳細參數(shù)

查詢元器件詳細規(guī)格

獲取元器件的完整技術參數(shù),、規(guī)格書、圖片等詳細信息

庫存價格

獲取實時價格信息

查詢全球供應商的實時庫存數(shù)量和價格信息

實時庫存搜索

多渠道并發(fā)搜索

支持流式響應的多渠道實時庫存搜索服務

產品詳細參數(shù)查詢

查詢元器件的完整技術參數(shù),、規(guī)格書,、圖片等詳細信息

POST

請求地址

POST https://api.huluic.cn/api/partdetail

請求參數(shù)

參數(shù)名 類型 必填 說明
body string JSON格式的請求體,包含關鍵字 onepartno
token string 認證令牌,,用于驗證請求的合法性

Python 代碼示例

import json
import requests

access_token = "Your Access token"
url = "https://api.huluic.cn/api/partdetail"
headers = {
    "Authorization": f"Bearer {access_token}"
}
form_body = {
    "body": json.dumps({"onepartno": "STM32F103C8T6"})
}
response = requests.post(url, headers=headers, data=form_body)

if response.status_code == 200:
    result = response.json()
    print(result)
else:
    print(f"Error: {response.status_code}")

響應示例

{
    "onepartno": "STM32F103C8T6",
    "code": 200,
    "msg": "Success",
    "results": {
        "category": ["Microcontrollers", "ARM Cortex-M3"],
        "description": [
            "32-bit ARM Cortex-M3 microcontroller",
            "72MHz maximum frequency"
        ],
        "img": [
            {"STM32F103C8T6 Package": "https://example.com/image1.jpg"},
            "https://example.com/image2.jpg"
        ],
        "keyword": "STM32F103C8T6",
        "manufacturer": "STMicroelectronics",
        "onepartno": "STM32F103C8T6",
        "partno": "STM32F103C8T6",
        "pdf": [
            "https://example.com/datasheet.pdf",
            {"Datasheet": "https://example.com/datasheet2.pdf"}
        ],
        "sn": 101409,
        "specs": [
            {"Package": "LQFP48"},
            {"Operating Temperature": "-40 to 85 °C"},
            {"Flash Memory": "64KB"},
            {"RAM": "20KB"}
        ],
        "mrf": "stmicroelectronics",
        "catecode": ["MCU001", "ARM003"],
        "mrflogo": "https://example.com/st_logo.png"
    }
}

庫存價格查詢

獲取全球供應商的實時庫存數(shù)量和價格信息

POST

請求地址

POST https://api.huluic.cn/api/v2/offerGet

?? 此API需要OAuth2認證和IP白名單

請求參數(shù)

參數(shù)名 類型 必填 說明
appname string 應用名稱
q string 查詢關鍵詞(至少3個字符)
currency string 目標貨幣:CNY/USD/EUR/GBP/JPY/HKD/CAD/KRW/SGD,,默認CNY
vat integer 是否含稅:1、0,,默認1
lang string 語言:zh-cn,、en-us,默認zh-cn

Python 代碼示例

import json
import requests

access_token = "Your Access token"
url = "https://api.huluic.cn/api/v2/offerGet"
headers = {
    "Authorization": f"Bearer {access_token}",
    "Content-Type": "application/x-www-form-urlencoded"
}
form_body = {
    "body": json.dumps({
        "appname": "your_app_name",
        "q": "STM32F103C8T6",
        "currency": "USD",
        "vat": 1,
        "lang": "en-us"
    })
}
response = requests.post(url, headers=headers, data=form_body)

if response.status_code == 200:
    result = response.json()
    print(result)
else:
    print(f"Error: {response.status_code}")

實時庫存搜索

支持多渠道并發(fā)搜索和流式響應的實時庫存搜索服務

POST

請求地址

POST https://api.huluic.cn/api/stock_search

?? 支持流式響應,,實時返回搜索結果

請求參數(shù)

參數(shù)名 類型 必填 說明
partno string 要搜索的零件型號
channels array 指定搜索渠道列表,,如:["digikey", "mouser", "element14"]
quantity integer 需求數(shù)量
lang string 語言設置:zh/en,默認zh
userid string 用戶ID
conversation_id string 會話ID

Python 代碼示例

import json
import requests

access_token = "Your Access token"
url = "https://api.huluic.cn/api/stock_search"
headers = {
    "Authorization": f"Bearer {access_token}",
    "Content-Type": "application/x-www-form-urlencoded"
}
form_body = {
    "body": json.dumps({
        "partno": "STM32F103C8T6",
        "channels": ["digikey", "mouser", "element14"],
        "quantity": 100,
        "lang": "zh"
    })
}

# 流式響應處理
response = requests.post(url, headers=headers, data=form_body, stream=True)

for line in response.iter_lines():
    if line:
        data = line.decode('utf-8')
        print(data)
        # 解析JSON數(shù)據(jù)
        try:
            json_data = json.loads(data)
            event_type = json_data.get('event')
            if event_type == 'final_data':
                print("搜索完成")
                break
        except json.JSONDecodeError:
            continue

響應格式說明

  • ? 流式響應:每行為一個JSON對象
  • ? event字段:表示消息類型(message/final_data/spider_results等)
  • ? data字段:包含具體的響應數(shù)據(jù)

認證說明

OAuth2 認證

所有API都需要有效的訪問令牌進行認證,。

Authorization: Bearer YOUR_ACCESS_TOKEN

獲取訪問令牌

請聯(lián)系我們獲取API訪問權限和令牌。

?? 郵箱:[email protected]