The US Tariff History API provides a clean and structured RESTful interface to explore the historical trends of average tariff rates imposed by the United States, based on official economic data from 1890 to today. This API is useful for economists, researchers, students, and data analysts who want to examine trade policy changes over time. It features endpoints to list all available years and to retrieve the corresponding tariff rate for any specific year. This granularity supports visualizations, economic forecasting, and educational analysis without loading the entire dataset.
{"years":[2025,2024,2023,2022,2021,2020,2019,2018,2017,2016,2015,2014,2013,2012,2011,2010,2009,2008,2007,2006,2005,2004,2003,2002,2001,2000,1999,1998,1997,1996,1995,1994,1993,1992,1991,1990,1989,1988,1987,1986,1985,1984,1983,1982,1981,1980,1979,1978,1977,1976,1975,1974,1973,1972,1971,1970,1969,1968,1967,1966,1965,1964,1963,1962,1961,1960,1959,1958,1957,1956,1955,1954,1953,1952,1951,1950,1949,1948,1947,1946,1945,1944,1943,1942,1941,1940,1939,1938,1937,1936,1935,1934,1933,1932,1931,1930,1929,1928,1927,1926,1925,1924,1923,1922,1921,1920,1919,1918,1917,1916,1915,1914,1913,1912,1911,1910,1909,1908,1907,1906,1905,1904,1903,1902,1901,1900,1899,1898,1897,1896,1895,1894,1893,1892,1891,1890]}
curl --location --request POST 'https://zylalabs.com/api/6527/us+tariff+history+api/9458/all+years+available' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
{"year":2023,"average_tariff_rate":2.4}
curl --location --request POST 'https://zylalabs.com/api/6527/us+tariff+history+api/9459/get+tariff+rate+by+year' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"year":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The US Tariff History API provides historical data on U.S. tariff rates from 1890 to 2025, allowing users to analyze trade policies over time.
Economists, researchers, students, and data analysts can benefit from this API as it provides structured data for examining trade policy changes and trends.
You can retrieve historical average tariff rates for specific years, as well as a list of all available years for analysis.
The API's historical tariff data can be used to identify trends and patterns in trade policies, which can inform economic forecasting and analysis.
Yes, the API provides official economic data on U.S. tariff rates from 1890 to the present, ensuring comprehensive and up-to-date information for users.
The "all years available" endpoint returns a list of years for which tariff data is available, while the "get tariff rate by year" endpoint returns the average tariff rate for a specified year, including the year and its corresponding rate.
The response from the "all years available" endpoint includes a "years" array, while the "get tariff rate by year" endpoint returns "year" and "average_tariff_rate" fields, providing essential information for analysis.
The response data is structured in JSON format. The "all years available" endpoint returns an object with a "years" array, while the "get tariff rate by year" endpoint returns an object with "year" and "average_tariff_rate" fields, making it easy to parse.
The "get tariff rate by year" endpoint requires a single parameter: the specific year (between 1890 and 2025) for which you want to retrieve the average tariff rate. The "all years available" endpoint does not require any parameters.
Users can leverage the returned data to visualize trends in tariff rates over time, compare rates across different years, and integrate this information into broader economic analyses or reports.
Typical use cases include historical economic research, trade policy analysis, educational projects, and economic forecasting, where understanding tariff trends is crucial for informed decision-making.
The data provided by the US Tariff History API is based on official economic records and historical tariff data compiled from government sources, ensuring reliability and accuracy.
Data accuracy is maintained through rigorous sourcing from official records and periodic reviews to ensure that the information reflects the most reliable historical tariff rates available.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
6,376ms
Service Level:
100%
Response Time:
432ms
Service Level:
100%
Response Time:
54ms
Service Level:
100%
Response Time:
88ms
Service Level:
100%
Response Time:
402ms
Service Level:
100%
Response Time:
498ms
Service Level:
100%
Response Time:
491ms
Service Level:
100%
Response Time:
839ms
Service Level:
100%
Response Time:
384ms
Service Level:
100%
Response Time:
8,242ms