Beauty & Personal Care · x402 · early usage

Use when you need South Korea's monthly trade for a product by HS code (e.g

Use when you need South Korea's monthly trade for a product by HS code (e.g. 8542 chips, 870323 cars, 2710 petroleum). Data: Korea Customs Service, finalized monthly. Input: hs (2-10 digit prefix), optional month (YYYYMM, default latest), limit (1-100), sort…

by 1gateway.dev · discovered, not yet claimed by its owner · updated 2026-10-11

30d calls3
30d payers2
MethodGET
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Use when you need South Korea's monthly trade for a product by HS code (e.g. 8542 chips, 870323 cars, 2710 petroleum). Data: Korea Customs Service, finalized monthly. Input: hs (2-10 digit prefix), optional month (YYYYMM, default latest), limit (1-100), sort (exports, imports, balance, total). Output: JSON totals (exports FOB, imports CIF, balance in USD, kg) with YoY % and 10-digit HSK lines with English HS descriptions and YoY. Example: ?hs=8542&month=202608

Tags: korea · trade-statistics · hs-code · imports-exports · korea-customs · bazaar

Call contract

Method
GET
Input
query parameters
Output
json
Last paid call
2026-10-11
Input example from Bazaar metadata
{
  "hs": "8542",
  "limit": 20,
  "month": "202608",
  "sort": "exports"
}
Output example
{
  "attribution": "Source: Korea Customs Service (관세청) trade statistics via data.go.kr (datasets 15157908, 15157941, 15101609; no usage restriction). 10-day figures are provision…",
  "compareMonth": "2025-08",
  "descriptionEn": "Electronic integrated circuits",
  "descriptionLevel": "8542",
  "hs": "8542",
  "lineCount": 20,
  "lines": [
    {
      "balanceUsd": 14762525118,
      "descriptionEn": "Electronic integrated circuits; memories",
      "exportsKg": 177730,
      "exportsUsd": 15733149397,
      "exportsYoyPct": 501.4,
      "hs6": "854232",
      "hsCode": "8542321010",
      "importsKg": 41627,
      "importsUsd": 970624279,
      "importsYoyPct": 54.7,
      "nameKo": "디램"
    }
  ],
  "month": "2026-08",
  "notes": [
    "Lines are Korea's 10-digit HSK codes under the requested prefix; descriptionEn is the international HS 6-digit description, nameKo the official Korean line nam…"
  ],
  "sort": "exports",
  "total": {
    "balanceUsd": 28613943758,
    "exportsKg": 1674296,
    "exportsUsd": 38235698070,
    "exportsYoyPct": 203.1,
    "importsKg": 635066,
    "importsUsd": 9621754312,
    "importsYoyPct": 85.5,
    "prevYearExportsUsd": 12615814759,
    "prevYearImportsUsd": 5185580976
  },
  "unit": "USD (exports FOB, imports CIF); weights in kg (net)"
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/34845.json for the price and payment options.
  3. Pay. Call GET https://1gateway.dev/v1/trade/hs. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.0045 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
3 calls · 2 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.00450x6246eee0355Dd7A93C888fE59e1151388A0cC5a1300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "4500",
    "amountUsd": 0.0045,
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "properties": {
        "attribution": {
          "type": "string"
        },
        "compareMonth": {
          "type": "string"
        },
        "descriptionEn": {
          "type": "string"
        },
        "descriptionLevel": {
          "type": "string"
        },
        "hs": {
          "type": "string"
        },
        "lineCount": {
          "type": "integer"
        },
        "lines": {
          "items": {
            "properties": {
              "balanceUsd": {
                "type": "integer"
              },
              "descriptionEn": {
                "type": "string"
              },
              "exportsKg": {
                "type": "integer"
              },
              "exportsUsd": {
                "type": "integer"
              },
              "exportsYoyPct": {
                "type": "number"
              },
              "hs6": {
                "type": "string"
              },
              "hsCode": {
                "type": "string"
              },
              "importsKg": {
                "type": "integer"
              },
              "importsUsd": {
                "type": "integer"
              },
              "importsYoyPct": {
                "type": "number"
              },
              "nameKo": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "type": "array"
        },
        "month": {
          "type": "string"
        },
        "notes": {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "sort": {
          "type": "string"
        },
        "total": {
          "properties": {
            "balanceUsd": {
              "type": "integer"
            },
            "exportsKg": {
              "type": "integer"
            },
            "exportsUsd": {
              "type": "integer"
            },
            "exportsYoyPct": {
              "type": "number"
            },
            "importsKg": {
              "type": "integer"
            },
            "importsUsd": {
              "type": "integer"
            },
            "importsYoyPct": {
              "type": "number"
            },
            "prevYearExportsUsd": {
              "type": "integer"
            },
            "prevYearImportsUsd": {
              "type": "integer"
            }
          },
          "type": "object"
        },
        "unit": {
          "type": "string"
        }
      },
      "required": [
        "hs",
        "descriptionEn",
        "descriptionLevel",
        "month",
        "compareMonth",
        "unit",
        "total",
        "lineCount",
        "sort",
        "lines",
        "notes",
        "attribution"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {
    "attribution": "string",
    "compareMonth": "string",
    "descriptionEn": "string",
    "descriptionLevel": "string",
    "hs": "string",
    "lineCount": 0,
    "lines": [
      {
        "balanceUsd": 0,
        "descriptionEn": "string",
        "exportsKg": 0,
        "exportsUsd": 0,
        "exportsYoyPct": 0,
        "hs6": "string",
        "hsCode": "string",
        "importsKg": 0,
        "importsUsd": 0,
        "importsYoyPct": 0,
        "nameKo": "string"
      }
    ],
    "month": "string",
    "notes": [
      "string"
    ],
    "sort": "string",
    "total": {
      "balanceUsd": 0,
      "exportsKg": 0,
      "exportsUsd": 0,
      "exportsYoyPct": 0,
      "importsKg": 0,
      "importsUsd": 0,
      "importsYoyPct": 0,
      "prevYearExportsUsd": 0,
      "prevYearImportsUsd": 0
    },
    "unit": "string"
  },
  "type": "string"
}

Examples

curl
curl "https://1gateway.dev/v1/trade/hs"
# -> 402 Payment Required, accepts[] lists how to pay
# retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://1gateway.dev/v1/trade/hs");
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
res = httpx.get("https://1gateway.dev/v1/trade/hs")
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
1gateway.dev
Endpoint
https://1gateway.dev/v1/trade/hs
Machine-readable
/resources/34845.json