Discover/DHL API
live

DHL APIdhl.com

Track DHL shipments, find service points, get address suggestions, and retrieve service alerts via a single REST API. 8 endpoints, real tracking event data.

Endpoint health
verified 2d ago
get_address_suggestions
get_service_alerts
track_shipment
get_shipment_status
get_shipment_events
8/8 passing latest checkself-healing
Endpoints
8
Updated
21d ago

What is the DHL API?

This API exposes 8 endpoints covering DHL shipment tracking, service point discovery, address geocoding, and operational alerts. The track_shipment endpoint returns a full shipment object including status, a chronological event list, and delivery details. Separate endpoints let you isolate just the current status, the event history, or the estimated delivery timestamp — useful when you only need a single field rather than the full payload.

Try it
DHL tracking number (alphanumeric, typically 10-34 characters)
api.parse.bot/scraper/9d062457-066e-437e-ad7d-4979ace42d65/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/9d062457-066e-437e-ad7d-4979ace42d65/track_shipment?tracking_number=JJD014600007380167713' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace dhl-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.dhl_logistics_api import DHL, Shipment, ServicePoint, AddressSuggestion, Country, Alert, ShipmentNotFound

dhl = DHL()

# Track a shipment by number
shipment = dhl.shipments.get(tracking_number="JJD014600007380167713")
print(shipment.tracking_number, shipment.status_)

# Get current status via constructible shipment
constructed = dhl.shipment("JJD014600007380167713")
status_info = constructed.status()
print(status_info.status, status_info.location, status_info.timestamp)

# Get delivery estimate
estimate = constructed.estimated_delivery()
print(estimate.estimated_delivery)

# Search for nearby service points
for point in dhl.servicepoints.search(address="10001", country_code="US"):
    print(point.service_point_name, point.distance, point.facility_id)

# Get address suggestions
for suggestion in dhl.addresssuggestions.search(query="10001", country_code="US"):
    print(suggestion.label, suggestion.value, suggestion.place_id)

# List available countries
for country in dhl.countries.list():
    print(country.country_code, country.postcode, country.postcode_formats)

# Check service alerts
for alert in dhl.alerts.list():
    print(alert.date, alert.title, alert.description)
All endpoints · 8 totalmissing one? ·

Track a DHL shipment by tracking number. Returns the full shipment object including status, all tracking events, and delivery details when the shipment is found. Returns a not-found indicator with status Not Found when the tracking number has no associated shipment.

Input
ParamTypeDescription
tracking_numberrequiredstringDHL tracking number (alphanumeric, typically 10-34 characters)
Response
{
  "type": "object",
  "fields": {
    "detail": "string, description when shipment is not found",
    "status": "string, current shipment status or Not Found",
    "shipments": "array of shipment objects with status, events, and delivery info (present when shipment is found)",
    "tracking_number": "string, the queried tracking number"
  },
  "sample": {
    "data": {
      "detail": "No shipment with given tracking number found.",
      "status": "Not Found",
      "tracking_number": "JJD014600007380167713"
    },
    "status": "success"
  }
}

About the DHL API

Shipment Tracking

The core tracking surface is split across four endpoints. track_shipment returns the complete shipment object when found — including a shipments array with status, events, and delivery info — or a detail string and status: 'Not Found' when the tracking number has no associated record. get_shipment_status trims the response to status, location (city of last known event), and an ISO timestamp. get_shipment_events returns only the ordered events array, each item containing timestamp, location, and description. get_estimated_delivery returns a single ISO-formatted estimated_delivery string, or null when no estimate is available. All four endpoints accept a tracking_number string, typically 10–34 alphanumeric characters.

Service Point Discovery and Address Handling

find_service_point accepts a freeform address string and an optional country_code (ISO 3166-1 alpha-2). It returns up to 10 nearby DHL Express drop-off/pickup locations, each with name, address, geoLocation, distance, openingHours, and capabilities fields, plus a searchLocation object showing the resolved coordinates and geocoded suggestion. If you need to validate or normalize an address first, get_address_suggestions takes a query string and optional country_code and returns candidate addresses with label, value, placeId, latitude, longitude, providerId, and countryCode fields. The value field is formatted for direct use as input to find_service_point.

Countries and Service Alerts

list_countries requires no inputs and returns every country where DHL shipping services are available. Each record includes countryCode, a postcode boolean, postcodeFormats (an array of valid format patterns), and recommendedPostcodeFormat when postcodes apply. get_service_alerts also requires no inputs and returns an alerts array of current disruption notices and operational information, each with date, title, and description.

Reliability & maintenanceVerified

The DHL API is a managed, monitored endpoint for dhl.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when dhl.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official dhl.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2d ago
Latest check
8/8 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Display live parcel status and last-known city in an e-commerce order management dashboard using get_shipment_status.
  • Send push notifications when a new event appears in the events array returned by get_shipment_events.
  • Surface estimated delivery dates in a checkout confirmation flow using get_estimated_delivery.
  • Build a store-locator widget that finds the nearest DHL drop-off point from a user-entered postcode via find_service_point.
  • Autocomplete and validate shipping addresses before checkout using get_address_suggestions.
  • Populate a country selector filtered to DHL-supported markets using list_countries, respecting valid postcodeFormats.
  • Monitor DHL service disruptions and display relevant alerts to customers using get_service_alerts.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does DHL have an official developer API?+
Yes. DHL publishes official APIs through its DHL Developer Portal at developer.dhl.com, covering shipment tracking, express services, and more. The Parse API provides a consistent interface to the same tracking and service data without requiring a separate DHL developer account.
What does `track_shipment` return differently from `get_shipment_status`?+
track_shipment returns the full shipments array with complete event history and delivery details, plus a detail string when the number is not found. get_shipment_status returns only three fields — status, location, and timestamp — covering just the most recent state. Use track_shipment when you need the full record; use get_shipment_status for lightweight polling.
Does the API support tracking shipments from DHL eCommerce or DHL Parcel (non-Express services)?+
The current endpoints are built around DHL Express tracking numbers and DHL Express service points. DHL eCommerce and DHL Parcel operate separate tracking systems and are not currently covered. You can fork this API on Parse and revise it to add endpoints targeting those tracking systems.
Can I retrieve a full shipment history for multiple tracking numbers in one call?+
Each tracking endpoint accepts a single tracking_number per request. Batch tracking across multiple numbers in one call is not currently supported. You can fork the API on Parse and revise it to add a batch endpoint that fans out calls and aggregates the results.
What happens when `get_estimated_delivery` returns null?+
A null estimated_delivery means DHL has not published an estimated or actual delivery timestamp for that shipment yet. This is common for shipments that were just created, are held in customs, or where the service type does not include a delivery commitment.
Page content last updated . Spec covers 8 endpoints from dhl.com.
Related APIs in EcommerceSee all →
fedex.com API
Access data from fedex.com.
careers.dhl.com API
Search and filter job listings across DHL Group's global careers portal by keywords, location, and other criteria with easy pagination to browse through results. Find positions matching specific job titles and requirements across multiple searches.
dpdgroup.com API
Find nearby DPD parcel shops and access detailed location information, station details, and network statistics across the DPD partner network. Search for parcel shop availability by country and get comprehensive insights into DPD's distribution infrastructure.
indiapost.gov.in API
Track India Post shipments, money orders, and complaints in real-time using a consignment number, booking reference, or complaint ID. Retrieve delivery status, tracking events, and progress updates for postal items.
jbhunt.com API
Track your J.B. Hunt shipments in real-time for both business and home deliveries, search for service information across their site, and access freight class and location data for LTL quoting. Get company information and reference data to support your logistics and shipping needs.
track.ukrposhta.ua API
Track parcels sent through Ukrposhta by looking up individual shipments or monitoring multiple packages at once to get real-time delivery status and tracking information. Access detailed tracking page metadata to stay informed about your parcels' locations and delivery progress.
dat.com API
Track real-time market conditions, fuel prices, and freight rate trends to make data-driven logistics decisions. Access industry insights through blog posts and resource materials to stay informed on transportation market dynamics.
tracker.shadowfax.in API
Track Shadowfax shipments in real-time and monitor delivery status, while accessing the company's latest blogs and website configuration details. Validate tracking IDs and retrieve up-to-date content and header announcements from the Shadowfax platform.