Rank Mexico import suppliers
Aggregate Mexico import declarations into a ranked list of foreign suppliers.
Parameters#
Query parameters
page_sizenumberoptionaldefault10Number of returned results
offsetnumberoptionaldefault0Results starting position
start_datestringoptionaldefault01/01/2021end_datestringoptionaldefault08/31/2026pagenumberoptionalPage number (1-indexed). Takes precedence over offset.
company_namestringoptionalsupplier_namestringoptionalproduct_descriptionstringoptionalSupports boolean operators and wildcards
AND / OR / NOTwildcards * ?weightstringoptionalSupports ranges
ranges [a TO b]company_total_shipmentsstringoptionalSupports ranges
ranges [a TO b]supplier_total_shipmentsstringoptionalSupports ranges
ranges [a TO b]who_pays_freightstringoptionaldefaultForeign entityForeign entity / Mexico entity
one ofForeign entityMexico entity
fields, exclude, and format work the same way on every endpoint — Response shaping has worked examples.
Response#
A volume-ranked list of foreign suppliers on Mexico import declarations.
{
"requestCost": 1,
"creditsRemaining": 9998.5,
"data": {
"data": [
{
"supplier_name": "Arconic Global Rolled Products Alumax Mill Products",
"total_shipments": 12589,
"name_variations": ["Arconic Global Rolled Products Alumax Mill Products, Inc"],
"supplier_country_code": "MX",
"supplier_country": "Mexico",
"customs_offices": ["170 - Matamoros, Tamaulipas", "521 - Aeropuerto Internacional General Mariano Escobedo, Apodaca, Nuevo Leon"],
"product_descriptions": ["Rollo Aluminio", "Rollo Aluminio Aleado", "Laminas Aluminio"],
"incoterms": ["DAP", "DDP", "DPU"]
// …2 more fields
}
],
"totalSuppliers": 59583
},
"executionTime": "224ms"
}Rows are nested one level deeper
PowerQuery routes put the records at data.data — not at data. The total number of matches is on data.totalSuppliers, which is the value you page against. Note that this key is named per route family (totalCount, totalCompanies, totalSuppliers, totalBrokers).
Top-level fields#
data— an object holding the result rows (data.data) and the match total (data.totalSuppliers)requestCost— Data credits used for this call (0 if none)creditsRemaining— Your data credit balance after the callexecutionTime— How long the request tooktotalSuppliers— Total matching suppliers, not just this page
Fields on each row in data.data#
supplier_namestringArconic Global Rolled Products Alumax Mill Productstotal_shipmentsnumber12589The company's total shipments on record, independent of the filters in this query.
name_variationsstring[]["Arconic Global Rolled Products Alumax Mill Products, Inc"]supplier_country_codestringMXsupplier_countrystringMexicocustoms_officesstring[]["170 - Matamoros, Tamaulipas", "521 - Aeropuerto Internacional General Mariano Escobedo, Apodaca, Nuevo Leon"]product_descriptionsstring[]["Rollo Aluminio", "Rollo Aluminio Aleado", "Laminas Aluminio"]incotermsstring[]["DAP", "DDP", "DPU"]transport_typesstring[]["Undeclared", "Truck", "Sea"]hs_codesstring[]["761699", "760200", "761610"]
Errors#
Failures come back as JSON with a statusCode and message. The ones worth handling here are 401 (bad or missing key), 403 (out of credits), and 404 (no such record). See all error responses.