CODICI APIを使えば、あらゆるソフトウェアからHSコードを検索できます。認証はAPIキーを使用。レスポンスはJSON形式です。
エンドポイント
POST https://api.codi.ci/v1/lookup
認証
リクエストヘッダーにAPIキーを含めます。
X-API-Key: your_api_key_here
レスポンスフィールド
| フィールド | 説明 |
hs_code | 推奨HSコード |
description | HS章および項の説明 |
confidence | 信頼スコア(0〜1) |
explanation | このコードが選択された理由の説明 |
リクエスト
# cURL example
curl -X POST https://api.codi.ci/v1/lookup \
-H "X-API-Key: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"product": "stainless steel kitchen knives",
"country_of_origin": "CN"
}'
レスポンス
{
"hs_code": "8211.10",
"description": "Knives with fixed blades",
"confidence": 0.97,
"explanation": "Classified under HS chapter 82
(tools, implements...). The item is a
kitchen knife with a fixed blade,
falling under heading 8211.",
"lookup_id": "lk_a8f2c91d"
}