border.bot
Esc
  • Loading…
↑ ↓ to move↵ to openEsc to close
Docs menu

Supported countries

GET https://api.border.bot/v1/countries

Public: no authentication needed.

All ISO countries with whether classification is available and the nomenclature it answers in (the destination’s own tariff where border.bot has one: 10 digits for the US HTS and EU TARIC; 6-digit HS for other countries when that is switched on), and whether landed-cost calculation is supported. No authentication needed.

Responses#

  • 200: Country coverage. (CountriesResponse)
  • 429: Rate limited (rate_limited). Retry after Retry-After seconds; RateLimit says which limit was hit (r=0, t seconds until its window ends) and RateLimit-Policy its quota. (Error)
  • 500: Unexpected error (internal). (Error)

Example request#

curl -X GET https://api.border.bot/v1/countries

Example response (200)#

JSON
{
  "data": [
    {
      "code": "string",
      "name": "string",
      "flag": "string",
      "nomenclature": "us",
      "nomenclatureLabel": "string",
      "classification": false,
      "landedCost": false
    }
  ],
  "popularDestinations": [
    "string"
  ],
  "popularOrigins": [
    "string"
  ]
}