Example China import duty API call CN country flag

For HS Code: 441231

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
12 12 12 MFN applied duty rates
0 0 0 Free trade agreement duty rates for Chile
0 0 0 Free trade agreement duty rates for New Zealand
0 0 0 Free trade agreement duty rates for Peru
0 0 0 Free trade agreement duty rates for Costa Rica
7.2 7.2 7.2 Free trade agreement duty rates for Switzerland
0 0 0 Free trade agreement duty rates for Iceland
4.8 4.8 4.8 Free-trade agreement duty rates for Australia
9.6 9.6 9.6 Free-trade agreement duty rates for Korea, Republic of
0 0 0 Least-developed countries (LDC) duties for 35 countries
<?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=cn&code=441231");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=cn&code=441231

Example JSON reponse

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

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

            [2] => Array
                (
                    [id] => 27640
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free trade agreement duty rates for New Zealand
                    [flag1x1] => https://slib.co/flags/1x1/cn.svg
                    [flag3x4] => https://slib.co/flags/4x3/cn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

            [4] => Array
                (
                    [id] => 27642
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free trade agreement duty rates for Costa Rica
                    [flag1x1] => https://slib.co/flags/1x1/cn.svg
                    [flag3x4] => https://slib.co/flags/4x3/cn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [5] => Array
                (
                    [id] => 27643
                    [maximumrate] => 7.2
                    [minimumrate] => 7.2
                    [averagerate] => 7.2
                    [specificrate] => 
                    [description] => Free trade agreement duty rates for Switzerland
                    [flag1x1] => https://slib.co/flags/1x1/cn.svg
                    [flag3x4] => https://slib.co/flags/4x3/cn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

            [8] => Array
                (
                    [id] => 27646
                    [maximumrate] => 9.6
                    [minimumrate] => 9.6
                    [averagerate] => 9.6
                    [specificrate] => 
                    [description] => Free-trade agreement duty rates for Korea, Republic of
                    [flag1x1] => https://slib.co/flags/1x1/cn.svg
                    [flag3x4] => https://slib.co/flags/4x3/cn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [9] => Array
                (
                    [id] => 27647
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Least-developed countries (LDC) duties for 35 countries
                    [flag1x1] => https://slib.co/flags/1x1/cn.svg
                    [flag3x4] => https://slib.co/flags/4x3/cn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
12 12 12 MFN applied duty rates
0 0 0 Free trade agreement duty rates for Chile
0 0 0 Free trade agreement duty rates for New Zealand
0 0 0 Free trade agreement duty rates for Peru
0 0 0 Free trade agreement duty rates for Costa Rica
7.2 7.2 7.2 Free trade agreement duty rates for Switzerland
0 0 0 Free trade agreement duty rates for Iceland
4.8 4.8 4.8 Free-trade agreement duty rates for Australia
9.6 9.6 9.6 Free-trade agreement duty rates for Korea, Republic of
0 0 0 Least-developed countries (LDC) duties for 35 countries