[货号3801]Gmail_Instagram_C_项目专用_Api取件接口(180分钟有效期)
商品详情
Instagram项目专用,请勿错拍
商品格式:邮箱----API接口
如需要做其他项目,请联系客服添加!
取件工具:https://tkhao.lanzouu.com/b0j0ypgqb
项目名称:G_C_Instagram
| 商品单价 | ¥0.70 |
| 商品库存 | 17 |
| 商品状态 | 在售 |
商品格式:邮箱----API接口
如需要做其他项目,请联系客服添加!
取件工具:https://tkhao.lanzouu.com/b0j0ypgqb
项目名称:G_C_Instagram
所有API请求需要在请求头中携带API密钥:
X-API-Key: your_api_keyAuthorization: Bearer your_api_key您可以在用户中心查看和管理您的API密钥
3801
5283
https://www.tkhao.vip/api
/goods/3801/stock
获取商品各规格的库存信息
| 参数名 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
id |
integer | path | 必填 | 商品ID:3801 |
{
"success": true,
"message": "操作成功",
"data": {
"goods_id": 3801,
"goods_name": "Gmail_Instagram_C_项目专用_Api取件接口(180分钟有效期)",
"subs": [
{
"sub_id": 5283,
"sub_name": "默认规格",
"stock": 17,
"price": 0.7
}
]
}
}
curl -X GET "https://www.tkhao.vip/api/goods/3801/stock" \
-H "X-API-Key: your_api_key"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.tkhao.vip/api/goods/3801/stock");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key"]);
$response = curl_exec($ch);
curl_close($ch);
import requests
response = requests.get(
"https://www.tkhao.vip/api/goods/3801/stock",
headers={"X-API-Key": "your_api_key"}
)
fetch("https://www.tkhao.vip/api/goods/3801/stock", {
method: "GET",
headers: { "X-API-Key": "your_api_key" }
})
.then(r => r.json()).then(data => console.log(data));
/purchase
创建订单并购买商品。同步处理,响应时间随并发增加而变长。适用少量购买、单次请求即需返回卡密。
| 参数名 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
goods_id |
integer | query / body | 必填 | 商品ID:3801 |
sub_id |
integer | query / body | 必填 | 商品规格ID:5283 |
quantity |
integer | query / body | 必填 | 购买数量,最小值 1 |
{
"success": true,
"message": "订单创建成功",
"data": {
"order_sn": "订单号",
"status": 4,
"status_text": "已完成",
"total_price": 0.7,
"actual_price": 0.7,
"balance_used": 0,
"items": [
{
"goods_id": 3801,
"sub_id": 5283,
"goods_name": "Gmail_Instagram_C_项目专用_Api取件接口(180分钟有效期) [默认规格]",
"unit_price": 0.7,
"quantity": 1,
"subtotal": 0.7,
"type": 1,
"cards": "账号:[email protected]密码:Password123"
}
],
"cards": "账号:[email protected]密码:Password123"
}
}
# GET:参数放 URL
curl -X GET "https://www.tkhao.vip/api/purchase?goods_id=3801&sub_id=5283&quantity=1" \
-H "X-API-Key: your_api_key"
# POST:参数放 JSON body
curl -X POST "https://www.tkhao.vip/api/purchase" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"goods_id":3801,"sub_id":5283,"quantity":1}'
// GET:参数放 URL
$url = "https://www.tkhao.vip/api/purchase?goods_id=3801&sub_id=5283&quantity=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key"]);
$response = curl_exec($ch);
curl_close($ch);
// POST:参数放 JSON body
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.tkhao.vip/api/purchase");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(["goods_id" => 3801, "sub_id" => 5283, "quantity" => 1]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key", "Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
import requests
headers = {"X-API-Key": "your_api_key"}
# GET:参数放 URL
response = requests.get(
"https://www.tkhao.vip/api/purchase",
params={"goods_id": 3801, "sub_id": 5283, "quantity": 1},
headers=headers
)
# POST:参数放 JSON body
response = requests.post(
"https://www.tkhao.vip/api/purchase",
json={"goods_id": 3801, "sub_id": 5283, "quantity": 1},
headers={**headers, "Content-Type": "application/json"}
)
// GET:参数放 URL
fetch("https://www.tkhao.vip/api/purchase?goods_id=3801&sub_id=5283&quantity=1", {
method: "GET",
headers: { "X-API-Key": "your_api_key" }
})
.then(r => r.json()).then(data => console.log(data));
// POST:参数放 JSON body
fetch("https://www.tkhao.vip/api/purchase", {
method: "POST",
headers: { "X-API-Key": "your_api_key", "Content-Type": "application/json" },
body: JSON.stringify({ goods_id: 3801, sub_id: 5283, quantity: 1 })
})
.then(r => r.json()).then(data => console.log(data));
/v2/purchase
创建订单并购买商品。异步处理,立即返回,订单由队列处理;需通过订单查询接口轮询获取卡密。适用并发大量购买、高 QPS 场景。
| 参数名 | 类型 | 位置 | 必填 | 说明 |
|---|---|---|---|---|
goods_id |
integer | query / body | 必填 | 商品ID:3801 |
sub_id |
integer | query / body | 必填 | 商品规格ID:5283 |
quantity |
integer | query / body | 必填 | 购买数量,最小值 1 |
{
"success": true,
"message": "订单创建成功",
"data": {
"order_sn": "订单号",
"status": 1,
"status_text": "待处理",
"total_price": 0.7,
"actual_price": 0.7,
"balance_used": 0.7,
"items": [
{
"goods_id": 3801,
"sub_id": 5283,
"goods_name": "Gmail_Instagram_C_项目专用_Api取件接口(180分钟有效期) [默认规格]",
"unit_price": 0.7,
"quantity": 1,
"subtotal": 0.7,
"type": 1
}
]
}
}
# GET:参数放 URL
curl -X GET "https://www.tkhao.vip/api/v2/purchase?goods_id=3801&sub_id=5283&quantity=1" \
-H "X-API-Key: your_api_key"
# POST:参数放 JSON body
curl -X POST "https://www.tkhao.vip/api/v2/purchase" \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{"goods_id":3801,"sub_id":5283,"quantity":1}'
// GET:参数放 URL
$url = "https://www.tkhao.vip/api/v2/purchase?goods_id=3801&sub_id=5283&quantity=1";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key"]);
$response = curl_exec($ch);
curl_close($ch);
// POST:参数放 JSON body
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.tkhao.vip/api/v2/purchase");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode(["goods_id" => 3801, "sub_id" => 5283, "quantity" => 1]));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key", "Content-Type: application/json"]);
$response = curl_exec($ch);
curl_close($ch);
import requests
headers = {"X-API-Key": "your_api_key"}
# GET:参数放 URL
response = requests.get(
"https://www.tkhao.vip/api/v2/purchase",
params={"goods_id": 3801, "sub_id": 5283, "quantity": 1},
headers=headers
)
# POST:参数放 JSON body
response = requests.post(
"https://www.tkhao.vip/api/v2/purchase",
json={"goods_id": 3801, "sub_id": 5283, "quantity": 1},
headers={**headers, "Content-Type": "application/json"}
)
// GET:参数放 URL
fetch("https://www.tkhao.vip/api/v2/purchase?goods_id=3801&sub_id=5283&quantity=1", {
method: "GET",
headers: { "X-API-Key": "your_api_key" }
})
.then(r => r.json()).then(data => console.log(data));
// POST:参数放 JSON body
fetch("https://www.tkhao.vip/api/v2/purchase", {
method: "POST",
headers: { "X-API-Key": "your_api_key", "Content-Type": "application/json" },
body: JSON.stringify({ goods_id: 3801, sub_id: 5283, quantity: 1 })
})
.then(r => r.json()).then(data => console.log(data));
/v2/order/{order_sn}
根据订单号查询订单详情,用于 V2 异步购买后轮询获取卡密。支持 GET 与 POST。
curl -X GET "https://www.tkhao.vip/api/v2/order/订单号" \
-H "X-API-Key: your_api_key"
$orderSn = '订单号';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://www.tkhao.vip/api/v2/order/" . $orderSn);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-API-Key: your_api_key"]);
$response = curl_exec($ch);
curl_close($ch);
import requests
order_sn = "订单号"
response = requests.get(
f"https://www.tkhao.vip/api/v2/order/{order_sn}",
headers={"X-API-Key": "your_api_key"}
)
const orderSn = "订单号";
fetch(`https://www.tkhao.vip/api/v2/order/${orderSn}`, {
method: "GET",
headers: { "X-API-Key": "your_api_key" }
})
.then(r => r.json()).then(data => console.log(data));
商品格式:邮箱----API接口
如需要做其他项目,请联系客服添加!
取件工具:https://tkhao.lanzouu.com/b0j0ypgqb
项目名称:G_C_Instagram