Target Market Statistics

Retrieve ranked target market statistics by partner country for the selected country, HS code, period, and trade flow.
ENDPOINTS
POST /api/v1/tradeAnalytics/targetMarket

Request parameters

countryCode

string

Country ISO3 code

  • Required: Yes
  • Example: USA

startDate

string

Start period in YYYY-MM format

  • Required: Yes
  • Example: 2024-01

endDate

string

End period in YYYY-MM format

  • Required: Yes
  • Example: 2024-12

hsCode

string

HS code

  • Required: No
  • Example: 28

sortType

int

Sort type. 1 sorts by value; 2 sorts by quantity.

  • Required: No
  • Example: 1

ie

string

Trade flow. Use i for import and e for export.

  • Required: No
  • Example: i

partnerIso3

string

Partner country ISO3 code(s), separated by commas.

  • Required: No
  • Example: ITA,MEX
Request Example
{
    "countryCode": "USA",
    "startDate": "2024-01",
    "endDate": "2024-12",
    "hsCode": "28",
    "sortType": 1,
    "ie": "i",
    "partnerIso3": "ITA,MEX"
}
curl https://api.tradedata.io/api/v1/tradeAnalytics/targetMarket \
  -H "Authorization: Bearer yourTokenHere" \
  -H "Content-Type: application/json" \
  -d '{"countryCode": "USA", "startDate": "2024-01", "endDate": "2024-12", "hsCode": "28", "sortType": 1, "ie": "i", "partnerIso3": "ITA,MEX"}'

Response parameters

code

int

Status code

  • Example: 200

data

array

Result container

data.strAvgPrice

string

Average price as a formatted string

  • Example: 57298786555

data.Continent

string

Continent name

  • Example: EUROPE

data.quantity

number

Quantity

  • Example: 0

data.partnerCode

string

Partner country numeric code

  • Example: 380

data.valueProportion

number

Value share

  • Example: 61.04

data.name

string

Partner country name

  • Example: ITALY

data.averagePrice

number

Average price

  • Example: 57298786555

data.iso3Code

string

Partner country ISO3 code

  • Example: ITA

data.quantityProportion

number

Quantity share

  • Example: 0

data.value

number

Trade value

  • Example: 57298786555
Response Example
{
    "code": 200,
    "success": true,
    "data": [
        {
            "strAvgPrice": "57298786555",
            "Continent": "EUROPE",
            "quantity": 0,
            "partnerCode": "380",
            "valueProportion": 61.04,
            "name": "ITALY",
            "averagePrice": 57298786555,
            "iso3Code": "ITA",
            "quantityProportion": 0.0,
            "value": 57298786555
        },
        {
            "strAvgPrice": "36572166138",
            "Continent": "NORTH AMERICA",
            "quantity": 0,
            "partnerCode": "484",
            "valueProportion": 38.96,
            "name": "MEXICO",
            "averagePrice": 36572166138,
            "iso3Code": "MEX",
            "quantityProportion": 0.0,
            "value": 36572166138
        }
    ],
    "msg": "success",
    "total": 2,
    "pageSize": 10,
    "current": 1,
    "sumResult": null
}