Call it
curl https://api.peume.com/v1/call/total-exporter-trade \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"catalog": "imports",
"startDate": "your startDate",
"endDate": "your endDate"
}
}'const res = await fetch("https://api.peume.com/v1/call/total-exporter-trade", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"catalog": "imports",
"startDate": "your startDate",
"endDate": "your endDate"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/total-exporter-trade",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"catalog": "imports",
"startDate": "your startDate",
"endDate": "your endDate"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: total-exporter-trade.
Parameters
catalogRequiredstringData-source side: customs import records or export records.
imports · exports
startDateRequiredstringQuery window start, YYYY-MM-DD. The window may span at most three years.
endDateRequiredstringQuery window end, YYYY-MM-DD.
importerstringImporter (consignee) company name, min 2 chars. Drop company suffixes and special characters for better matching.
exporterstringExporter company name (min 2 chars). Drop company suffixes and special characters for better matching.
productDescstringProduct description keywords; separate multiple keywords with semicolons (e.g. 'electronics; home appliance').
hsCodestringCustoms HS code, 4+ digits (e.g. '630492'). A 2-digit chapter code works only combined with productDesc or a company name.
countryOfOriginCodestringOrigin country ISO3 code(s), semicolon-separated (e.g. 'CHN;USA').
countryOfDestinationCodestringDestination country ISO3 code(s), semicolon-separated (e.g. 'USA;CHN').
portOfDeparturestringDeparture port name.
portOfArrivalstringArrival port name.
transportTypestringTransport mode (e.g. sea, air, road).
weightarrayWeight range in kilograms, as [min, max].
quantityarrayQuantity range, as [min, max].
quantityUnitstringQuantity unit filter (e.g. 'PCS', 'PKG').
sumOfUSDarrayTotal USD value range, as [min, max].
weightUnitPriceUSDarrayUSD unit price per kilogram range, as [min, max].
quantityUnitPriceUSDarrayUSD unit price per quantity range, as [min, max].
filterBlankFieldsarrayDrop records whose named party is blank (e.g. ["importer"]).
filterLogisticFieldsarrayDrop records whose named party is a logistics company (e.g. ["exporter"]). Buyers have reported forwarders still being returned, so screen party names yourself.
searchModestringSet to FUZZY_SINGLE for single-keyword fuzzy matching; omit for the default smart search.
containProducerbooleanInclude producer companies (available on Russia/Kazakhstan sources).
optimizationModelbooleanPrefer the vendor's optimized data sources.
