For Developers
轻松接入 REST API
返回 JSON,适用于任何可发 HTTP 请求的语言 — 左侧选择语言后填入 API Key
item_search按关键词搜索商品
item_get获取详情、价格、SKU、图片
item_search_img以图搜图
item_password转换分享链接 / 淘口令
shop_get获取店铺信息
seller_info卖家 / 供应商信息
examples/item_search.php
<?php
// 设计示例 — 真实 endpoint 见文档
$params = http_build_query([
'key' => 'YOUR_API_KEY',
'q' => '双肩包',
'lang' => 'zh',
]);
$url = "https://api.example.com/taobao/item_search?" . $params;
$res = file_get_contents($url);
$data = json_decode($res, true);
foreach ($data['items'] as $item) {
echo $item['title'] . ' – ¥' . $item['price'] . PHP_EOL;
}设计示例 — 主机 api.example.com 为占位;真实 endpoint 见文档 · 支持 15 种语言