Example United States of America import duty API call US country flag

For HS Code: 851090

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
4 4.2 4.066666 MFN applied duty rates
0 0 0 MFN applied duty rates
0 0 0 Free-trade area duty rates for Canada under the NAFTA
0 0 0 Free-trade area duty rates for Mexico under the NAFTA
0 0 0 Free-trade agreement duty rate for Israel
0 0 0 Free-trade agreement duty rate for Bahrain
0 0 0 Free-trade agreement duty rate for Jordan
0 0 0 Free-trade agreement duty rate for Singapore
0 0 0 Free-trade agreement duty rate for Chile
0 0 0 Free-trade agreement duty rate for Australia
0 0 0 Free-trade agreement duty rate for Morocco
0 0 0 Free Trade Area duty rate for Dominican Rep. and Central America (DR-CAFTA)
0 0 0 Free-trade agreement duty rate for Oman
0 0 0 Free-trade agreement duty rate for Peru
0 0 0 Free-trade agreement duty rate for Korea
0 0 0 Free-trade agreement duty rate for Colombia
0 0 0 Free-trade agreement duty rate for Panama
0 0 0 Preferential duty rate for the Caribbean Basin Economic Recovery Act (CBERA)
0 0 0 Preferential duty rate under the African Growth and Opportunity Act (AGOA)
0 0 0 Generalized System of Preferences (GSP) scheme
27.5 45 38.5 General duty
<?php
							
function api_call_func($api_url)
{
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_URL, $api_url);
	curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_VERBOSE, true);
	$result = curl_exec($ch);
	curl_close($ch);

	$myArray = json_decode($result, true);

	return $myArray;
}

$return = api_call_func("https://slib.co/v1/?duty=hs&country=us&code=851090");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=us&code=851090

Example JSON reponse

Array
(
    [duty] => Array
        (
            [0] => Array
                (
                    [id] => 63479
                    [maximumrate] => 4.2
                    [minimumrate] => 4
                    [averagerate] => 4.066666
                    [specificrate] => 
                    [description] => MFN applied duty rates
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [1] => Array
                (
                    [id] => 63480
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => MFN applied duty rates
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [2] => Array
                (
                    [id] => 63481
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade area duty rates for Canada under the NAFTA
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [3] => Array
                (
                    [id] => 63482
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade area duty rates for Mexico under the NAFTA
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [4] => Array
                (
                    [id] => 63483
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Israel
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [5] => Array
                (
                    [id] => 63484
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Bahrain
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [6] => Array
                (
                    [id] => 63485
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Jordan
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [7] => Array
                (
                    [id] => 63486
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Singapore
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [8] => Array
                (
                    [id] => 63487
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Chile
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [9] => Array
                (
                    [id] => 63488
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Australia
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [10] => Array
                (
                    [id] => 63489
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Morocco
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [11] => Array
                (
                    [id] => 63490
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free Trade Area duty rate for Dominican Rep. and Central America (DR-CAFTA)
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [12] => Array
                (
                    [id] => 63491
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Oman
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [13] => Array
                (
                    [id] => 63492
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Peru
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [14] => Array
                (
                    [id] => 63493
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Korea
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [15] => Array
                (
                    [id] => 63494
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Colombia
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [16] => Array
                (
                    [id] => 63495
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Panama
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [17] => Array
                (
                    [id] => 63496
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Preferential duty rate for the Caribbean Basin Economic Recovery Act (CBERA)
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [18] => Array
                (
                    [id] => 63497
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Preferential duty rate under the African Growth and Opportunity Act (AGOA)
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [19] => Array
                (
                    [id] => 63498
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Generalized System of Preferences (GSP) scheme
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [20] => Array
                (
                    [id] => 63499
                    [maximumrate] => 45
                    [minimumrate] => 27.5
                    [averagerate] => 38.5
                    [specificrate] => 
                    [description] => General duty
                    [flag1x1] => https://slib.co/flags/1x1/us.svg
                    [flag3x4] => https://slib.co/flags/4x3/us.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
4 4.2 4.066666 MFN applied duty rates
0 0 0 MFN applied duty rates
0 0 0 Free-trade area duty rates for Canada under the NAFTA
0 0 0 Free-trade area duty rates for Mexico under the NAFTA
0 0 0 Free-trade agreement duty rate for Israel
0 0 0 Free-trade agreement duty rate for Bahrain
0 0 0 Free-trade agreement duty rate for Jordan
0 0 0 Free-trade agreement duty rate for Singapore
0 0 0 Free-trade agreement duty rate for Chile
0 0 0 Free-trade agreement duty rate for Australia
0 0 0 Free-trade agreement duty rate for Morocco
0 0 0 Free Trade Area duty rate for Dominican Rep. and Central America (DR-CAFTA)
0 0 0 Free-trade agreement duty rate for Oman
0 0 0 Free-trade agreement duty rate for Peru
0 0 0 Free-trade agreement duty rate for Korea
0 0 0 Free-trade agreement duty rate for Colombia
0 0 0 Free-trade agreement duty rate for Panama
0 0 0 Preferential duty rate for the Caribbean Basin Economic Recovery Act (CBERA)
0 0 0 Preferential duty rate under the African Growth and Opportunity Act (AGOA)
0 0 0 Generalized System of Preferences (GSP) scheme
27.5 45 38.5 General duty