{"uid":"cap_ZKGbRb2_S7_yQ2sDpA5dw","slug":"wits-world-customs-tariff-lookup-e400fb1e","name":"WITS World Customs Tariff Lookup","description":"Applied import tariffs from the World Bank WITS / UNCTAD TRAINS database for one importing country and one HS 6-digit product: yearly simple-average rate (%), tariff type (MFN or preferential), min and max line rates and number of tariff lines, from WITS's public SDMX API. Partner defaults to the world (MFN). Non-tariff measures are not included.","url":"https://api.tradeenergy-api.workers.dev/api/energy/world-customs-tariff-wits?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["reporter","product"],"properties":{"years":{"type":"string","description":"Most recent years to return, 1 to 15 (default 5)"},"partner":{"type":"string","description":"Exporting partner, ISO alpha-3 or numeric (default 000 = world)"},"product":{"type":"string","description":"HS 6-digit product code, e.g. 870323 (required)"},"reporter":{"type":"string","description":"Importing country, ISO alpha-3 (e.g. TUR, USA) or WITS numeric code (e.g. 792) (required)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":3,"source":"https://wits.worldbank.org/API/V1/SDMX/V21/rest/data/DF_WITS_Tariff_TRAINS/A.792.000.870323.reported/?startperiod=2011&endperiod=2026","partner":{"code":"000","name":"World"},"product":"870323","tariffs":[{"year":2023,"maxRatePct":10,"minRatePct":10,"tariffType":"MFN","tariffLines":9,"nomenclature":"H6","averageRatePct":10},{"year":2022,"maxRatePct":10,"minRatePct":10,"tariffType":"MFN","tariffLines":9,"nomenclature":"H6","averageRatePct":10}],"reporter":{"code":"792","name":"Turkey","input":"TUR"},"checkedAt":"2026-10-23T09:38:28.861Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZLUK0gPApQieN7hmwtSXG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns yearly applied import tariff data (simple-average rate, MFN or preferential, min/max line rates, number of tariff lines) for a given importing country and HS 6-digit product code, sourced from the World Bank WITS/UNCTAD TRAINS database.","exampleAgentPrompt":"What's the applied import tariff rate for HS product code 870323 (passenger cars with petrol engine 1500–3000cc) entering Turkey — pull the last 3 years from the WITS database?","exampleUseCases":[{"title":"Automotive import duty check","prompt":"I'm planning to export sedans with HS code 870323 to Turkey — can you pull the last 5 years of applied MFN tariff rates from WITS so I can see the duty trend?"},{"title":"Electronics trade compliance research","prompt":"What import tariff does the USA currently apply to laptops (HS code 847130)? Pull the last 3 years from the World Bank WITS database so I can compare year over year."},{"title":"Agricultural commodity tariff benchmarking","prompt":"Look up Brazil's applied import tariff for crude palm oil, HS code 151110, for the past 5 years — I need the average rate, min, max, and number of tariff lines each year."}],"resultDescription":"A JSON object containing the reporter country and partner details, the queried HS product code, and an array of yearly tariff records each with: year, simple-average applied rate (%), min and max tariff line rates (%), number of tariff lines, tariff type (MFN or preferential), and HS nomenclature version. Also includes the underlying WITS SDMX source URL and a checkedAt timestamp.","failureModes":["Invalid or unsupported HS 6-digit product code returns no tariff data or an error","Unknown reporter country ISO code results in a 400 or empty response","Product/country combination not covered in TRAINS database returns empty tariff array","WITS upstream SDMX API unavailable causes a timeout or 502 error","Requesting years beyond available data coverage returns partial or empty results"],"whenToPreferThis":"Use this endpoint when you need applied import tariff rates (MFN or preferential simple averages) for a specific HS 6-digit product and importing country, sourced from the authoritative World Bank WITS/UNCTAD TRAINS database. Prefer this over customs authority websites when you need structured, machine-readable multi-year tariff history across many countries in a single API call. Note: does not cover non-tariff measures (NTMs), anti-dumping duties, or VAT.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:34:21.239Z","isFirstParty":false,"canonicalSlug":"wits-world-customs-tariff-lookup-e400fb1e"}