PowerQuery
GET

Rank Mexico export customs brokers

1 per 10 records

Aggregate Mexico export declarations into a ranked list of customs brokers.

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 customs brokers on Mexico export declarations.

Response shape
{
  "requestCost": 1,
  "creditsRemaining": 9998.5,
  "data": {
    "data": [
      {
        "broker_name": "3575 - Alberto Perez Ortiz",
        "total_shipments": 1311940,
        "product_descriptions": ["Desperdicio Aluminio", "Desperdicio Laminas Aluminio Rollo", "Desperdicio Chapas Aluminio Rollo Mmx"],
        "incoterms": ["DAP", "DDP", "DPU"],
        "transport_types": ["Undeclared", "Truck", "Air"],
        "hs_codes": ["761699", "760200", "761610"]
        // …1 more fields
      }
    ],
    "totalBrokers": 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.totalBrokers, 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.totalBrokers)
  • requestCostData credits used for this call (0 if none)
  • creditsRemainingYour data credit balance after the call
  • executionTimeHow long the request took
  • totalBrokersTotal matching brokers, not just this page

Fields on each row in data.data#

FieldExample
  • broker_namestring3575 - Alberto Perez Ortiz
  • total_shipmentsnumber1311940

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

  • customs_officesstring[]
  • product_descriptionsstring[]["Desperdicio Aluminio", "Desperdicio Laminas Aluminio Rollo", "Desperdicio Chapas Aluminio Rollo Mmx"]
  • incotermsstring[]["DAP", "DDP", "DPU"]
  • transport_typesstring[]["Undeclared", "Truck", "Air"]
  • 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.