Example Panama import duty API call PA country flag

For HS Code: 630532

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
15 15 15 MFN applied 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=pa&code=630532");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=pa&code=630532

Example JSON reponse

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

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
15 15 15 MFN applied duty rates