DHL

DHL Buildings API

The Buildings API from DHL — 2 operation(s) for buildings.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /search/de/buildings Search buildings by address · Returns all the matching buildings for the given postal… #
Ask an LLM
“Which buildings match a postal code and city?”
“Can I search buildings by district or house number?”
Tell an agent
Find buildings matching postal code {postal_code} in {city}.
Search buildings in district {district} for {street} {house_number}.
GET /select/de/buildings Log a selected building · Logs the selected building #
Ask an LLM
“How do I record that a user picked a building?”
“Can I log a selected building by its postal code?”
Tell an agent
Log selected building {uuid}.
Record user selection {uuid} for postal code {postal_code}.

Documentation

📖
Documentation
https://developer.dhl.com/tracking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-unified-push
📖
Documentation
https://developer.dhl.com/api-reference/additional-services-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/authentication-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/datafactory-autocomplete-20-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-hybrid-mail-shipments-e-post-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-international-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-internetmarke-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-dispatch-preparation-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/deutsche-post-print-mailing-targeting-post-parcel-germany
📖
Documentation
https://developer.dhl.com/parcel-connect
📖
Documentation
https://developer.dhl.com/api-reference/econnect-beta-dhl-ecommerce-europe
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-pickup-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-postnumber-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-private-shipping-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-returns-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/parcel-de-shipping-post-parcel-germany-v2
📖
Documentation
https://developer.dhl.com/api-reference/dhl-parcel-de-shipment-tracking-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-document
📖
Documentation
https://developer.dhl.com/api-reference/duty-tax-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/ecommerce-uk
📖
Documentation
https://developer.dhl.com/api-reference/parcel-eu
📖
Documentation
https://developer.dhl.com/api-reference/pickup-cancellation-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/price-quote-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/print-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/product-and-sub-product-pickup-detail-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/product-finder-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/products-api-post-parcel-germany
📖
Documentation
https://developer.dhl.com/api-reference/dgf-push-api
📖
Documentation
https://developer.dhl.com/api-reference/registration-pickup-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/return-label-dhl-ecommerce-americas
📖
Documentation
https://developer.dhl.com/api-reference/shipment-booking-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-booking
📖
Documentation
https://developer.dhl.com/api-reference/shipment-label-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/dgf-shipment-status
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-dhl-ecommerce-india-blue-dart
📖
Documentation
https://developer.dhl.com/api-reference/shipment-tracking-v2-dhl-global-forwarding
📖
Documentation
https://developer.dhl.com/api-reference/time-table-dhl-freight
📖
Documentation
https://developer.dhl.com/api-reference/tracking-dhl-ecommerce-americas

Specifications

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/dhl:dhl-buildings-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

dhl-buildings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhl Buildings API
  version: '1.0'
  contact:
    email: info@postdirekt.de
    name: Deutsche Post Direkt GmbH
    url: https://www.postdirekt.de
  license:
    name: Proprietary License
    url: https://www.postdirekt.de
  description: 'Operations tagged Buildings across 2 of this provider''s published API definitions: dhl-datafactory-autocomplete-20-post-parcel-germany-openapi.yml, dhl-datafactory-autocomplete-20-post-parcel-germany-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: Generated server url
  url: https://autocomplete2.postdirekt.de/autocomplete2
security:
- bearerAuth: []
tags:
- name: Buildings
paths:
  /search/de/buildings:
    get:
      description: This endpoint returns all the matching buildings for the given postal code/city/district/street/houseNumber/distributionCode/combined part.
      operationId: getBuildings
      parameters:
      - description: postal code  value
        in: query
        name: postal_code
        required: false
        schema:
          default: ''
          type: string
      - description: city value
        in: query
        name: city
        required: false
        schema:
          default: ''
          type: string
      - description: district value
        in: query
        name: district
        required: false
        schema:
          default: ''
          type: string
      - description: street value
        in: query
        name: street
        required: false
        schema:
          default: ''
          type: string
      - description: house number value (with addition)
        in: query
        name: house_number
        required: false
        schema:
          default: ''
          type: string
      - description: distribution code value
        in: query
        name: distribution_code
        required: false
        schema:
          default: ''
          type: string
      - description: the param combination
        in: query
        name: combined
        required: false
        schema:
          default: ''
          type: string
      responses:
        '200':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/BuildingDataResponse'
          description: OK
        '400':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: 'At least one of these parameters must be set: postal_code, city, district, street, address_type, house_number, combined].'
        '401':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized - Missing or bad authentication.
        '403':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden - User is not authorized.
        '404':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found - Resource not found.
        '406':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Acceptable - Unsupported content negotiation header (Accept-Header) set. Only JSON is allowed.
        '500':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error - An internal server error occured.
        '503':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable - The service is unavailable.
      summary: Returns all the matching buildings for the given postal…
      tags:
      - Buildings
    servers:
    - description: Generated server url
      url: https://autocomplete2.postdirekt.de/autocomplete2
  /select/de/buildings:
    get:
      description: This endpoint logs the selected building for the given uuid.
      operationId: logSelectedBuildings
      parameters:
      - description: uuid value
        in: query
        name: uuid
        required: true
        schema:
          type: string
      - description: postal code value
        in: query
        name: postal_code
        required: false
        schema:
          default: ''
          type: string
      - description: city value
        in: query
        name: city
        required: false
        schema:
          default: ''
          type: string
      - description: district value
        in: query
        name: district
        required: false
        schema:
          default: ''
          type: string
      - description: street value
        in: query
        name: street
        required: false
        schema:
          default: ''
          type: string
      - description: house number value (with addition)
        in: query
        name: house_number
        required: false
        schema:
          default: ''
          type: string
      - description: distribution code value
        in: query
        name: distribution_code
        required: false
        schema:
          default: ''
          type: string
      - description: the param combination
        in: query
        name: combined
        required: false
        schema:
          default: ''
          type: string
      responses:
        '200':
          content:
            application/json;charset=UTF-8:
              schema:
                type: string
          description: OK
        '400':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Required String parameter 'uuid' is not present.
        '401':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unauthorized - Missing or bad authentication.
        '403':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Forbidden - User is not authorized.
        '404':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Found - Resource not found.
        '406':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Not Acceptable - Unsupported content negotiation header (Accept-Header) set. Only JSON is allowed.
        '500':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal Server Error - An internal server error occured.
        '503':
          content:
            application/json;charset=UTF-8:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Service Unavailable - The service is unavailable.
      summary: Logs the selected building
      tags:
      - Buildings
    servers:
    - description: Generated server url
      url: https://autocomplete2.postdirekt.de/autocomplete2
components:
  schemas:
    ErrorResponse:
      properties:
        errorMessage:
          description: The error message.
          example: An error message example.
          type: string
        errorStatus:
          description: The error status code description.
          example: '''Bad Request'''
          type: string
        errorStatusCode:
          description: The HTTP error status code.
          example: 400
          format: int32
          type: integer
      type: object
    BuildingDTO:
      properties:
        city:
          type: string
        distributionCode:
          type: string
        district:
          type: string
        houseNumber:
          type: string
        postalCode:
          type: string
        street:
          type: string
        uuid:
          type: string
      type: object
    BuildingDataResponse:
      properties:
        buildings:
          items:
            $ref: '#/components/schemas/BuildingDTO'
          type: array
        numFound:
          format: int64
          type: integer
      type: object
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
x-refined-from:
- dhl-datafactory-autocomplete-20-post-parcel-germany-openapi.yml
- dhl-datafactory-autocomplete-20-post-parcel-germany-openapi.yml