{"api":{"id":"api_dabdefe7ce4380ba5180091d","slug":"wits-tariff-rates","name":"WITS Tariff Rates API","description":"Import tariff rates by year from the World Bank WITS TRAINS data: the average, lowest and highest duty rate for one reporting country, trading partner and HS product code, with tariff type and number of tariff lines.","kind":"ready_made","visibility":"public","domain":"wits.worldbank.org","source_url":"https://wits.worldbank.org/","category":"commerce","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":10,"created_at":"2026-12-06T04:45:48.411Z","updated_at":"2026-12-06T04:45:48.411Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"year","type":"integer","description":"Year of the observation.","required":true,"coverage":1,"example":2018},{"name":"reporter","type":"string","description":"Reporting country code.","required":false,"coverage":1,"example":"840"},{"name":"partner","type":"string","description":"Trading partner code.","required":false,"coverage":1,"example":"000"},{"name":"product","type":"string","description":"HS product code.","required":false,"coverage":1,"example":"020110"},{"name":"tariff_type","type":"string","description":"Tariff regime, such as MFN or Preferential.","required":false,"coverage":1,"example":"MFN"},{"name":"average_rate_pct","type":"number","description":"Simple average duty rate in percent.","required":false,"coverage":1,"example":26.4},{"name":"min_rate","type":"number","description":"Lowest duty rate among the tariff lines, in percent.","required":false,"coverage":1,"example":26.4},{"name":"max_rate","type":"number","description":"Highest duty rate among the tariff lines, in percent.","required":false,"coverage":1,"example":26.4},{"name":"total_lines","type":"integer","description":"Number of tariff lines in the product group.","required":false,"coverage":1,"example":3},{"name":"nomenclature","type":"string","description":"HS edition used, such as H5.","required":false,"coverage":1,"example":"H5"}],"inputs":[{"name":"reporter","type":"string","description":"Reporting country as a numeric UN code, for example 840 for the United States.","example":"840","required":true},{"name":"partner","type":"string","description":"Trading partner as a numeric UN code; 000 means the world.","example":"000"},{"name":"product","type":"string","description":"HS product code, for example 020110 (beef carcasses).","example":"020110","required":true},{"name":"start_year","type":"integer","description":"First year to return.","example":2018},{"name":"end_year","type":"integer","description":"Last year to return.","example":2020}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"average_rate_pct":{"description":"Simple average duty rate in percent.","type":"number"},"max_rate":{"description":"Highest duty rate among the tariff lines, in percent.","type":"number"},"min_rate":{"description":"Lowest duty rate among the tariff lines, in percent.","type":"number"},"nomenclature":{"description":"HS edition used, such as H5.","type":"string"},"partner":{"description":"Trading partner code.","type":"string"},"product":{"description":"HS product code.","type":"string"},"reporter":{"description":"Reporting country code.","type":"string"},"tariff_type":{"description":"Tariff regime, such as MFN or Preferential.","type":"string"},"total_lines":{"description":"Number of tariff lines in the product group.","type":"integer"},"year":{"description":"Year of the observation.","type":"integer"}},"required":["year"],"title":"WITS Tariff Rates API","type":"object"},"samples":[{"year":2018,"reporter":"840","partner":"000","product":"020110","tariff_type":"MFN","average_rate_pct":26.4,"min_rate":26.4,"max_rate":26.4,"total_lines":3,"nomenclature":"H5"},{"year":2019,"reporter":"840","partner":"000","product":"020110","tariff_type":"MFN","average_rate_pct":26.4,"min_rate":26.4,"max_rate":26.4,"total_lines":3,"nomenclature":"H5"},{"year":2020,"reporter":"840","partner":"000","product":"020110","tariff_type":"MFN","average_rate_pct":26.4,"min_rate":26.4,"max_rate":26.4,"total_lines":3,"nomenclature":"H5"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"average_rate_pct":1,"max_rate":1,"min_rate":1,"nomenclature":1,"partner":1,"product":1,"reporter":1,"tariff_type":1,"total_lines":1,"year":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_dabdefe7ce4380ba5180091d/run","openapi":"https://pullrow.dev/v1/apis/api_dabdefe7ce4380ba5180091d/openapi.json","contract":"https://pullrow.dev/v1/apis/api_dabdefe7ce4380ba5180091d/contract.json","page":"https://pullrow.dev/catalog/wits-tariff-rates"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["One reporting country and one product code per call; the product is an HS code (2 to 6 digits) and the country and partner are numeric UN codes (840 = United States, 124 = Canada, 000 = world).","Rates are the simple average of the tariff lines under the product code, as reported to the TRAINS database; years a country did not report are missing.","Data comes from World Bank open data: credit the World Bank WITS when you republish.","Years run from 1988 to the latest reported year; the source can be slow, so a call may take several seconds."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"year","label":"Year","description":"Year of the observation.","group":"Dates","shown":true,"written":false},{"name":"reporter","label":"Reporter","description":"Reporting country code.","group":"Basics","shown":true,"written":false},{"name":"partner","label":"Trading partner code","description":"","group":"Basics","shown":true,"written":false},{"name":"product","label":"HS product code","description":"","group":"Basics","shown":true,"written":false},{"name":"tariff_type","label":"Tariff type","description":"Tariff regime, such as MFN or Preferential.","group":"Basics","shown":true,"written":false},{"name":"average_rate_pct","label":"Average rate (%)","description":"Simple average duty rate in percent.","group":"Basics","shown":true,"written":false},{"name":"min_rate","label":"Minimum rate","description":"Lowest duty rate among the tariff lines, in percent.","group":"Basics","shown":true,"written":false},{"name":"max_rate","label":"Maximum rate","description":"Highest duty rate among the tariff lines, in percent.","group":"Basics","shown":true,"written":false},{"name":"total_lines","label":"Total lines","description":"Number of tariff lines in the product group.","group":"Basics","shown":true,"written":false},{"name":"nomenclature","label":"Nomenclature","description":"HS edition used, such as H5.","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"reporter","label":"Reporter","help":"Reporting country as a numeric UN code, for example 840 for the United States.","example":"840","written":false},{"name":"partner","label":"Partner","help":"Trading partner as a numeric UN code; 000 means the world.","example":"000","written":false},{"name":"product","label":"Product","help":"HS product code, for example 020110 (beef carcasses).","example":"020110","written":false},{"name":"start_year","label":"Start year","help":"First year to return.","example":"2018","written":false},{"name":"end_year","label":"End year","help":"Last year to return.","example":"2020","written":false}]}},"incidents":[]}