Example Morocco import duty API call MA country flag

For HS Code: 620711

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 United Arab Emirates
0 0 0 Free-trade agreement duty rate for EFTA countries
0 0 0 Free-trade agreement duty rate for the Arab League Member Countries
0 0 0 Free-trade agreement duty rate for United States of America
0 0 0 Free-trade agreement duty rate for Arab Mediteranean Countries (Accord Agadir)
0 0 0 Free-trade agreement duty rate for Saudi Arabia
0 0 0 Free-trade agreement duty rate for Tunisia
0 0 0 Free-trade agreement duty rate for Turkey
0 0 0 Free-trade agreement duty rate for the European Communities
<?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=ma&code=620711");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=ma&code=620711

Example JSON reponse

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

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

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

            [3] => Array
                (
                    [id] => 31733
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for the Arab League Member Countries
                    [flag1x1] => https://slib.co/flags/1x1/ma.svg
                    [flag3x4] => https://slib.co/flags/4x3/ma.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

            [5] => Array
                (
                    [id] => 31735
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for Arab Mediteranean Countries (Accord Agadir)
                    [flag1x1] => https://slib.co/flags/1x1/ma.svg
                    [flag3x4] => https://slib.co/flags/4x3/ma.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

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

            [9] => Array
                (
                    [id] => 31739
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for the European Communities
                    [flag1x1] => https://slib.co/flags/1x1/ma.svg
                    [flag3x4] => https://slib.co/flags/4x3/ma.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 United Arab Emirates
0 0 0 Free-trade agreement duty rate for EFTA countries
0 0 0 Free-trade agreement duty rate for the Arab League Member Countries
0 0 0 Free-trade agreement duty rate for United States of America
0 0 0 Free-trade agreement duty rate for Arab Mediteranean Countries (Accord Agadir)
0 0 0 Free-trade agreement duty rate for Saudi Arabia
0 0 0 Free-trade agreement duty rate for Tunisia
0 0 0 Free-trade agreement duty rate for Turkey
0 0 0 Free-trade agreement duty rate for the European Communities