UPS

UPS Address Validation API

Address validation and standardization

GitHub OpenAPI

Operations 1

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

POST /addressvalidation/v1/1 Validate and standardize a street-level address · Validate Address Street Level #
Ask an LLM
“Is this street address valid and standardized?”
“Can I classify an address as residential or commercial?”
Tell an agent
Validate the address {address}.
Standardize and classify this street address.

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/ups:ups-address-validation-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

ups-address-validation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UPS Shipping Address Validation API
  description: The UPS Shipping API enables developers to create and manage shipments, generate shipping labels, validate addresses, retrieve rates, track packages, schedule pickups, manage returns, and access time-in-transit information. UPS uses OAuth 2.0 with client credentials for authentication.
  version: v1
  contact:
    name: UPS Developer Support
    url: https://developer.ups.com/
  termsOfService: https://www.ups.com/us/en/help-center/legal-terms-conditions/developer-terms-of-service.page
servers:
- url: https://onlinetools.ups.com/api
  description: UPS Production API
- url: https://wwwcie.ups.com/api
  description: UPS Customer Integration Environment (CIE - Testing)
security:
- BearerAuth: []
tags:
- name: Address Validation
  description: Address validation and standardization
paths:
  /addressvalidation/v1/1:
    post:
      operationId: validateAddressStreetLevel
      summary: Validate Address Street Level
      description: Validate and standardize a street-level address. Returns whether the address is valid, standardized formatting, and residential/commercial classification.
      tags:
      - Address Validation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressValidationRequest'
      responses:
        '200':
          description: Address validation response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressValidationResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        response:
          type: object
          properties:
            errors:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
    AddressValidationResponse:
      type: object
      properties:
        AddressValidationResponse:
          type: object
          properties:
            Response:
              type: object
            AddressClassification:
              type: object
              properties:
                Code:
                  type: string
                  enum:
                  - '0'
                  - '1'
                  - '2'
                  description: 0=Unknown, 1=Commercial, 2=Residential
                Description:
                  type: string
            AddressKeyFormat:
              type: object
              properties:
                AddressLine:
                  type: array
                  items:
                    type: string
                PoliticalDivision2:
                  type: string
                PoliticalDivision1:
                  type: string
                PostcodePrimaryLow:
                  type: string
                PostcodeExtendedLow:
                  type: string
                CountryCode:
                  type: string
    AddressValidationRequest:
      type: object
      required:
      - AddressValidationRequest
      properties:
        AddressValidationRequest:
          type: object
          properties:
            Request:
              type: object
              properties:
                RequestOption:
                  type: string
                  enum:
                  - '1'
                  - '2'
                  - '3'
                  description: 1=Address Validation, 2=Address Classification, 3=Both
            AddressKeyFormat:
              type: object
              required:
              - CountryCode
              properties:
                ConsigneeName:
                  type: string
                AddressLine:
                  type: array
                  items:
                    type: string
                PoliticalDivision2:
                  type: string
                  description: City
                PoliticalDivision1:
                  type: string
                  description: State/Province
                PostcodePrimaryLow:
                  type: string
                  description: ZIP/Postal code
                CountryCode:
                  type: string
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: OAuth token missing or expired
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    OAuth2:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: https://onlinetools.ups.com/api/security/v1/oauth/token
          scopes: {}
    BearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.0 bearer token from /security/v1/oauth/token