Rank Mexico export buyers / counterparts
Aggregate Mexico export declarations into a ranked list of foreign buyers.
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 buyers on Mexico export declarations.
{
"requestCost": 1,
"creditsRemaining": 9998.5,
"data": {
"data": [
{
"supplier_name": "Agricola Las Amapas De",
"total_shipments": 1229004,
"name_variations": ["Agricola Las Amapas Sa De Cv"],
"supplier_address": ["Av Juan Carrasco/689 Nte/ /Centro/ /Rosales Y Buelna/, 80000, Culiacan, Sinaloa"],
"customs_offices": ["230 - Nogales, Sonora"],
"product_descriptions": ["Cable Cobre Cal Thhn Naranja", "Cable Cobre Cal Nmb Naranja", "Cable Cobre Cal Nmbr Naranja"],
"incoterms": ["CIP", "EXW"],
"transport_types": ["Undeclared", "Truck", "Sea"]
// …1 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_namestringAgricola Las Amapas Detotal_shipmentsnumber1229004The company's total shipments on record, independent of the filters in this query.
name_variationsstring[]["Agricola Las Amapas Sa De Cv"]supplier_addressstring[]["Av Juan Carrasco/689 Nte/ /Centro/ /Rosales Y Buelna/, 80000, Culiacan, Sinaloa"]customs_officesstring[]["230 - Nogales, Sonora"]product_descriptionsstring[]["Cable Cobre Cal Thhn Naranja", "Cable Cobre Cal Nmb Naranja", "Cable Cobre Cal Nmbr Naranja"]incotermsstring[]["CIP", "EXW"]transport_typesstring[]["Undeclared", "Truck", "Sea"]hs_codesstring[]["854449"]
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.