PowerQuery
GET

Rank Mexico export companies

1 per 10 records

Aggregate Mexico export declarations into a ranked list of Mexican exporters.

Parameters#

Query parameters

28 parameters
  • page_sizenumberoptionaldefault 10

    Number of returned results

  • offsetnumberoptionaldefault 0

    Results starting position

  • start_datestringoptionaldefault 01/01/2021
  • end_datestringoptionaldefault 08/31/2026
  • pagenumberoptional

    Page number (1-indexed). Takes precedence over offset.

  • company_namestringoptional
  • supplier_namestringoptional
  • product_descriptionstringoptional

    Supports boolean operators and wildcards

    AND / OR / NOTwildcards * ?
  • weightstringoptional

    Supports ranges

    ranges [a TO b]
  • company_total_shipmentsstringoptional

    Supports ranges

    ranges [a TO b]
  • supplier_total_shipmentsstringoptional

    Supports ranges

    ranges [a TO b]
  • who_pays_freightstringoptionaldefault Foreign entity

    Foreign 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 Mexican exporters that match your filters.

Response shape
{
  "requestCost": 1,
  "creditsRemaining": 9998.5,
  "data": {
    "data": [
      {
        "company_name": "Alimentos Maravilla",
        "total_shipments": 1958,
        "name_variations": ["Alimentos Maravilla S.A"],
        "company_address": ["Rod. Br 101 Km 100 Santo Antonio Picarras"],
        "company_country_code": "US",
        "company_country": "Estados Unidos De America",
        "customs_offices": ["421 - Tuxpan, Veracruz", "160 - Manzanillo, Colima", "430 - Veracruz"],
        "incoterms": ["CFR", "EXW", "CIF"]
        // …3 more fields
      }
    ],
    "totalCompanies": 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.totalCompanies, 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.totalCompanies)
  • requestCostData credits used for this call (0 if none)
  • creditsRemainingYour data credit balance after the call
  • executionTimeHow long the request took
  • totalCompaniesTotal matching companies, not just this page

Fields on each row in data.data#

FieldExample
11 fields
  • company_namestringAlimentos Maravilla
  • total_shipmentsnumber1958

    The company's total shipments on record, independent of the filters in this query.

  • name_variationsstring[]["Alimentos Maravilla S.A"]
  • company_addressstring[]["Rod. Br 101 Km 100 Santo Antonio Picarras"]
  • company_country_codestringUS
  • company_countrystringEstados Unidos De America
  • customs_officesstring[]["421 - Tuxpan, Veracruz", "160 - Manzanillo, Colima", "430 - Veracruz"]
  • product_descriptionsstring[]
  • incotermsstring[]["CFR", "EXW", "CIF"]
  • transport_typesstring[]["Undeclared", "Truck", "Sea"]
  • hs_codesstring[]["200911"]

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.