RapidAPI logo

Sign Up

Log In

Tariff Rates

FREE
By DataServices
Updated 3 months ago
Business
3.5/10
Popularity Score
548ms
Latency
-
Success Rate

Tariff Rates API Documentation

The Tariff Rates API provides data about each country with whom the United States has a Free Trade Agreement (FTA). When the U.S. enters into an FTA with a foreign government, it negotiates lower tariff rates with that government for a wide variety of products. A tariff is a tax that a company must pay a foreign country when shipping a product to that country. Typically the FTA tariffs rates decline over several years.

View API Details
GET/api.trade.gov/v2/tariff_rates/search
GET/api.trade.gov/v2/tariff_rates/search
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Request Snippet
unirest.get("https://dataservices-tariff-rates-v1.p.rapidapi.com/api.trade.gov/v2/tariff_rates/search")
.header("X-RapidAPI-Host", "dataservices-tariff-rates-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://dataservices-tariff-rates-v1.p.rapidapi.com/api.trade.gov/v2/tariff_rates/search")
.header("X-RapidAPI-Host", "dataservices-tariff-rates-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication