Example Costa Rica import duty API call CR country flag

For HS Code: 441234

Duty API Access

Try it


Results

Country Min % Max % Avg % Calculation Description
9 9 9 MFN applied duty rates
0 0 0
0 0 0 Free-trade agreement duty rate for Mexico
0 0 0 Free-trade agreement duty rate for Dominican Republic
0 0 0 Free-trade agreement duty rate for Panama
0 0 0 Free-trade agreement duty rate for Canada
0 0 0 Free-trade agreement duty rate for Trinidad and Tobago
0 0 0 Free-trade agreement duty rate for Guyana
0 0 0 Free-trade agreement duty rate for Barbados
0 0 0 Free-trade agreement duty rate for CAFTA, Dominican Republic and United States
0 0 0 Free-trade agreement duty rate for Belice
5.3 5.3 5.3 Free-trade agreement duty rate for China
5 5 5 Free-trade agreement duty rate for Peru
5 5 5 Free-trade agreement duty rate for Singapore
6 6 6 Free-trade agreement duty rate for EFTA Countries
0 0 0 Free-trade agreement duty rate for Dominican Republic
0 0 0 Free-trade agreement duty rate for Jamaica
8.7 8.7 8.7 Free-trade agreement duty rate for Colombia
5 5 5 Free-trade agreement duty rate for EU 27 (with the exception of Croatia)
5 5 5 Free-trade agreement duty rate for Andorra
<?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=cr&code=441234");

?>

Example API call

Demo: https://slib.co/v1/?duty=hs&country=cr&code=441234

Example JSON reponse

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

            [1] => Array
                (
                    [id] => 23158
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => 
                    [flag1x1] => https://slib.co/flags/1x1/cr.svg
                    [flag3x4] => https://slib.co/flags/4x3/cr.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

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

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

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

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

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

            [9] => Array
                (
                    [id] => 23166
                    [maximumrate] => 0
                    [minimumrate] => 0
                    [averagerate] => 0
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for CAFTA, Dominican Republic and United States
                    [flag1x1] => https://slib.co/flags/1x1/cr.svg
                    [flag3x4] => https://slib.co/flags/4x3/cr.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

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

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

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

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

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

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

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

            [18] => Array
                (
                    [id] => 23175
                    [maximumrate] => 5
                    [minimumrate] => 5
                    [averagerate] => 5
                    [specificrate] => 
                    [description] => Free-trade agreement duty rate for EU 27 (with the exception of Croatia)
                    [flag1x1] => https://slib.co/flags/1x1/cr.svg
                    [flag3x4] => https://slib.co/flags/4x3/cr.svg
                    [statuscode] => 201
                    [statusdescription] => HS Data Found
                )

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

        )

)

Example JSON response in a html table

Country Min % Max % Avg % Calculation Description
9 9 9 MFN applied duty rates
0 0 0
0 0 0 Free-trade agreement duty rate for Mexico
0 0 0 Free-trade agreement duty rate for Dominican Republic
0 0 0 Free-trade agreement duty rate for Panama
0 0 0 Free-trade agreement duty rate for Canada
0 0 0 Free-trade agreement duty rate for Trinidad and Tobago
0 0 0 Free-trade agreement duty rate for Guyana
0 0 0 Free-trade agreement duty rate for Barbados
0 0 0 Free-trade agreement duty rate for CAFTA, Dominican Republic and United States
0 0 0 Free-trade agreement duty rate for Belice
5.3 5.3 5.3 Free-trade agreement duty rate for China
5 5 5 Free-trade agreement duty rate for Peru
5 5 5 Free-trade agreement duty rate for Singapore
6 6 6 Free-trade agreement duty rate for EFTA Countries
0 0 0 Free-trade agreement duty rate for Dominican Republic
0 0 0 Free-trade agreement duty rate for Jamaica
8.7 8.7 8.7 Free-trade agreement duty rate for Colombia
5 5 5 Free-trade agreement duty rate for EU 27 (with the exception of Croatia)
5 5 5 Free-trade agreement duty rate for Andorra