CHANGE FEED · WEBHOOKS
One HTTPS endpoint. Every day the HTS, Section 301, Section 232, forced-labor and AD/CVD snapshots change, you get a signed webhook with the added, removed and changed rows. No polling, no scraping, no dashboard to watch.
$29 per month for one endpoint, all datasets, daily delivery. Included in Starter and above: Starter 1 endpoint, Partner 5, Pro 10, Scale 20. Pay in USDC on Base; the key and endpoint are provisioned without an account form.
curl -X POST https://hts.epi.me/v1/watch \
-H "X-API-Key: hts_live_..." \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/hts-hook",
"datasets":"section301_china,adcvd_cases",
"code_prefix":"6109"}'
The 201 response returns the secret once. Send a test
payload to the endpoint with POST /v1/watch/{id}/test, and read the
last 20 delivery attempts at GET /v1/watch/{id}/deliveries.
import hmac, hashlib
expected = "sha256=" + hmac.new(
secret.encode(), raw_body, hashlib.sha256
).hexdigest()
assert hmac.compare_digest(expected, request.headers["X-HTS-Signature"])
Compare the raw request body, before JSON parsing.
Once per snapshot. Snapshots are written by the daily refresh jobs; delivery runs hourly and skips a snapshot already sent to that endpoint. A quiet day sends nothing.
Three attempts with a short backoff. A failed delivery is recorded and shown in the delivery log; the next snapshot is attempted regardless.
Yes. code_prefix filters diff samples to matching codes; the
counts still cover the whole dataset.
Yes. The watch plan is a key with a zero API quota: it exists to manage the endpoint and its delivery log, not to call the paid endpoints.