Example Saint Vincent and the Grenadines import duty API call VC country flag

For HS Code: 852110

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
30 30 30 MFN duties (Applied)
0 0 0 Preferential tariff for CARICOM countries
22 22 22 Preferential tariff for European Union 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=vc&code=852110");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=vc&code=852110

Example JSON reponse

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

            [1] => Array
                (
                    [id] => 11854
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Preferential tariff for CARICOM countries
                    [flag1x1] => https://slib.co/flags/1x1/vc.svg
                    [flag3x4] => https://slib.co/flags/4x3/vc.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [2] => Array
                (
                    [id] => 11855
                    [maximumrate] => 22
                    [minimumrate] => 22
                    [averagerate] => 22
                    [specificrate] => 
                    [description] => Preferential tariff for European Union countries
                    [flag1x1] => https://slib.co/flags/1x1/vc.svg
                    [flag3x4] => https://slib.co/flags/4x3/vc.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
30 30 30 MFN duties (Applied)
0 0 0 Preferential tariff for CARICOM countries
22 22 22 Preferential tariff for European Union countries