POST /api/importyeti/companies/partners
Price: 20 credits
List the trading partners recorded against one business in US ocean import bills of lading, ranked by shipment volume. For a US importer these are its foreign suppliers; for a foreign supplier these are its US customers. Each partner carries its own ImportYeti id, name, address, country, shipments over the whole record and over the last 12 months, weight and TEU totals, the HS codes and goods descriptions moved on that relationship, an HS chapter breakdown, the partner's own largest counterparties, a month-by-month shipment history for the pair, and the UFLPA forced-labour flag.
Use this to walk a supply chain: every partner's `id` feeds straight back into /importyeti/companies or into this endpoint again, so importer -> supplier -> that supplier's other customers is three calls. `role` on each row tells you which side you landed on, and `total_shipments` counts the whole partner rather than just the pair. The public tier serves the leading partners by volume, so read the list as the head of the ranking rather than the complete set. A row with is_name_withheld true is a real relationship whose business name the source did not publish: its volumes and commodities are intact, but it carries no name and no id to walk to.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)company string required — ImportYeti business id as returned by search: company/<slug> for a US importer or supplier/<slug> for a foreign counterparty. A full importyeti.com profile URL also works (examples: "company/nike-ihm", "supplier/kiefel", "https://www.importyeti.com/company/wal-mart"; minLength: 1)count integer required — Max number of results (min: 1; max: 50)@type string (default: "ImportyetiTradePartner")name string nullableis_name_withheld boolean nullableid string nullablealias string nullablerole string nullableurl string nullableaddress string nullablelocation string nullablelocation_url string nullablecountry string nullablecountry_code string nullablecountry_url string nullabletotal_shipments integer nullableshipments_12m integer nullabletotal_weight integer nullabletotal_teu integer nullablehs_codes array (default: [])hs_chapters array (default: [])@type string (default: "ImportyetiHsChapterShare")chapter string requiredname string nullableshipments integer nullableshipments_share number nullableweight integer nullableweight_share number nullableteu integer nullableteu_share number nullableproduct_description string nullabletop_partners array (default: [])@type string (default: "ImportyetiTopPartner")name string requiredtotal_shipments integer nullableshipments_12m integer nullablemonthly_shipments array (default: [])@type string (default: "ImportyetiPartnerMonthlyPoint")date string requiredshipments integer nullableweight integer nullableteu integer nullableis_internal boolean nullableis_uflpa_flagged boolean nullableuflpa_url string nullable422 — The request body did not validate Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — No ImportYeti profile under that id, on either the company or the supplier side Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.