Using RulingLens where you already work
One account, one meter, many doors. Every integration below uses an API key from your RulingLens account (Account → API keys → New key; Starter plan and above). A key is shown once; copy it then. Revoking a key on the account page disconnects everything that used it.
Whatever the door, the answer is the same: the six-digit HS subheading (the measured answer), a ruling mark that says how many of the three most similar earlier CBP rulings carry that code, the three rulings with links, and the eight-digit U.S. line the description most likely supports, marked for your broker's review. Ten-digit statistical suffixes are listed from the tariff schedule and never chosen. Nothing here is a code to file; your licensed broker decides.
Each check costs one check from your plan, wherever it came from. History shows them all, with where they came from.
The web app
Check. Name + description → the result. Material, function and use matter most; leave out any tariff code you already have in mind (the service refuses text that states its own classification). Under the result: Watch this code and, when Watch is on, the Federal Register actions of the last 180 days that name the code or its heading.
History. Every finished check, newest first. Search, filter by mark or source, Open to see the result as it was that day, Re-check to run it again against today's rulings, Export CSV.
Audits. Upload a CSV, Excel sheet or CBP 7501 PDF of entries. If the columns are not obvious you are asked which is the description and which the code. Every line is re-classified and sorted: disagreements first, then lines to review, then agreements. Download the Excel, CSV or HTML report. Pro and Team plans include audit lines each month; the $299 one-off audit covers 2,000 lines for 90 days.
Watch. The codes you keep an eye on and what the last seven days brought for them. The Monday digest emails you only in weeks when something named a watched code.
Account. Plan and meters, the plans, API keys, webhooks, integrations, team seats, billing.
Slack
In any channel:
/hs cotton canvas tote bag with two straps, unlinedRulingLens says it is working, then replaces that with the result, visible to the channel. "Name: description" splits the two fields (/hs Canvas tote: cotton canvas tote bag…).
Once per workspace, someone with a RulingLens key links it: /hs link rl_live_… (only they see the reply; the key is never shown again). /hs unlink undoes it. Checks count against the account behind that key.
Your workspace needs the RulingLens app installed by an admin (the Slack App Directory listing, or the install link from RulingLens).
Discord
Slash commands in a server where the RulingLens app is installed:
/hs product: cotton canvas tote bag with two straps— the result, in the channel./hs-link key: rl_live_…— links the server to a RulingLens account (needs Manage Server; the reply is private; the key is never shown again)./hs-unlink— undoes it.
In a direct message with the bot the link is per person. Add the app to a server with the invite link from RulingLens.
WooCommerce
A WordPress plugin. Install: download rulinglens-for-woocommerce.zip, Plugins → Add New → Upload, activate. Then WooCommerce → RulingLens → paste your API key.
- One product: open it; in the HS code — RulingLens box press Check with RulingLens. About twenty seconds later the result is on the product and stays there.
- Many products: in the product list tick products → Bulk actions → Check HS code with RulingLens (up to 25 at a time). Products whose text has not changed since the last check are not sent again, so running it again only does the new ones.
- The list gains an HS code column: the six digits and backed / not backed.
- Shipping or customs plugins that read an HS code from a product field: name their field under Also write the six digits to and the six digits are copied there on every check. Only the six digits are ever copied.
Shopify
A standalone app. Install from the link RulingLens gives you (…/integrations/shopify/install?shop=your-store.myshopify.com), accept the two permissions (read and write products), then paste a RulingLens key on the app page once.
- Check products: the app page lists your products (search box, older pages). Products without a code are pre-selected; press Check the selected products. Reload to watch them land. Up to 100 a run.
- Where the result goes: product metafields under
rulinglens—hs6,ruling_mark,rulings(the three, as JSON),line_for_review,checked_at. Pin them once (Settings → Custom data → Products) and they show on every product page in your admin; themes, shipping apps and Shopify Flow can read them. - New products: tick Check new products as they are created and each new product is checked as it arrives.
- Open the app again any time from your admin's Apps menu. Uninstalling it forgets the shop.
Google Sheets
A script you add to a spreadsheet (Extensions → Apps Script; the two files are in the RulingLens repository under integrations/google-sheets). Reload the sheet; a RulingLens menu appears; Set API key… once.
- Many rows: select the cells with the descriptions (one column) → RulingLens → Check selected rows. Six columns are written to the right: HS6, the tariff's words, the ruling mark, the three rulings, the line for review, the date. Rows that already have a code are skipped. A run stops itself after five minutes and tells you to run it again for the rest.
- One cell:
=RULINGLENS(A2)gives the six digits;=RULINGLENS(A2, "mark"),"line","rulings"or"words"the rest. Formulas re-run when the sheet recalculates (results are cached six hours), so use the menu for anything beyond a few rows.
The key is kept with the sheet's script, not in a cell — anyone who can edit the script can read it, so share such a sheet as you would share the key.
Zapier
Search for RulingLens when adding a step (private integrations appear through the invite link RulingLens gives you). Connect with your API key.
- Classify Product (action): map a name and description in; get
HS6 (measured), heading and subheading,Backed by rulings, the ruling mark, the three rulings as text,Line for reviewwith its words and rate — ready for Sheets, Airtable, Shopify, HubSpot, an email, anything. - Find Tariff Actions (search): a six-digit code → the Federal Register actions of the last 180 days that name it or its heading.
n8n
Self-hosted n8n: Settings → Community Nodes → Install → n8n-nodes-rulinglens. Add a RulingLens node, create the credential with your key, pick Classify Product, Tariff Actions (Watch) or Usage. The classify output is flat fields you can map straight into the next node.
No install: import the workflow template classify-sheet-rows.json (in the repository under integrations/n8n/templates). It uses n8n's own HTTP Request node — create one Header Auth credential, name Authorization, value Bearer rl_live_… — and reads a Google Sheet, checks the rows that have no code yet, and writes six columns back.
Claude, Cursor and other MCP clients
pip install rulinglens-mcp # or, without installing: uvx rulinglens-mcpClaude Desktop (claude_desktop_config.json) or Cursor (.cursor/mcp.json):
{ "mcpServers": { "rulinglens": { "command": "rulinglens-mcp", "env": { "RULINGLENS_API_KEY": "rl_live_..." } } } }Claude Code: claude mcp add rulinglens -e RULINGLENS_API_KEY=rl_live_... -- rulinglens-mcp
Then ask in plain words — "classify a cotton canvas tote bag with two straps", "audit this CSV of entries", "how many checks do I have left". Three tools: classify_product, audit_entries, usage.
The REST API
For your own systems. POST /v1/classify with {"name", "description"} and the key as a bearer token answers in about twenty seconds with the full result; POST /v1/checks starts one and GET /v1/checks/{id} collects it. Audits, reports, history, watch and your account are all there. The guide with every call is at /docs/api; the machine-readable description at /v1/openapi.json.
Webhooks
Account → Webhooks: add an https URL and pick the events. RulingLens POSTs JSON when a check finishes (the summary and the full result) or an audit finishes (counts and report links). Every delivery is signed with the secret shown when you added the endpoint; the page links to copy-paste verification code for Python and Node. Deliveries are retried twice; an endpoint that fails ten times in a row is paused until you add it again.
Team seats
Account → Team (Team plan): invite by email, send the one-use link, and the teammate's checks and audits draw from your plan. History shows who ran what. Keys and billing stay with you; a teammate can leave, you can remove them.
Good descriptions
What it is, what it is made of, what it is used for; size and how it is sold if they matter ("retail pack of 12", "for household use"). Fifteen to forty words is usually right. Leave out any code you already have in mind: the answer is measured on cold text, and a code in the description would be an answer handed to the model rather than earned.