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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
991ms
Service Level:
100%
Response Time:
2,140ms
Service Level:
100%
Response Time:
947ms
Service Level:
100%
Response Time:
1,024ms
Service Level:
100%
Response Time:
1,520ms
Service Level:
100%
Response Time:
406ms
Service Level:
100%
Response Time:
271ms
Service Level:
100%
Response Time:
249ms
Service Level:
100%
Response Time:
462ms
Service Level:
100%
Response Time:
117ms