TrackingMCP Usage API
The Usage API from TrackingMCP — 1 operation(s) for usage.
The Usage API from TrackingMCP — 1 operation(s) for usage.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/trackingmcp-com:trackingmcp-com-usage-api"
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.
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: 3.2.0
info:
title: TrackingMCP REST Usage API
version: 1.0.0
description: 'DCSA-aligned ocean container tracking across 227 carriers. Every lookup is cross-checked against 2–4 independent sources (110 direct carrier connectors, fallback providers with automatic failover, 4 fused AIS networks, and sailing schedules). Authenticated endpoints take `Authorization: Bearer ` — create a key at https://trackingmcp.com after signing up (free tier: 5 containers, no card; MCP usage is paid in Navo Tokens). AI agents can use the hosted MCP server at https://mcp.trackingmcp.com/mcp instead (registry name io.github.lxxmng/container-tracking).'
contact:
name: TrackingMCP
url: https://trackingmcp.com
email: hello@trackingmcp.com
servers:
- url: https://api.trackingmcp.com
security:
- bearerAuth: []
tags:
- name: Usage
paths:
/v1/usage:
get:
operationId: getUsage
summary: Your usage and limits, over your own API key
description: The counters and limits for the org the key belongs to, from the same ledgers the API enforces against and the sales console shows, so this number, your bill and your rep never disagree. Also mounted at /v1/account/usage.
security:
- bearerAuth: []
responses:
'200':
description: Per-product usage for the current calendar month.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
data:
type: object
properties:
period:
type: string
example: 2026-09
description: UTC calendar month these counters cover.
next_expiry:
type: string
nullable: true
format: date
description: Earliest valid_until across enabled products for the API key making this call; access ends after this date.
invalid_references_this_month:
type: integer
description: Requests refused because YOUR reference was malformed or its carrier is unsupported. Your input errors, never billed, kept apart from consumption.
products:
type: array
items:
type: object
properties:
product:
type: string
example: container
channel:
type: string
example: api
plan:
type: string
enum:
- free
- paid
billing_mode:
type: string
enum:
- monthly
- per_shipment
valid_until:
type: string
nullable: true
format: date
description: Last day the API key making this call can use the product, as the gate applies it to that key (the date shown on the key in the account console). Null means no end date.
start_date:
type: string
nullable: true
format: date
refused_this_month:
type: integer
description: Requests we turned away this month (over the unique allowance, expired access, or a per-key rate cap). Never billed.
last_refused_at:
type: string
nullable: true
format: date-time
calls:
type: object
description: API-call traffic against your plan's call allowance. `used` is this product's calls this month (your own reads of usage/account/api-keys are excluded); `limit`/`remaining` are the call ceiling and what is left of it; `test_used` is the slice of `used` spent on a test key. Distinct from `allowance`, the unique-reference budget that actually bills.
properties:
used:
type: integer
limit:
type: integer
nullable: true
description: Calls allowed this period (your plan allowance, lowered by any per-key rate cap). Null only when neither is set.
remaining:
type: integer
nullable: true
test_used:
type: integer
description: Of `used`, the calls made on a test key. A test key spends a sandbox, never your commercial allowance.
allowance:
type: object
description: 'What you can consume, in the unit you are billed: one unique reference per period. This is the ceiling the add/lookup gate enforces.'
properties:
basis:
type: string
enum:
- unique_reference
limit:
type: integer
nullable: true
description: Maximum unique references this period; null means no ceiling is set.
used:
type: integer
description: Unique references charged this period.
remaining:
type: integer
nullable: true
period:
type: string
description: The month these figures cover, YYYY-MM.
overage:
type: object
properties:
available:
type: boolean
description: Whether overage terms have been agreed for this account.
enabled:
type: boolean
description: Whether you switched overage on.
pct:
type: number
description: How far past the limit service continues, as a percentage of the limit.
unit_price:
type:
- number
- 'null'
description: Price per unit of overage.
currency:
type: string
description: Currency of unit_price, EUR by default.
ceiling:
type:
- number
- 'null'
description: 'The number that actually refuses: limit plus grace when armed, else the limit. Null when there is no limit.'
used:
type: number
description: Units consumed beyond the limit.
estimated_cost:
type:
- number
- 'null'
description: Estimated overage charge so far.
at_limit:
type: string
description: What happens at the limit.
enum:
- bills_overage
- stops
description: What happens when the allowance runs out.
forecast:
type:
- object
- 'null'
description: Straight line projection of this month. Null for a lifetime plan.
properties:
run_rate_per_day:
type: number
description: Average units consumed per elapsed day.
projected:
type: number
description: Where the month ends at the current rate.
days_left:
type: number
description: Calendar days left in the month, including the rest of today.
days_to_cap:
type:
- number
- 'null'
description: Days until the limit is reached at the current rate, null when it is not reached.
will_exhaust:
type: boolean
description: True when the projection passes the limit before the month ends.
key_usage:
type: object
description: Present only when key_ids or key_status was sent. The selected keys' figures for the current month; `products` above stays account-wide (limits and what is left are for the whole account).
properties:
period:
type: string
example: 2026-11
selection:
type: object
properties:
statuses:
type: array
items:
type: string
enum:
- active
- expired
- revoked
keys:
type: array
items:
type: object
properties:
id:
type: string
name:
type:
- string
- 'null'
key_prefix:
type: string
status:
type: string
enum:
- active
- expired
- revoked
summed:
type: string
const: per_key
calls_basis:
type: string
const: call_log
unique_basis:
type: string
const: per_key_ledger
products:
type: array
items:
type: object
properties:
product:
type: string
enum:
- container
- aircargo
- schedules
- freightrates
calls:
type: integer
refused:
type: integer
unique_shipments:
type:
- integer
- 'null'
description: Null for a calls-only product.
api_version:
type: string
description: The response contract this build answers, as a date (YYYY-MM-DD). Added to every JSON object body on /v1.
'400':
description: The request is not valid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'401':
description: Missing or invalid API key.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'403':
description: The caller is not allowed to make this call.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'404':
description: Not found.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'429':
description: Too many requests.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'500':
description: Unexpected error on our side.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
'504':
description: The answer was not ready before the request deadline. Retry shortly.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorEnvelope'
parameters:
- name: key_ids
in: query
required: false
description: Optional. Comma-separated ids of your own API keys. With this or key_status, the answer adds the selected keys' own figures (each key counted on its own, then summed, so a total across keys can exceed the account total). An id that is not one of your keys is a 404.
schema:
type: string
example: c4d78920-ddc3-4d6f-90b7-c1233b3e20ae
- name: key_status
in: query
required: false
description: 'Optional. Comma-separated key categories: active (not revoked and not expired), expired, revoked. Combines with key_ids. A selection that matches no key answers zeros, never the account''s figures.'
schema:
type: string
example: active
tags:
- Usage
components:
schemas:
ErrorEnvelope:
type: object
properties:
ok:
type: boolean
const: false
error:
type: object
properties:
code:
type: string
description: Machine readable error code.
message:
type: string
description: Human readable explanation.
severity:
type: string
description: How serious the error is.
enum:
- info
- warning
- error
retryable:
type: boolean
description: True.
reference:
type: string
description: The reference.
retry_after_seconds:
type: integer
description: Seconds to wait.
fields:
type: array
items:
type: string
description: Field path.
description: Offending fields. Present on schema and reference pair errors.
user_message:
type: string
description: CONTAINER_QUOTA_EXCEEDED only.
credits_required:
type:
- integer
- 'null'
description: Tokens this request needs.
credits_balance:
type:
- integer
- 'null'
description: Tokens the wallet holds.
top_up_url:
type: string
description: Where to top up.
format: uri
packages:
type: array
items:
type: object
properties:
plan:
type: string
description: Plan key.
credits:
type: integer
description: Tokens per month.
usd:
type: number
description: Monthly price in USD.
description: Plans on offer.
reason:
type: string
description: CARRIER_NOT_IDENTIFIED only.
waited_seconds:
type: integer
description: CARRIER_NOT_IDENTIFIED, timed out only.
retry_with:
type: string
const: carrier_code
member_limit:
type:
- integer
- 'null'
description: The member cycle limit.
member_spent:
type:
- integer
- 'null'
description: Tokens the member has used this cycle.
member_remaining:
type:
- integer
- 'null'
description: Tokens left for the member.
retry_after:
type: integer
description: Seconds until the next refresh is allowed.
request_id:
type: string
format: uuid
requested:
type:
- string
- 'null'
supported_versions:
type: array
items:
type: string
oldest_supported:
type: string
latest:
type: string
docs:
type: string
progress:
type: object
properties:
carrier_code:
type: string
carrier_name:
type:
- string
- 'null'
carrier_identified:
type: boolean
enum:
- true
registered_at:
type:
- string
- 'null'
format: date-time
last_checked_at:
type:
- string
- 'null'
format: date-time
next_check_after_seconds:
type: integer
enum:
- 60
unresolved_reason:
type: string
outcome:
type: string
enum:
- SEALINE_HASNT_PROVIDE_INFO
- NO_EVENTS
- WRONG_NUMBER
- REFERENCE_REQUIRED
- LINE_NOT_SUPPORTED
- PENDING
- UNRESOLVED
outcome_class:
type: string
sealine_status:
type:
- string
- 'null'
previous_trip:
type:
- object
- 'null'
description: The trip before yours for this box, when the line still reports it. Null when there is none.
properties:
line:
type:
- string
- 'null'
description: The line that answered, as its SCAC.
last_event:
type: object
properties:
code:
type:
- string
- 'null'
description:
type:
- string
- 'null'
location:
type:
- string
- 'null'
unlocode:
type:
- string
- 'null'
datetime:
type:
- string
- 'null'
format: date-time
events:
type: array
items:
type: object
properties:
code:
type:
- string
- 'null'
description:
type:
- string
- 'null'
location:
type:
- string
- 'null'
unlocode:
type:
- string
- 'null'
datetime:
type:
- string
- 'null'
format: date-time
ended_at:
type:
- string
- 'null'
format: date-time
lessor_note:
type:
- string
- 'null'
description: A note for leasing-company accounts when no line holds the box yet. Null otherwise.
identified_line:
type:
- string
- 'null'
identified_party:
type:
- string
- 'null'
identified_party_role:
type:
- string
- 'null'
enum:
- current_lessee
- null
required_reference_types:
type:
- array
- 'null'
items:
type: string
enum:
- bill_of_lading
- booking
connector_status:
type:
- string
- 'null'
enum:
- in_progress
- not_supported
- connected
- reference_required
- null
notification_interest_available:
type: boolean
carrier_notice:
type: object
nullable: true
description: Latest reference-specific reply from the named carrier. SHIPMENT_CANCELLED is an explicit matched Maersk cancellation, independent of retained movement history. no_longer_available is Swire stating it no longer serves tracking details for this shipment, or Hapag-Lloyd refusing a number it answered before (the record keeps the line's last data; refused_since and data_as_of date the two). ZIM notices clear after useful tracking, the Hapag-Lloyd one when the line answers the number again.
properties:
carrier_code:
type: string
enum:
- ZIMU
- MAEU
- CHVW
- HLCU
reference:
type: string
reference_type:
type: string
enum:
- container
- bl
- booking
status:
type: string
enum:
- other_carrier
- temporarily_unavailable
- not_found
- invalid_reference
- SHIPMENT_CANCELLED
- no_longer_available
message:
type: string
checked_at:
type: string
format: date-time
suggested_carrier:
type: string
nullable: true
suggested_url:
type: string
nullable: true
format: uri
refused_since:
type: string
format: date-time
description: 'Hapag-Lloyd only: when the line first refused the number after its last answer.'
data_as_of:
type: string
format: date-time
nullable: true
description: 'Hapag-Lloyd only: the line''s last answer about this number, null when none is on record.'
api_version:
type: string
description: The response contract this build answers, as a date (YYYY-MM-DD). Added to every JSON object body on /v1.
carrier_hint_applied:
type: boolean
const: false
description: Present when the line named was not used.
carrier_hint_code:
type: string
description: Known line that cannot be asked.
upgrade:
type:
- object
- 'null'
description: CONTAINER_QUOTA_EXCEEDED only.
properties:
plan:
type: string
description: Next plan.
monthly_eur:
type:
- number
- 'null'
description: Monthly price.
annual_eur:
type:
- number
- 'null'
description: Annual price.
warning:
type: string
description: Why the line named was not used.
data:
type: object
properties:
id:
type: string
description: Existing record id.
archived_at:
type:
- string
- 'null'
format: date-time
description: When tracking stopped.
archived_reason:
type:
- string
- 'null'
description: Null when your account archived it, otherwise the reason our archiver closed it.
resume:
type: object
properties:
method:
type: string
const: POST
path:
type: string
const: /v1/containers
body:
type: object
properties:
identifier:
type: string
description: The reference to add again.
description: Present only when the reference was already tracked.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: TrackingMCP API key (or a session JWT). Create keys in the dashboard — https://trackingmcp.com/developers.