Example Malawi import duty API call MW country flag

For HS Code: 630222

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
25 25 25 MFN applied duty rates
0 0 0 Free-trade agreement duty rate for the Republic of Mozambique
0 0 0 Free-trade agreement duty rate for the Republic of South Africa
0 0 0 Preferential duty rates for Zimbabwe
0 0 0 Preferential duty rates for Botswana
0 0 0 Southern Africa Development Community (SADC) preferential duty rates
5 5 5 Preferential duty rates for the Common Market for Eastern and Southern Africa (COMESA)
30 30 30 General 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=mw&code=630222");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=mw&code=630222

Example JSON reponse

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

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

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

            [3] => Array
                (
                    [id] => 18235
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Preferential duty rates for Zimbabwe
                    [flag1x1] => https://slib.co/flags/1x1/mw.svg
                    [flag3x4] => https://slib.co/flags/4x3/mw.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

            [5] => Array
                (
                    [id] => 18237
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Southern Africa Development Community (SADC) preferential duty rates
                    [flag1x1] => https://slib.co/flags/1x1/mw.svg
                    [flag3x4] => https://slib.co/flags/4x3/mw.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

            [6] => Array
                (
                    [id] => 18238
                    [maximumrate] => 5
                    [minimumrate] => 5
                    [averagerate] => 5
                    [specificrate] => 
                    [description] => Preferential duty rates for the Common Market for Eastern and Southern Africa (COMESA)
                    [flag1x1] => https://slib.co/flags/1x1/mw.svg
                    [flag3x4] => https://slib.co/flags/4x3/mw.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
25 25 25 MFN applied duty rates
0 0 0 Free-trade agreement duty rate for the Republic of Mozambique
0 0 0 Free-trade agreement duty rate for the Republic of South Africa
0 0 0 Preferential duty rates for Zimbabwe
0 0 0 Preferential duty rates for Botswana
0 0 0 Southern Africa Development Community (SADC) preferential duty rates
5 5 5 Preferential duty rates for the Common Market for Eastern and Southern Africa (COMESA)
30 30 30 General duty rates