Example Namibia import duty API call NA country flag

For HS Code: 630240

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
30 30 30 MFN applied duty rates
0 0 0 Southern African Customs Union free-trade area
18 18 18 Free-trade area agreement duty rate for the EC
15 15 15 Free-trade agreement duty rates for EFTA Countries
0 0 0 Southern Africa Development Community (SADC) preferential 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=na&code=630240");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=na&code=630240

Example JSON reponse

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

            [1] => Array
                (
                    [id] => 9404
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Southern African Customs Union free-trade area
                    [flag1x1] => https://slib.co/flags/1x1/na.svg
                    [flag3x4] => https://slib.co/flags/4x3/na.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

            [4] => Array
                (
                    [id] => 9407
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Southern Africa Development Community (SADC) preferential duty rates
                    [flag1x1] => https://slib.co/flags/1x1/na.svg
                    [flag3x4] => https://slib.co/flags/4x3/na.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 Southern African Customs Union free-trade area
18 18 18 Free-trade area agreement duty rate for the EC
15 15 15 Free-trade agreement duty rates for EFTA Countries
0 0 0 Southern Africa Development Community (SADC) preferential duty rates