{
  "x402Version": 2,
  "id": 42835,
  "slug": "42835",
  "resource": "https://2s.io/api/trade/locode",
  "description": "Look up or search UN/LOCODE — the United Nations Code for Trade and Transport Locations (~116k locations, all countries). Pass `locode` for an exact code (e.g. USNYC or 'US NYC'). Or pass `query` to search location names, optionally filtered by `country` (ISO 3166 alpha-2) and `function` (port, rail, road, airport, postal, multimodal, fixed, border). Each result: locode, name, country, subdivision, transport functions, entry status, IATA code where it differs, and coordinates. UN/LOCODE is the standard location identifier in shipping schedules, EDI messages, and customs documents.",
  "type": "http",
  "serviceName": "2s",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1782067076/bazaar-icons/58f7ba8f2b3b8047.png",
  "resourceType": "Travel",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x2b6D4988Db4723E6908Db86Ab2b8dFBc51FC32C5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "TW6ntaGzvj63ZgPjszd4FCGmVTGfzv1MAYZbjYcyWhn",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "2500",
      "amountUsd": 0.0025,
      "maxTimeoutSeconds": 60
    }
  ],
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "locode": "USNYC"
          },
          "type": "http"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "properties": {
              "method": {
                "const": "GET"
              },
              "queryParams": {
                "properties": {
                  "country": {
                    "description": "ISO 3166 alpha-2 filter for query mode.",
                    "type": "string"
                  },
                  "function": {
                    "description": "port | rail | road | airport | postal | multimodal | fixed | border.",
                    "type": "string"
                  },
                  "limit": {
                    "description": "1–50, default 10 (query mode).",
                    "type": "integer"
                  },
                  "locode": {
                    "description": "Exact UN/LOCODE, e.g. USNYC or 'US NYC'.",
                    "type": "string"
                  },
                  "query": {
                    "description": "Location name to search.",
                    "type": "string"
                  }
                }
              },
              "type": {
                "const": "http"
              }
            },
            "required": [
              "type",
              "method",
              "queryParams"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "public-records",
    "identifiers",
    "ai-agents",
    "us-gov-data",
    "x402",
    "bazaar"
  ],
  "sourceHost": "2s.io",
  "lastUpdated": "2026-10-08T23:43:04.198Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T23:43:03.961Z"
  },
  "metadata": {
    "serviceName": "2s",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1782067076/bazaar-icons/58f7ba8f2b3b8047.png",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "locode": "USNYC"
            },
            "type": "http"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "properties": {
                "method": {
                  "const": "GET"
                },
                "queryParams": {
                  "properties": {
                    "country": {
                      "description": "ISO 3166 alpha-2 filter for query mode.",
                      "type": "string"
                    },
                    "function": {
                      "description": "port | rail | road | airport | postal | multimodal | fixed | border.",
                      "type": "string"
                    },
                    "limit": {
                      "description": "1–50, default 10 (query mode).",
                      "type": "integer"
                    },
                    "locode": {
                      "description": "Exact UN/LOCODE, e.g. USNYC or 'US NYC'.",
                      "type": "string"
                    },
                    "query": {
                      "description": "Location name to search.",
                      "type": "string"
                    }
                  }
                },
                "type": {
                  "const": "http"
                }
              },
              "required": [
                "type",
                "method",
                "queryParams"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "2s.io",
    "manifest_name": "2s.io",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  }
}