Example Indonesia import duty API call ID country flag

For HS Code: 590610

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
5 5 5 MFN applied duty rates
0 0 0 ASEAN free-trade area duty rates
0 0 0 ASEAN- China free-trade area duty rates
0 0 0 ASEAN-Republic of Korea free-trade area duty rates
4.5 4.5 4.5 ASEAN- India free-trade area duty rates
0 0 0 Free trade duty rates for Japan
0 0 0 ASEAN-Australia and New Zealand free-trade area 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=id&code=590610");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=id&code=590610

Example JSON reponse

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

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

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

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

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

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

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

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
5 5 5 MFN applied duty rates
0 0 0 ASEAN free-trade area duty rates
0 0 0 ASEAN- China free-trade area duty rates
0 0 0 ASEAN-Republic of Korea free-trade area duty rates
4.5 4.5 4.5 ASEAN- India free-trade area duty rates
0 0 0 Free trade duty rates for Japan
0 0 0 ASEAN-Australia and New Zealand free-trade area duty rates