{"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},"version":"1.0","contract_hash":"5266d8fe0931c67bbf59b89a5b7c3f194e223d92cb0a7c3363c0838c261e82d3","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},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:45:48.411Z","activated_at":"2026-12-06T04:45:48.411Z","active":true,"contract_hash":"5266d8fe0931c67bbf59b89a5b7c3f194e223d92cb0a7c3363c0838c261e82d3","fields_count":10}]}