---
title: "Days to clear customs and cost to comply with trade rules (B-READY), per country or ranked"
method: GET
path: "/api/trade-customs.json"
---

# Days to clear customs and cost to comply with trade rules (B-READY), per country or ranked

`GET /api/trade-customs.json`

## Request

- Base URL: `https://geo-parity.com`
- URL: `https://geo-parity.com/api/trade-customs.json`
- Auth: one of:
  - none
  - HTTP bearer
  - API key in query parameter `key`

B-READY International Trade firm-survey averages: days for exports and imports to clear border agencies and the cost of complying as % of goods value. 22 of 41; outside the cohort is NO_DATA. For information only; every response says so first.

## Query parameters

- `country` string
- `countries` string
- `metric` 'importDays' | 'exportDays' | 'importCostPct' | 'exportCostPct'
- `sort` 'lowest' | 'highest'
- `limit` number

## Response `200`

One country, comparison rows, or ranked rows; attribution names B-READY

## Other responses

- `400`: A bad metric (INVALID_METRIC) or fewer than two countries (TOO_FEW)
- `422`: A country outside the spine (UNKNOWN_COUNTRY) or outside the B-READY cohort (NO_DATA)

---

[API](https://skmtc.dev/geo-parity/apis/geo-parity-api.md) · [All operations](https://skmtc.dev/geo-parity/apis/geo-parity-api/llms.txt) · [OpenAPI document](https://skmtc.dev/geo-parity/apis/geo-parity-api/revisions/8ddff47a0806?raw)
