GET
/
query
Query tariff information
curl --request GET \
  --url https://www.searchtariff.com/api/query \
  --header 'Authorization: Bearer <token>'
{
"metadata": {
"balance": {
"originalBalance": 1000,
"newBalance": 999
},
"query": "Import steel from Spain to the US",
"total": 15
},
"data": [
{
"source": "US Trade Representative",
"description": "Steel products from Spain",
"build_date": "2025-01-15",
"effective_date": "2025-02-01",
"tariff": "25%",
"__metadata": {
"score": 0.95
},
"from": [
"ES",
"EU"
],
"publishing_authority": "US Customs and Border Protection",
"product": "Steel products",
"to": [
"US"
],
"code": "7208.10.00",
"last_update": "2025-01-20"
}
]
}

Accessing Tariff Information for International Trade

About: This service demonstrates how to use the DataLinks platform as a base of a product. It provides up-to-date tariff rates, regulations, and related information to help businesses make informed decisions about importing and exporting goods. All accessible with natural language queries

Example Query

You can query tariff information using natural language. For example:

"Import steel from Spain to the US"

This query will return relevant tariff information for steel products being imported from Spain to the United States.

How It Works

The tariff service uses the DataLinks platform to:

  1. Process natural language queries about tariffs
  2. Search through comprehensive tariff databases
  3. Return relevant, up-to-date tariff information
  4. Charge users based on usage (per query)

Authorizations

Authorization
string
header
required

Use a Bearer token for authentication. Check pricing
Submit the token using the Authorization header: Authorization: Bearer <token>.

Query Parameters

q
string
required

The tariff query string (e.g., "Import steel from Spain to the US")

Example:

"Import steel from Spain to the US"

Response

200
application/json

Query processed successfully

The response is of type object.