Integrate

Quick start

https://docs.importexportapi.com/quick-start

From zero to a successful API call. No SDK to install: it is plain HTTPS + JSON from any language.

Request · Raw trade observations
curl -X GET "https://api.importexportapi.com/trade" \
  -H "Authorization: Bearer sk_live_xxxxxxxxxxxxxxxxxxxx"
Response
{
  "data": [
    {
      "exporter": "example",
      "importer": "example",
      "hs6": "example",
      "hs_version": 0,
      "period": "2026-01-01",
      "granularity": "example",
      "value_usd": 0,
      "quantity": 0,
      "quantity_unit": "example"
    }
  ],
  "request_id": "",
  "duration_ms": 0
}
  1. 1

    Create an API key

    Sign up at the dashboard, open API keys, create one, and export it: export API_KEY=sk_live_…
  2. 2

    Make the request

    Call Raw trade observations (GET /trade) with the example on the right. Swap the placeholder values for real ones.
  3. 3

    Read the response

    A 200 with the JSON body shown on the right. Every response includes request_id; store it next to the result.
  4. 4

    Handle errors

    Errors share one envelope: { error, message, request_id }. Branch on error; see Errors.

Let an agent do it

Point Claude Code or Cursor at the OpenAPI spec and it writes the client, wiring, and tests for you.

Next