Terminal49 Ports API

The Ports API from Terminal49 — 1 operation(s) for ports.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

GET /ports/{id} Get a port using the locode or the id #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/terminal49:terminal49-ports-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

terminal49-ports-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Terminal49 Ports API
  version: 0.2.0
  contact:
    name: Terminal49 API support
    url: https://www.terminal49.com
    email: support@terminal49.com
  termsOfService: https://www.terminal49.com/terms
  x-label: Beta
  x-refined-note:
  - x-synced-at differs across the merged source definitions and was not carried
  - x-synced-from differs across the merged source definitions and was not carried
  description: 'Operations tagged Ports across 2 of this provider''s published API definitions: terminal49-docs-openapi.json, terminal49-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.terminal49.com/v2
  description: Production
security:
- authorization: []
tags:
- name: Ports
paths:
  /ports/{id}:
    parameters:
    - schema:
        type: string
      name: id
      in: path
      required: true
    get:
      summary: Get a port using the locode or the id
      tags:
      - Ports
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/port'
        '404':
          $ref: '#/components/responses/NotFound'
      operationId: get-port-id
      description: Return the details of a single port.
    servers:
    - url: https://api.terminal49.com/v2
      description: Production
components:
  schemas:
    error:
      title: Error model
      type: object
      properties:
        detail:
          type:
          - string
          - 'null'
        title:
          type:
          - string
          - 'null'
        source:
          type:
          - object
          - 'null'
          properties:
            pointer:
              type:
              - string
              - 'null'
            parameter:
              type:
              - string
              - 'null'
        code:
          type:
          - string
          - 'null'
        status:
          type:
          - string
          - 'null'
        meta:
          type:
          - object
          - 'null'
          additionalProperties: true
    port:
      title: Port model
      type: object
      properties:
        id:
          type: string
          format: uuid
        attributes:
          type: object
          properties:
            name:
              type: string
            code:
              type: string
              description: UN/LOCODE
            state_abbr:
              type:
              - string
              - 'null'
              x-stoplight:
                id: jixah1a0q3exs
            city:
              type:
              - string
              - 'null'
              x-stoplight:
                id: 657ij4boc7kyv
            country_code:
              type: string
              description: 2 digit country code
            time_zone:
              type: string
              description: IANA tz
            latitude:
              type:
              - string
              - 'null'
              x-stoplight:
                id: 480os7a90z6kk
              description: Latitude in decimal degrees, serialized as a decimal string (for example `"22.57489971"`).
              example: '22.57489971'
            longitude:
              type:
              - string
              - 'null'
              x-stoplight:
                id: nfdetqgx5p1yv
              description: Longitude in decimal degrees, serialized as a decimal string (for example `"22.57489971"`).
              example: '114.27769989'
        type:
          type: string
          enum:
          - port
      required:
      - id
      - type
    port_2:
      title: Port model
      type: object
      properties:
        id:
          type: string
          format: uuid
        attributes:
          type: object
          properties:
            name:
              type: string
            code:
              type: string
              description: UN/LOCODE
            state_abbr:
              type:
              - string
              - 'null'
              x-stoplight:
                id: jixah1a0q3exs
            city:
              type:
              - string
              - 'null'
              x-stoplight:
                id: 657ij4boc7kyv
            country_code:
              type: string
              description: 2 digit country code
            time_zone:
              type: string
              description: IANA tz
            latitude:
              type:
              - number
              - 'null'
              x-stoplight:
                id: 480os7a90z6kk
            longitude:
              type:
              - number
              - 'null'
              x-stoplight:
                id: nfdetqgx5p1yv
        type:
          type: string
          enum:
          - port
      required:
      - id
      - type
  responses:
    NotFound:
      description: Not Found
      content:
        application/json:
          schema:
            type: object
            properties:
              errors:
                type: array
                items:
                  $ref: '#/components/schemas/error'
          example:
            errors:
            - status: '404'
              title: Not Found
  securitySchemes:
    authorization:
      name: Authorization
      type: apiKey
      in: header
      description: 'Use a Terminal49 API key in the `Authorization` header with the `Token` prefix.


        `Authorization: Token YOUR_API_KEY`'
x-refined-from:
- terminal49-docs-openapi.json
- terminal49-openapi.json
x-tagGroups:
- name: End Points
  tags:
  - Shipments
  - Containers
  - Custom Field Definitions
  - Custom Field Options
  - Custom Fields
  - Tracking Requests
  - Webhooks
  - Webhook Notifications
  - Metro Areas
  - Documents
  - Email Submissions
  - Document Schemas
  - Search
- name: Routing (Paid)
  tags:
  - Routing (Paid)
- name: Trade Intelligence
  tags:
  - Trade Intelligence