Example Viet Nam import duty API call VN country flag

For HS Code: 640219

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
30 30 30 MFN applied duty rates
0 0 0 ASEAN free-trade area (AFTA) duty rates
0 0 0 Free-trade agreement duty rate for China
18 18 18 ASEAN-Japan free-trade agreement duty rates
15 15 15 Free-trade agreement duty rate for India
0 0 0 Free-trade agreement duty rate for Korea, Republic of
20 20 20 Viet Nam-Japan free-trade agreement duty rates
5 5 5 ASEAN-Australia-New Zealand free-trade area duty rates
23 23 23 Viet Nam-Chile free-trade agreement duty rates
0 0 0 Viet Nam-Korea, Republic of free-trade agreement duty rates
<?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=vn&code=640219");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=vn&code=640219

Example JSON reponse

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

            [1] => Array
                (
                    [id] => 21976
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => ASEAN free-trade area (AFTA) duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

            [3] => Array
                (
                    [id] => 21978
                    [maximumrate] => 18
                    [minimumrate] => 18
                    [averagerate] => 18
                    [specificrate] => 
                    [description] => ASEAN-Japan free-trade agreement duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

            [6] => Array
                (
                    [id] => 21981
                    [maximumrate] => 20
                    [minimumrate] => 20
                    [averagerate] => 20
                    [specificrate] => 
                    [description] => Viet Nam-Japan free-trade agreement duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [7] => Array
                (
                    [id] => 21982
                    [maximumrate] => 5
                    [minimumrate] => 5
                    [averagerate] => 5
                    [specificrate] => 
                    [description] => ASEAN-Australia-New Zealand free-trade area duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [8] => Array
                (
                    [id] => 21983
                    [maximumrate] => 23
                    [minimumrate] => 23
                    [averagerate] => 23
                    [specificrate] => 
                    [description] => Viet Nam-Chile free-trade agreement duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [9] => Array
                (
                    [id] => 21984
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Viet Nam-Korea, Republic of free-trade agreement duty rates
                    [flag1x1] => https://slib.co/flags/1x1/vn.svg
                    [flag3x4] => https://slib.co/flags/4x3/vn.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
30 30 30 MFN applied duty rates
0 0 0 ASEAN free-trade area (AFTA) duty rates
0 0 0 Free-trade agreement duty rate for China
18 18 18 ASEAN-Japan free-trade agreement duty rates
15 15 15 Free-trade agreement duty rate for India
0 0 0 Free-trade agreement duty rate for Korea, Republic of
20 20 20 Viet Nam-Japan free-trade agreement duty rates
5 5 5 ASEAN-Australia-New Zealand free-trade area duty rates
23 23 23 Viet Nam-Chile free-trade agreement duty rates
0 0 0 Viet Nam-Korea, Republic of free-trade agreement duty rates